diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index cd09c8b..5c0daa3 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -1,6 +1,6 @@ [global] frame_width = 1 - frame_color = "#9C171C" + frame_color = "#FC7056" font = Noto Sans 10 @@ -181,18 +181,18 @@ [urgency_low] # IMPORTANT: colors have to be defined in quotation marks. # Otherwise the "#" and following would be interpreted as a comment. - background = "#03000A" - foreground = "#9C171C" + background = "#120512" + foreground = "#FC7056" timeout = 10 [urgency_normal] - background = "#03000A" - foreground = "#9C171C" + background = "#120512" + foreground = "#FC7056" timeout = 10 [urgency_critical] - background = "#03000A" - foreground = "#9C171C" + background = "#120512" + foreground = "#FC7056" timeout = 0 @@ -252,8 +252,8 @@ # appname = claws-mail # category = email.arrived # urgency = normal -# background = "#03000A" -# foreground = "#9C171C" +# background = "#120512" +# foreground = "#FC7056" # #[mute.sh] # appname = mute @@ -263,40 +263,40 @@ #[JDownloader] # appname = JDownloader # category = JD -# background = "#03000A" -# foreground = "#9C171C" +# background = "#120512" +# foreground = "#FC7056" # #[newsbeuter] # summary = *Feeds* -# background = "#03000A" -# foreground = "#9C171C" +# background = "#120512" +# foreground = "#FC7056" # [irc] appname = weechat timeout = 0 - background = "#03000A" - foreground = "#9C171C" + background = "#120512" + foreground = "#FC7056" # [weechat hl] appname = weechat category = weechat.HL - background = "#03000A" - foreground = "#9C171C" + background = "#120512" + foreground = "#FC7056" # [weechat pn] appname = weechat category = weechat.PM - background = "#03000A" - foreground = "#9C171C" + background = "#120512" + foreground = "#FC7056" # #[CMUS] # appname = CMUS # category = cmus -# background = "#03000A" -# foreground = "#9C171C" +# background = "#120512" +# foreground = "#FC7056" # # -# background = "#03000A" -# foreground = "#9C171C" +# background = "#120512" +# foreground = "#FC7056" # # vim: ft=cfg diff --git a/.config/i3-scrot.conf b/.config/i3-scrot.conf index 6c686fb..629be6f 100644 --- a/.config/i3-scrot.conf +++ b/.config/i3-scrot.conf @@ -1 +1 @@ -scrot_dir=/home/cdnutter/Pictures +scrot_dir=/home/cdnutter/Pictures/Screenshots diff --git a/.config/i3/config b/.config/i3/config index 1cfc634..8da9347 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -448,14 +448,13 @@ exec mpc update exec synergyc --no-tray --restart --name Gray 192.168.1.236:24800 # --> Xresources DPI Switcher -exec_always sh ~/.scripts/dpi-switch.sh && xrdb ~/.Xresources +exec_always sh ~/.scripts/monitor-setup.sh && xrdb ~/.Xresources # --> Mounting All Network Drives -bindsym $mod+Shift+m exec kitty -e sudo umount /mnt/blue/* && sudo umount /mnt/* +bindsym $mod+Shift+m exec kitty -e sudo umount /mnt/purple /mnt/blue/* bindsym $mod+m exec kitty -e mount-purple && mount-blue # Unused ######################################################## -#exec kitty ~/.scripts/monitor-setup.sh diff --git a/.scripts/monitor-setup.sh b/.scripts/monitor-setup.sh index 3ddc2e1..6b97213 100755 --- a/.scripts/monitor-setup.sh +++ b/.scripts/monitor-setup.sh @@ -1,3 +1,39 @@ -xrandr --rate 144 +#! /bin/bash -# This will be something cool in like a day or two. +EDITOR=vim + +############################## + +low_dpi() { + sed '1 s/128/96/g' ~/.Xresources > /tmp/xres + mv /tmp/xres ~/.Xresources +} + +hi_dpi() { + sed '1 s/96/128/g' ~/.Xresources > /tmp/xres + mv /tmp/xres ~/.Xresources +} + + +############################## + +if xdpyinfo | grep --quiet -oh 3440x1440 + then + hi_dpi + xrandr --rate 120 # ONLY FOR 21:9 DELL MONITOR +fi + +if xdpyinfo | grep --quiet -oh 2560x1440 + then + hi_dpi + xrandr --rate 144 # ONLY FOR 16:9 ACER MONITOR +fi + + +if xdpyinfo | grep --quiet -oh 1080 + then + low_dpi +fi + + +############################# diff --git a/.zshrc b/.zshrc index edc0e5b..83f992a 100644 --- a/.zshrc +++ b/.zshrc @@ -110,6 +110,7 @@ alias git-in="sh ~/.scripts/git-in.sh" alias mount-purple="sh ~/.scripts/mount-scripts/purple.sh" alias mount-blue="sh ~/.scripts/mount-scripts/blue.sh" +alias mount-\*="sh ~/.scripts/mount-scripts/blue.sh && sudo ~/.scripts/mount-scripts/purple.sh" ## wal