diff --git a/i3/config b/i3/config index df1dfe0..a9457e6 100644 --- a/i3/config +++ b/i3/config @@ -1,20 +1,22 @@ # i3 config file (v4) -# -# Please see https://i3wm.org/docs/userguide.html for a complete reference! #Super/Windows-Taste set $mod1 Mod4 #alt-Taste set $mod2 Mod1 -# Font for window titles. Will also be used by the bar unless a different font -# is used in the bar {} block below. +# Font for window titles. Will also be used by the bar unless a different font is used in the bar {} block below. font pango:monospace 8 # execute lockscreen.sh; sperrt rechner nach x min -exec_always --no-startup-id /home/mg/dotfiles/i3/lockscreen.sh +exec_always --no-startup-id /home/mg/dotfiles/i3/scripte/lockscreen.sh + # enter lockscreen manually -bindsym $mod1+l exec xset dpms force off && i3lock --ignore-empty-password --color 000000 +bindsym $mod1+l exec --no-startup-id /home/mg/dotfiles/i3/scripte/lock.sh + +# dimm screen +exec_always --no-startup-id /home/mg/dotfiles/i3/scripte/dimming.sh + # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. @@ -41,7 +43,7 @@ bindsym $mod2+F4 kill bindsym $mod1+Shift+q kill # start rofi -bindsym $mod1+d exec --no-startup-id rofi -combi-modi window#drun#ssh -show combi +bindsym $mod1+d exec --no-startup-id /home/mg/dotfiles/i3/scripte/start_rofi.sh # screenshots bindsym $mod1+p exec --no-startup-id flameshot full -p /home/mg -c diff --git a/i3/scripte/dimming.sh b/i3/scripte/dimming.sh new file mode 100644 index 0000000..60e4908 --- /dev/null +++ b/i3/scripte/dimming.sh @@ -0,0 +1,2 @@ +#!/bin/bash +xautolock -detectsleep -time 5 -locker "brightnessctl set 25%" diff --git a/i3/scripte/lock.sh b/i3/scripte/lock.sh new file mode 100644 index 0000000..576a470 --- /dev/null +++ b/i3/scripte/lock.sh @@ -0,0 +1,2 @@ +#!/bin/bash +xset dpms force off && i3lock --ignore-empty-password --color 000000 diff --git a/i3/lockscreen.sh b/i3/scripte/lockscreen.sh old mode 100755 new mode 100644 similarity index 100% rename from i3/lockscreen.sh rename to i3/scripte/lockscreen.sh diff --git a/i3/scripte/start_rofi.sh b/i3/scripte/start_rofi.sh new file mode 100644 index 0000000..0a7c935 --- /dev/null +++ b/i3/scripte/start_rofi.sh @@ -0,0 +1,2 @@ +#!/bin/bash +rofi -combi-modi window,drun,ssh -show combi