From 9b6833103134b52a5c6d9867c37f5b76b9648f54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurij=20Podgor=C5=A1ek?= Date: Thu, 9 Mar 2023 00:09:42 +0100 Subject: [PATCH] Ciscenje --- inactive-windows-transparency.py | 22 ---------------------- init.sh | 2 +- 2 files changed, 1 insertion(+), 23 deletions(-) delete mode 100755 inactive-windows-transparency.py diff --git a/inactive-windows-transparency.py b/inactive-windows-transparency.py deleted file mode 100755 index 15466ca..0000000 --- a/inactive-windows-transparency.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/python3 - -import i3ipc - -ipc = i3ipc.Connection() -prev_focused = None - -for window in ipc.get_tree(): - if window.focused: - prev_focused = window - else: - window.command('opacity 0.9') - -def on_window_focus(ipc, focused): - global prev_focused - if focused.container.id != prev_focused.id: # https://github.com/swaywm/sway/issues/2859 - focused.container.command('opacity 1') - prev_focused.command('opacity 0.9') - prev_focused = focused.container - -ipc.on("window::focus", on_window_focus) -ipc.main() diff --git a/init.sh b/init.sh index b4145c5..ffc35e1 100755 --- a/init.sh +++ b/init.sh @@ -4,4 +4,4 @@ curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim # Instaliraj spacemacs! -git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d +#git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d