forked from kunsi/dotfiles
back to i3, update config
This commit is contained in:
parent
26267a1fcd
commit
ad76000844
3 changed files with 17 additions and 3 deletions
|
@ -4,13 +4,13 @@ font pango:DejaVu Sans 9
|
|||
|
||||
floating_modifier $mod
|
||||
|
||||
bindsym $mod+Return exec i3-sensible-terminal
|
||||
bindsym $mod+Return exec gnome-terminal
|
||||
|
||||
bindsym $mod+Shift+x kill
|
||||
|
||||
bindsym $mod+a exec rofi -show drun
|
||||
#bindsym $mod+a exec i3-dmenu-desktop
|
||||
bindsym Mod1+Tab exec rofi -show window
|
||||
#bindsym Mod1+Tab exec rofi -show window
|
||||
|
||||
bindsym $mod+n focus left
|
||||
bindsym $mod+r focus down
|
||||
|
@ -103,7 +103,6 @@ exec xsetroot -solid "#000000"
|
|||
exec xss-lock -n /home/kunsi/.bin/notify.sh -- /home/kunsi/.bin/screenlock.sh
|
||||
exec xinput disable 'SynPS/2 Synaptics TouchPad'
|
||||
exec xinput disable 'ELAN Touchscreen'
|
||||
exec --no-startup-id dockd --daemon
|
||||
|
||||
#bindsym Control+$mod+l exec /home/kunsi/.bin/screenlock.sh
|
||||
bindsym XF86Tools exec /home/kunsi/.bin/screenlock.sh
|
||||
|
|
|
@ -75,6 +75,8 @@ status.register("shell",
|
|||
format="{output}",
|
||||
hints = {"markup": "pango"},
|
||||
command="/home/kunsi/.config/i3pystatus/redshift.py",
|
||||
on_leftclick='systemctl --user start redshift.service',
|
||||
on_rightclick='systemctl --user stop redshift.service',
|
||||
interval=1)
|
||||
status.register("shell",
|
||||
format="{output}",
|
||||
|
@ -91,6 +93,7 @@ status.register("network",
|
|||
detect_active=True,
|
||||
freq_divisor=1000000000,
|
||||
divisor=1024,
|
||||
on_leftclick="gnome-terminal -- nmtui",
|
||||
hints={"markup":"pango"})
|
||||
|
||||
#status.register("mpd",
|
||||
|
|
12
.config/i3pystatus/redshift.py
Executable file
12
.config/i3pystatus/redshift.py
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
from subprocess import call
|
||||
|
||||
state = call(['systemctl', '--user', 'is-active', '--quiet', 'redshift.service'])
|
||||
|
||||
if state == 0:
|
||||
color = '#00FF00'
|
||||
else:
|
||||
color = '#FF0000'
|
||||
|
||||
print(f'<span color="{color}">Redshift</span>')
|
Loading…
Reference in a new issue