From 443c33ff664d36189529df6898559c55b86c60fe Mon Sep 17 00:00:00 2001 From: He4eT Date: Wed, 19 Aug 2020 00:51:23 +0500 Subject: [PATCH] i3: vsync, brightness and xsession --- i3/config | 9 ++++++--- i3/i3-gaps.desktop | 9 +++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 i3/i3-gaps.desktop diff --git a/i3/config b/i3/config index 02ce7dd..7b64f41 100644 --- a/i3/config +++ b/i3/config @@ -17,10 +17,13 @@ client.background #ffffff gaps inner 30 # exec --no-startup-id compton -cfb -D 5 --shadow-exclude '_NET_WM_NAME@:s = "rofi"' -o 0.5 -exec --no-startup-id ~/.local/bin/compton -cb --shadow-exclude '_NET_WM_NAME@:s = "rofi"' -o 1 --shadow-exclude 'x <= 0 && x2 >= 1920 && y <= 30 && y2 >= 1020' --backend glx --vsync opengl-swc --unredir-if-possible +# exec --no-startup-id ~/.local/bin/compton -cb --shadow-exclude '_NET_WM_NAME@:s = "rofi"' -o 1 --shadow-exclude 'x <= 0 && x2 >= 1920 && y <= 30 && y2 >= 1020' --backend glx --vsync opengl-swc --unredir-if-possible +exec --no-startup-id compton -cb --shadow-exclude '_NET_WM_NAME@:s = "rofi"' -o 1 --shadow-exclude 'x <= 0 && x2 >= 1920 && y <= 30 && y2 >= 1020' --vsync --backend xr_glx_hybrid --vsync-use-glfinish exec --no-startup-id polybar top +exec --no-startup-id setxkbmap -option 'grp:alt_space_toggle' + # 2 for_window [class=".*"] title_format " %title " for_window [class="^.*"] border pixel 3 @@ -143,8 +146,8 @@ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #d bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound # Sreen brightness controls -bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness -bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness +bindsym XF86MonBrightnessUp exec --no-startup-id "light -A 5 & notify-send -t 1 $(light)" +bindsym XF86MonBrightnessDown exec --no-startup-id "light -U 5 & notify-send -t 1 $(light)" # switch to workspace bindsym $mod+1 workspace $ws1 diff --git a/i3/i3-gaps.desktop b/i3/i3-gaps.desktop new file mode 100644 index 0000000..bcb4572 --- /dev/null +++ b/i3/i3-gaps.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=i3-gaps +Comment=improved dynamic tiling window manager +Exec=i3 +TryExec=i3 +Type=Application +X-LightDM-DesktopName=i3 +DesktopNames=i3 +