Ciscenje
parent
ebe13da706
commit
9b68331031
|
@ -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()
|
|
2
init.sh
2
init.sh
|
@ -4,4 +4,4 @@
|
||||||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||||
|
|
||||||
# Instaliraj spacemacs!
|
# Instaliraj spacemacs!
|
||||||
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
|
#git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
|
||||||
|
|
Loading…
Reference in New Issue