commit e27713a6daa2bc034e85eeb69e64f8b571876ce8
parent 59f86c55bee108ed48fb8778a81028f139a7b190
Author: regexghost <dev@regexghost.com>
Date: Sat, 30 May 2026 19:07:24 +0100
re-done xinitrc, now calling seperate scripts, substitutions per WM setup
Diffstat:
8 files changed, 34 insertions(+), 19 deletions(-)
diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc
@@ -98,6 +98,7 @@ alias vol='pactl get-sink-volume @DEFAULT_SINK@ | head -n 1 | cut -d "/" -f 2 |
alias clearlogs='sudo journalctl --vacuum-time=2d'
alias q='trim_history && exit'
alias reload='. ~/.bashrc'
+alias pong='ping -c 2 -W 2'
# Git Aliases
@@ -136,6 +137,7 @@ alias as='echo "Use \as to run as command, disabled as too easy to type accident
alias todo='$VISUAL ~/Documents/todo.md'
alias durationr='media-file-duration . -r'
alias durationi='media-file-duration . -i'
+alias kb='~/.local/share/regexghost/wm-scripts/keyboard-settings.sh'
## Functions to basic programs
diff --git a/dotfiles/.config/nano/nanorc b/dotfiles/.config/nano/nanorc
@@ -29,7 +29,9 @@ bind ^W exit all
bind ^S savefile main
bind ^F whereis all
bind ^G findnext all
-bind ^D findprevious all
+bind ^D pagedown all
+bind ^U pageup all
+bind ^T findprevious all
bind ^R replace main
bind ^X cut all
bind ^C copy main
diff --git a/dotfiles/.config/newsraft/config b/dotfiles/.config/newsraft/config
@@ -3,3 +3,4 @@ bind f exec-quiet '~/.config/newsraft/queue-vid.sh "%l"'
bind t exec '~/.config/newsraft/article.sh "%l"'
global-section-hide true
item-limit 20
+menu-item-sorting unread-desc
diff --git a/dotfiles/.xinitrc b/dotfiles/.xinitrc
@@ -1,29 +1,14 @@
# Notifications
dunst & disown
-# Increase key rate (delay = 200, repeat rate = 40)
-xset r rate 200 40
-
# No screen timeout/auto sleep
xset s off
xset dpms 0 0 0
-# Swap caps lock and escape
-setxkbmap -option caps:escape
-
-# lemonbar
-(sleep 10 && ~/.local/share/regexghost/panel/lemonbar-runner.sh) & disown
-
-# Wallpaper
-(sleep 8 && feh --bg-fill --no-fehbg ~/.config/regexghost/background.jpg) & disown
-
-# Compositor
-(sleep 6 && xcompmgr -n) & disown
+# Keyboard settings
+~/.local/share/regexghost/wm-scripts/keyboard-settings.sh
# Ctrl+Alt+Arrows to Home, End, PageUp and PageDown
xkbcomp -I$XDG_CONFIG_HOME/xkb $XDG_CONFIG_HOME/xkb/keymap/mykbd $DISPLAY
-# Window manger
-exec jwm 2> ~/.cache/xsession-errors
-# exec awesome 2> ~/.cache/xsession-errors
-# exec i3 2> ~/.cache/xsession-errors
+#### Start Substitute - xinit script
diff --git a/dotfiles/xinit-Substitution-jwm-.xinitrc b/dotfiles/xinit-Substitution-jwm-.xinitrc
@@ -0,0 +1,3 @@
+#### Start Substitute - xinit script
+~/.local/share/regexghost/wm-scripts/jwm-xinit.sh
+#### End Substitute
diff --git a/wm-scripts/Makefile b/wm-scripts/Makefile
@@ -7,3 +7,5 @@ normal:
cp dmenu-runner.sh ${PREFIX}/dmenu-runner.sh
cp dmenu-programs.sh ${PREFIX}/dmenu-programs.sh
cp bookmarks.sh ${PREFIX}/bookmarks.sh
+ cp keyboard-settings.sh ${PREFIX}/keyboard-settings.sh
+ cp jwm-xinit.sh ${PREFIX}/jwm-xinit.sh
diff --git a/wm-scripts/jwm-xinit.sh b/wm-scripts/jwm-xinit.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# lemonbar
+(sleep 10 && ~/.local/share/regexghost/panel/lemonbar-runner) &
+
+# Wallpaper
+(sleep 8 && feh --bg-fill --no-fehbg ~/.config/regexghost/background.jpg) &
+
+# Compositor
+(sleep 6 && xcompmgr -n) &
+
+# Window manager
+exec jwm 2> ~/.cache/xsession-errors
diff --git a/wm-scripts/keyboard-settings.sh b/wm-scripts/keyboard-settings.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Increase key rate (delay = 200, repeat rate = 40)
+xset r rate 200 40
+
+# Caps lock -> Escape
+setxkbmap -option caps:escape