From f2b18aab5a84d04a36f4194473680ad70bdb5578 Mon Sep 17 00:00:00 2001 From: Peter Son Struschka Date: Sun, 2 Feb 2020 12:50:32 +0800 Subject: script to find and edit config files --- bspwm/.config/bspwm/bspwmrc | 31 ++ bspwm/.config/polybar/config | 637 ++++++++++++++++++++++++++++++++ bspwm/.config/polybar/launch.sh | 19 + bspwm/.config/polybar/task_polybar.sh | 7 + bspwm/.config/sxhkd/sxhkdrc | 146 ++++++++ bspwm/.local/bin/rofi_goto_workspace | 4 + bspwm/.local/bin/rofi_moveto_workspace | 4 + bspwm/.local/bin/rofi_workspace_prompt | 3 + bspwm/.local/bin/scratch | 3 + bspwm/.local/bin/spotifycl | 207 +++++++++++ bspwm/.local/share/config-files/bspwm | 1 + bspwm/.local/share/config-files/polybar | 1 + bspwm/.local/share/config-files/sxhkd | 1 + bspwm/.local/share/images/wallpaper.jpg | Bin 0 -> 651668 bytes bspwm/.local/share/lock/lock.png | Bin 0 -> 3959 bytes bspwm/.local/share/lock/rick_lock.png | Bin 0 -> 113100 bytes bspwm/.local/share/scripts/lock.sh | 15 + 17 files changed, 1079 insertions(+) create mode 100755 bspwm/.config/bspwm/bspwmrc create mode 100644 bspwm/.config/polybar/config create mode 100755 bspwm/.config/polybar/launch.sh create mode 100755 bspwm/.config/polybar/task_polybar.sh create mode 100644 bspwm/.config/sxhkd/sxhkdrc create mode 100755 bspwm/.local/bin/rofi_goto_workspace create mode 100755 bspwm/.local/bin/rofi_moveto_workspace create mode 100755 bspwm/.local/bin/rofi_workspace_prompt create mode 100755 bspwm/.local/bin/scratch create mode 100755 bspwm/.local/bin/spotifycl create mode 120000 bspwm/.local/share/config-files/bspwm create mode 120000 bspwm/.local/share/config-files/polybar create mode 120000 bspwm/.local/share/config-files/sxhkd create mode 100644 bspwm/.local/share/images/wallpaper.jpg create mode 100644 bspwm/.local/share/lock/lock.png create mode 100644 bspwm/.local/share/lock/rick_lock.png create mode 100755 bspwm/.local/share/scripts/lock.sh (limited to 'bspwm') diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc new file mode 100755 index 0000000..b514a7a --- /dev/null +++ b/bspwm/.config/bspwm/bspwmrc @@ -0,0 +1,31 @@ +#! /bin/sh + +# reset polybar +$HOME/.config/polybar/launch.sh & + +# Autostart +[[ ! $(pidof -x sxhkd) ]] && sxhkd & +[[ ! $(pidof -x compton) ]] && compton & +[[ ! $(pidof -x nm-applet) ]] && nm-applet & +[[ ! $(pidof -x feh ) ]] && feh --bg-scale "$HOME/.local/share/images/wallpaper.jpg" & + +# locker +[[ ! $(pidof -x xautolock) ]] && xautolock -locker "$HOME/.local/share/scripts/lock.sh" -time 60 -detectsleep -notify 10 & + +bspc monitor -d I II III IV V VI VII VIII IX X + +bspc config border_width 2 +bspc config window_gap 12 + +bspc config split_ratio 0.52 +bspc config borderless_monocle true +bspc config gapless_monocle true + +bspc rule -a Gimp desktop='^8' state=floating follow=on +bspc rule -a Chromium desktop='^2' +bspc rule -a mplayer2 state=floating +bspc rule -a Kupfer.py focus=on +bspc rule -a Screenkey manage=off + +bspc rule -a scratchpad sticky=on state=floating hidden=on +alacritty --class scratchpad,scratchpad -e ~/code/dotfiles/bspwm/.bin/scratch & diff --git a/bspwm/.config/polybar/config b/bspwm/.config/polybar/config new file mode 100644 index 0000000..05d6334 --- /dev/null +++ b/bspwm/.config/polybar/config @@ -0,0 +1,637 @@ +;========================================================== +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; +; 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 = bspwm +override-redirect = false + +scroll-up = bspwm-desknext +scroll-down = bspwm-deskprev +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 = bspwm +override-redirect = false + +scroll-up = bspwm-desknext +scroll-down = bspwm-deskprev +cursor-click = pointer +cursor-scroll = ns-resize + +module-margin-left = 2 +module-margin-right = 2 +modules-left = bspwm +modules-center = spotify +modules-right = taskwarrior date + +[module/hostname] +type = custom/script +interval = 256 +format = "