diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 9384b31..f00650f 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -5,6 +5,9 @@ pgrep -x sxhkd > /dev/null || sxhkd & bspc monitor DP-2 -d 1 2 3 4 5 bspc monitor HDMI-0 -d 6 7 8 9 0 +bspc config remove_disabled_monitors false +bspc config remove_unplugged_monitors false + bspc config border_width 2 bspc config window_gap 12 @@ -17,6 +20,10 @@ bspc rule -a Nvidia-settings state=floating bspc rule -a openrgb state=floating bspc rule -a Sxiv state=floating +# start screen locker +xset s 600 5 +xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock & + pgrep -x dunst > /dev/null || dunst & pgrep -x notify.sh > /dev/null || ~/.config/bspwm/scripts/notify.sh & diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf index 3f3a3ea..f7556b5 100644 --- a/.config/picom/picom.conf +++ b/.config/picom/picom.conf @@ -88,7 +88,9 @@ fade-out-step = 0.15; # fade-delta = 10 # Specify a list of conditions of windows that should not be faded. -# fade-exclude = [] +fade-exclude = [ + "class_g = 'xsecurelock'", +]; # Do not fade on window open/close. # no-fading-openclose = false diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index 92fd32b..d1f09ad 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -37,6 +37,9 @@ monitor = DP-2 background = ${colors.background} foreground = ${colors.foreground} +scroll-up = bspc monitor -f DP-2 && bspc desktop -f prev.local +scroll-down = bspc monitor -f DP-2 && bspc desktop -f next.local + line-size = 3pt border-size = 0pt @@ -55,7 +58,7 @@ modules-center = date modules-right = music filesystem memory cpu wlan powermenu cursor-click = pointer -cursor-scroll = ns-resize +; cursor-scroll = ns-resize enable-ipc = true @@ -78,6 +81,9 @@ monitor = HDMI-0 background = ${colors.background} foreground = ${colors.foreground} +scroll-up = bspc monitor -f HDMI-0 && bspc desktop -f prev.local +scroll-down = bspc monitor -f HDMI-0 && bspc desktop -f next.local + line-size = 3pt border-size = 0pt @@ -96,7 +102,7 @@ modules-center = date modules-right = music filesystem memory cpu wlan powermenu cursor-click = pointer -cursor-scroll = ns-resize +; cursor-scroll = ns-resize enable-ipc = true diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi index 45a9701..2e3d448 100644 --- a/.config/rofi/config.rasi +++ b/.config/rofi/config.rasi @@ -6,6 +6,8 @@ configuration { display-drun: "  apps "; display-ssh: " 󱘖 ssh "; display-run: "  run "; + display-nerdfont: " 󰞅 nerd-font "; + display-emoji: "  emoji "; show-icons: true; drun-display-format: "{icon} {name}"; sidebar-mode: true; diff --git a/.config/rofi/scripts/rofi-power-menu b/.config/rofi/scripts/rofi-power-menu index 47acf9c..201862a 100755 --- a/.config/rofi/scripts/rofi-power-menu +++ b/.config/rofi/scripts/rofi-power-menu @@ -38,7 +38,7 @@ icons[shutdown]="\Uf0425" icons[cancel]="\Uf0156" declare -A actions -actions[lockscreen]="slock" +actions[lockscreen]="xset s activate" #actions[switchuser]="???" actions[logout]="loginctl terminate-session ${XDG_SESSION_ID-}" actions[suspend]="systemctl suspend" diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 24fe3b3..75cbf53 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -14,13 +14,17 @@ super + d super + v ~/.config/rofi/scripts/vim-cheat.sh +# nerd font cheat sheet +super + n + ~/.config/rofi/scripts/icon-picker.sh + # power menu super + p rofi -show p -modi p:'~/.config/rofi/scripts/rofi-power-menu --symbols-font "JetBrainsMonoNL Nerd Font Mono"' -font "JetBrainsMonoNL Nerd Font Mono" -monitor -1 # print screen Print - path="$HOME/pictures/screenshots/$(date +"%s - %Y-%m-%d")" && maim "$path" && xclip -selection clipboard -t image/png "$path" + path="$HOME/pictures/screenshots/$(date +"%s - %Y-%m-%d").png" && maim "$path" && xclip -selection clipboard -t image/png "$path" shift + Print path="$HOME/pictures/screenshots/$(date +"%s - %Y-%m-%d").png" && maim -s "$path" && xclip -selection clipboard -t image/png "$path" diff --git a/README.md b/README.md index fde1158..2caefb2 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ here are the dotfiles and some of the programs i use for my bspwm setup. wip. ### 🏗️ system - distro: [arch linux](https://archlinux.org) - wm: [bspwm](https://github.com/baskerville/bspwm) ([cheat sheet](https://gist.github.com/amit08255/43ed6efdc1952d88f9a61e86f375e924)) -- dm: [ly](https://github.com/fairyglade/ly) +- dm: [lightdm](https://github.com/canonical/lightdm) with [mini-greeter](https://github.com/prikhi/lightdm-mini-greeter) - compositor: [picom](https://github.com/yshui/picom) - aur helper: [paru](https://github.com/Morganamilo/paru) - file manager: [nnn](https://github.com/jarun/nnn)