djcev.com

//

Git Repos / dotfiles / commit 140d8af

Commit: 140d8af9a70738216328641ad91976e491792481
Parent: 4028c3abd907a150de797b73587a9c7b39b94679
Author: Cameron Vanderzanden, 2022-09-10 17:38
Committer: Cameron Vanderzanden, 2022-09-10 17:38

Commit Message

New (prelim) Q1 config + a number of minor changes

GTK theme changed from qgtkstyle to a prerolled Gruvbox-colored
theme. I need to rework my GTK & QT UI themeing in general.

Also changed to a two monitor config. This is reflected in
herbstluftwm/autostart and config/dunst/dunstrc (I think).

There may be other changes in my live dotfiles I still need
to copy here.

Change List

Diff bin/aliases.sh

diff --git a/bin/aliases.sh b/bin/aliases.sh
index d461926..0f9adde 100644
--- a/bin/aliases.sh
+++ b/bin/aliases.sh
@@ -31,6 +31,11 @@ alias vi="vim"
alias z_df="df -h /storage2 /z/*"
#
alias back="$HOME/bin/back.sh"
+redshift_back="$HOME/.config/redshift/hooks/background.sh"
+alias back_day="$redshift_back period-changed noop daytime"
+alias back_interval="$redshift_back period-changed noop transition"
+alias back_night="$redshift_back period-changed noop night"
+unset redshift_back
alias cd_audio="$HOME/bin/cd_audio.sh"
alias cd_crypt="$HOME/bin/cd_crypt.sh"
alias cdc="$HOME/bin/cd_crypt.sh"

Return to the top of this page or return to the overview of this repo.

Diff bin/get_rss.sh

diff --git a/bin/get_rss.sh b/bin/get_rss.sh
index 253de91..6b34c89 100755
--- a/bin/get_rss.sh
+++ b/bin/get_rss.sh
@@ -57,8 +57,8 @@ file="${RSSCACHEDIR}/${name}.xml"

# TODO: add error checking, error messages, proper exit status
if [ ! -f "$file" ]; then
- fetch -o "$file" "$url" 1>/dev/null 2>&1
+ /usr/bin/nice -n 10 fetch -o "$file" "$url" 1>/dev/null 2>&1
else
- fetch -i "$file" -o "$file" "$url" 1>/dev/null 2>&1
+ /usr/bin/nice -n 10 fetch -i "$file" -o "$file" "$url" 1>/dev/null 2>&1
fi

Return to the top of this page or return to the overview of this repo.

Diff config/cmus/rc

diff --git a/config/cmus/rc b/config/cmus/rc
index bf34438..1563b1a 100644
--- a/config/cmus/rc
+++ b/config/cmus/rc
@@ -117,7 +117,7 @@ set input.mp4.priority=0
set input.opus.priority=0
set input.vorbis.priority=0
set input.wav.priority=0
-set lib_add_filter=!filename="*.zip"&!filename="*.xm"&!filename="*.umx"&!filename="*.s3m"&!filename="*.mtm"&!filename="*.mod"&!filename="*.it"
+set lib_add_filter=!filename="*.zip"&!filename="*.xm"&!filename="*.umx"&!filename="*.s3m"&!filename="*.mtm"&!filename="*.mod"&!filename="*.it"&!filename="*.webm"&!filename="*.mp4"
set lib_sort=albumartist date album discnumber tracknumber
set mouse=true
set replaygain=album-preferred

Return to the top of this page or return to the overview of this repo.

Diff config/dunst/dunstrc.fix

diff --git a/config/dunst/dunstrc.fix b/config/dunst/dunstrc.fix
index cb419f8..df81c7e 100644
--- a/config/dunst/dunstrc.fix
+++ b/config/dunst/dunstrc.fix
@@ -16,8 +16,8 @@
ignore_newline = no
indicate_hidden = yes
line_height = 0
- max_icon_size = 32
- min_icon_size = 32
+ max_icon_size = 64
+ min_icon_size = 64
notification_limit = 0
show_age_threshold = 60
show_indicators = yes

Return to the top of this page or return to the overview of this repo.

Diff config/gtkrc-2.0

diff --git a/config/gtkrc-2.0 b/config/gtkrc-2.0
index d058a15..03cdb05 100644
--- a/config/gtkrc-2.0
+++ b/config/gtkrc-2.0
@@ -1,6 +1,6 @@
-gtk-theme-name="QtCurve"
+gtk-theme-name="Gruvbox_Dark"
gtk-icon-theme-name="Obsidian-Gray"
-gtk-font-name="DejaVu Sans 18"
+gtk-font-name="DejaVu Sans 16"
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintfull"

Return to the top of this page or return to the overview of this repo.

Diff config/herbstluftwm/autostart.fix

diff --git a/config/herbstluftwm/autostart.fix b/config/herbstluftwm/autostart.fix
index 2eca650..e54ae8c 100644
--- a/config/herbstluftwm/autostart.fix
+++ b/config/herbstluftwm/autostart.fix
@@ -46,6 +46,9 @@ while [ $tagi -le $tagcount ]; do
tagi=$(($tagi + 1))
done

+# set up monitors
+hc detect_monitors
+
# keyboard bindings
hc keybind $mod-Shift-q quit
hc keybind $mod-Shift-r reload
@@ -159,13 +162,14 @@ hc attr settings.focus_follows_mouse 0
hc attr settings.tree_style '*| +`--.'
hc attr theme.tiling.reset 0
hc attr theme.floating.reset 0
-hc attr theme.border_width 8
+hc attr theme.border_width 4
hc attr theme.inner_width 0
hc attr theme.outer_width 0
hc attr theme.padding_top 0
-hc attr theme.padding_left 0
-hc attr theme.padding_bottom 0
-hc attr theme.padding_right 0
+hc attr theme.padding_left 4
+hc attr theme.padding_bottom 4
+hc attr theme.padding_right 4
+hc attr theme.title_depth 4
hc attr theme.title_height 27
hc attr theme.title_font 'Inconsolata-24'

@@ -197,7 +201,6 @@ hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off
hc rule class=Alacritty focus=on
hc rule class=lximage-qt focus=on
hc rule class=qterminal focus=on
-hc rule class=SDL_App focus=on floating=on
hc rule class=Sxiv focus=on
hc rule class=Vncviewer focus=on tag="$(nameforidx 2 $tagnames)" index=0
hc rule class=xterm-256color focus=on
@@ -205,6 +208,8 @@ hc rule class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole)' focus=on
hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
# windows that should float.
hc rule class~'(.*[Ee][Xx][Ee])' floating=on
+hc rule class=pinentry-qt5 floating=on focus=on
+hc rule class=SDL_App focus=on floating=on
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' floating=on
# web browsers
hc rule class=Chromium-browser focus=off tag="$(nameforidx 4 $tagnames)"
@@ -215,5 +220,6 @@ hc rule class=QupZilla focus=off tag="$(nameforidx 4 $tagnames)"
# final setup
hc unlock
/usr/local/bin/tint2 &
-hc pad 0 0 0 0 64 # zero out padding
+hc pad 0 0 0 0 0 # zero out padding
+hc pad 1 0 0 0 64
printf 'config/herbstluftwm/autostart: ...complete\n'

Return to the top of this page or return to the overview of this repo.

Diff config/picom/picom.conf

diff --git a/config/picom/picom.conf b/config/picom/picom.conf
index 76dce8c..a6bdf91 100644
--- a/config/picom/picom.conf
+++ b/config/picom/picom.conf
@@ -46,6 +46,8 @@ opacity-rule = [
"100:class_g = 'Fxtv'",
"100:class_g = 'Gimp'",
"100:class_g = 'Gvim'",
+ "95:class_g = 'liferea'",
+ "95:class_g = 'Liferea'",
"100:class_g = 'mpv'",
"100:class_g = 'Navigator'",
"100:class_g = 'qt5ct'",
@@ -77,9 +79,8 @@ xrender-sync-fence = true;
blur:
{
method = "none";
- size = 33;
- deviation = 13.0;
- kernel = "5x5box";
+ size = 1;
+ strength = 9;
}

# Window type settings

Return to the top of this page or return to the overview of this repo.

Diff config/redshift/redshift.conf

diff --git a/config/redshift/redshift.conf b/config/redshift/redshift.conf
index a82313a..43643db 100644
--- a/config/redshift/redshift.conf
+++ b/config/redshift/redshift.conf
@@ -19,5 +19,4 @@ lon=-123.1

; adjustment method config
[randr]
-screen=0

Return to the top of this page or return to the overview of this repo.

Diff config/tint2/tint2rc.fix

diff --git a/config/tint2/tint2rc.fix b/config/tint2/tint2rc.fix
index 98ff0fe..ca9bf18 100644
--- a/config/tint2/tint2rc.fix
+++ b/config/tint2/tint2rc.fix
@@ -102,13 +102,13 @@ border_color_pressed = xDK0h 80

#--------------------------------------
# Panel
-panel_items = PTFSP
+panel_items = PTSP
panel_position = center left vertical
panel_size = 1080 64
panel_margin = 0 0
panel_padding = 0 0 0
panel_background_id = 1
-panel_monitor = all
+panel_monitor = 2
panel_dock = 0
panel_layer = normal
panel_shrink = 0

Return to the top of this page or return to the overview of this repo.

Diff q1/cev.cfg

diff --git a/q1/cev.cfg b/q1/cev.cfg
new file mode 100644
index 0000000..f303cb8
--- /dev/null
+++ b/q1/cev.cfg
@@ -0,0 +1,57 @@
+bind "k" "+moveleft"
+bind "h" "+movedown"
+bind ";" "+moveright"
+bind "j" "+jump"
+bind "l" "+back"
+bind "t" "messagemode"
+bind "o" "+forward"
+bind "~" "toggleconsole"
+unbind F1
+unbind F2
+unbind F3
+unbind F4
+unbind F5
+unbind F6
+unbind F7
+unbind F8
+unbind F9
+unbind F10
+unbind F11
+unbind F12
+bind "F1" "help"
+bind "F2" "menu_save"
+bind "F3" "menu_load"
+bind "F4" "menu_options"
+bind "F5" "echo Quicksaving...; wait; save quick"
+bind "F7" "menu_multiplayer"
+bind "F9" "echo Quickloading...; wait; load quick"
+bind "F11" "zoom_in"
+bind "F12" "screenshot"
+unbind MOUSE1
+unbind MOUSE2
+unbind MOUSE3
+unbind MOUSE4
+unbind MWHEELUP
+unbind MWHEELDOWN
+bind MOUSE1 "+attack"
+bind MOUSE2 "impulse 7"
+bind MOUSE3 "impulse 3"
+bind MOUSE4 "impulse 3"
+bind MWHEELUP "impulse 2"
+bind MWHEELDOWN "impulse 1"
+
+//
+cl_bob "0"
+cl_rollangle "0"
+cl_rollspeed "250"
+v_gunkick "0"
+v_kickpitch "0"
+v_kickroll "0"
+v_kicktime "0"
+
+//
+gl_cshiftpercent "22"
+
+//
+fov "96"
+

Return to the top of this page or return to the overview of this repo.

Diff xsession

diff --git a/xsession b/xsession
index 07e6705..14e3005 100644
--- a/xsession
+++ b/xsession
@@ -4,6 +4,7 @@ GTK2_RC_FILES="$HOME/.config/gtkrc-2.0"; export GTK2_RC_FILES
PATH="$HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"; export PATH
QT_QPA_PLATFORMTHEME='qt5ct'; export QT_QPA_PLATFORMTHEME

+xrandr --output DVI-D-0 --right-of VGA-0 # try to position monitors
nvidia-settings --load-config-only & # mostly for color profile
eval "$(/usr/local/bin/gpg-agent --enable-ssh-support --daemon)"
xmodmap $HOME/.config/Xmodmap 2>/dev/null # disable capslock, capslock > super
@@ -15,7 +16,7 @@ xscreensaver -no-splash & # I like xscreensaver
picom & # transparency
dunst & # notifications
redshift & # automated screen color temperature
-~/.local/bin/conky & # system stats monitor
+~/.local/bin/conky -m 1 & # system stats monitor
qlipper & # clipboard manager
exec /usr/local/bin/herbstluftwm

Return to the top of this page or return to the overview of this repo.