From a1d6fc2f3e6ab041cc51cb085ac59a646a126d25 Mon Sep 17 00:00:00 2001 From: Peter Son Struschka Date: Wed, 29 Jul 2020 16:40:02 +0800 Subject: basics+bspwm+herbstluftwm+i3wm+meta+polybar+xmonad: wm configs overhaul Created polybar as its own config instead of duplicated in bspwm and i3's directories allowing them both to be installed. Created herbstluftwm, xmonad window manager configs. Added scripts for a status bar, and fixed scripts. --- i3wm/.config/i3/config | 22 +- i3wm/.config/polybar/config | 556 --------------------------------- i3wm/.config/polybar/launch.sh | 19 -- i3wm/.local/bin/rofi_goto_workspace | 4 - i3wm/.local/bin/rofi_moveto_workspace | 4 - i3wm/.local/bin/rofi_workspace_prompt | 3 - i3wm/.local/bin/spotifycl | 207 ------------ i3wm/.local/share/config-files/polybar | 1 - 8 files changed, 14 insertions(+), 802 deletions(-) delete mode 100644 i3wm/.config/polybar/config delete mode 100755 i3wm/.config/polybar/launch.sh delete mode 100755 i3wm/.local/bin/rofi_goto_workspace delete mode 100755 i3wm/.local/bin/rofi_moveto_workspace delete mode 100755 i3wm/.local/bin/rofi_workspace_prompt delete mode 100755 i3wm/.local/bin/spotifycl delete mode 120000 i3wm/.local/share/config-files/polybar (limited to 'i3wm') diff --git a/i3wm/.config/i3/config b/i3wm/.config/i3/config index 6d27594..57cbaf2 100644 --- a/i3wm/.config/i3/config +++ b/i3wm/.config/i3/config @@ -9,8 +9,10 @@ # # Please see https://i3wm.org/docs/userguide.html for a complete reference! -exec_always --no-startup-id $HOME/.config/polybar/launch.sh -exec_always --no-startup-id xautolock -locker "$HOME/.local/bin/lock.sh" -time 60 -detectsleep -notify 10 +exec_always --no-startup-id $HOME/.config/polybar/launch.sh i3 +exec_always --no-startup-id xset s 300 5 +exec_always --no-startup-id xss-lock -n /usr/bin/xsecurelock/dimmer -l -- xsecurelock +#exec_always --no-startup-id xautolock -locker "$HOME/.local/bin/lock.sh" -time 60 -detectsleep -notify 10 exec --no-startup-id nm-applet exec --no-startup-id picom @@ -47,15 +49,16 @@ bindsym $mod+Return exec alacritty #kitty #i3-sensible-terminal bindsym $mod+Shift+q kill # start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id rofi -show drun -bindsym $mod+x exec --no-startup-id rofi -show run +#bindsym $mod+d exec --no-startup-id rofi -show drun +#bindsym $mod+x exec --no-startup-id rofi -show run bindsym $mod+Tab exec --no-startup-id rofi -show window # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. -#bindsym $mod+d exec --no-startup-id dmenu_run +bindsym $mod+d exec --no-startup-id i3-dmenu-desktop +bindsym $mod+x exec --no-startup-id dmenu_run # change focus bindsym $mod+j focus left @@ -66,14 +69,16 @@ bindsym $mod+semicolon focus right # alternatively, you can use the cursor keys: bindsym $mod+Left workspace prev_on_output bindsym $mod+Shift+Left workspace prev -bindsym $mod+Shift+j workspace prev +bindsym $mod+Shift+j workspace prev_on_output bindsym $mod+Shift+Control+Left move workspace to output left bindsym $mod+Down focus down bindsym $mod+Up focus up +bindsym $mod+o focus output right + bindsym $mod+Right workspace next_on_output bindsym $mod+Shift+Right workspace next -bindsym $mod+Shift+semicolon workspace next +bindsym $mod+Shift+semicolon workspace next_on_output bindsym $mod+Shift+Control+Right move workspace to output right bindsym $mod+b workspace back_and_forth @@ -242,7 +247,8 @@ bindsym XF86AudioNext exec playerctl next bindsym XF86AudioPrev exec playerctl previous -bindsym $mod+Shift+l exec "xautolock -locknow" +#bindsym $mod+Shift+l exec "xautolock -locknow" +bindsym $mod+Shift+l exec "xset s activate" diff --git a/i3wm/.config/polybar/config b/i3wm/.config/polybar/config deleted file mode 100644 index ab31469..0000000 --- a/i3wm/.config/polybar/config +++ /dev/null @@ -1,556 +0,0 @@ -;========================================================== -; -; -; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ -; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ -; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ -; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ -; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ -; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ -; -; -; To learn more about how to configure Polybar -; go to https://github.com/jaagr/polybar -; -; The README contains alot of information -; -;========================================================== - -[colors] -;background = ${xrdb:color0:#222} -background = #222 -background-alt = #444 -;foreground = ${xrdb:color7:#222} -foreground = #dfdfdf -foreground-alt = #555 -primary = #ffb52a -secondary = #e60053 -alert = #bd2c40 - -[bar/topbar] -monitor = ${env:MONITOR:eDP-1} -width = 100% -height = 40 -dpi = 96 -;offset-x = 1% -;offset-y = 1% -radius = 6.0 -fixed-center = false - -background = ${colors.background} -foreground = ${colors.foreground} - -line-size = 3 -line-color = #f00 - -border-size = 10 -border-bottom-size = 0 -border-color = #00000000 - -padding-left = 2 -padding-right = 2 - -font-0 = fixed:pixelsize=10;1 -font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 -font-2 = siji:pixelsize=10;1 -font-3 = "Font Awesome 5 Brands:style=Regular:pixelsize=8;1" -font-4 = "Font Awesome 5 Free:style=Regular:pixelsize=8;1" -font-5 = "Font Awesome 5 Free:style=Solid:pixelsize=8;1" - -tray-position = right -tray-padding = 2 -;tray-transparent = true -;tray-background = #0063ff -tray-scale = 1 -tray-detached = false - -wm-restack = i3 -override-redirect = false - -scroll-up = i3wm-wsnext -scroll-down = i3wm-wsprev -cursor-click = pointer -cursor-scroll = ns-resize - -module-margin-left = 2 -module-margin-right = 2 -modules-left = hostname xwindow -modules-center = -modules-right = filesystem backlight pulseaudio xkeyboard memory cpu wlan eth ethvpn battery temperature - -[bar/topbar-second] -monitor = ${env:MONITOR:eDP-1} -width = 100% -height = 40 -dpi = 96 -;offset-x = 1% -offset-y = 50 -radius = 6.0 -fixed-center = true - -background = ${colors.background} -foreground = ${colors.foreground} - -line-size = 3 -line-color = #f00 - -border-size = 10 -border-top-size = 0 -border-bottom-size = 0 -border-color = #00000000 - -padding-left = 2 -padding-right = 2 - -font-0 = fixed:pixelsize=10;1 -font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 -font-2 = siji:pixelsize=10;1 -font-3 = "Font Awesome 5 Brands:style=Regular:pixelsize=8;1" -font-4 = "Font Awesome 5 Free:style=Regular:pixelsize=8;1" -font-5 = "Font Awesome 5 Free:style=Solid:pixelsize=8;1" - -wm-restack = i3 -override-redirect = false - -scroll-up = i3wm-wsnext -scroll-down = i3wm-wsprev -cursor-click = pointer -cursor-scroll = ns-resize - -module-margin-left = 2 -module-margin-right = 2 -modules-left = i3 -modules-center = spotify -modules-right = date - -[module/hostname] -type = custom/script -interval = 256 -format = "