]> git.newer.systems Git - configs.git/commitdiff
more-configs
authorTucker Johnson <tucker@newer.systems>
Sat, 16 May 2026 21:38:44 +0000 (17:38 -0400)
committerTucker Johnson <tucker@newer.systems>
Sat, 16 May 2026 21:38:44 +0000 (17:38 -0400)
.config/dunst/dunstrc [new file with mode: 0644]
.config/nsxiv/exec/key-handler [new file with mode: 0755]
.config/sxiv [new symlink]
.config/x11/xprofile
.gitignore

diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc
new file mode 100644 (file)
index 0000000..3dff9d8
--- /dev/null
@@ -0,0 +1,31 @@
+[global]
+    monitor = 0
+    follow = keyboard
+    width = 370
+    height = 350
+    offset = 0x19
+    padding = 8
+    horizontal_padding = 8
+    frame_width = 2
+    frame_color = "#3c3836"
+    transparency = 10
+    font = Monospace 12
+    format = "<b>%s</b>\n%b"
+
+[urgency_low]
+    background = "#1d2021"
+    foreground = "#928374"
+    frame_color = "#3c3836"
+    timeout = 3
+
+[urgency_normal]
+    background = "#282828"
+    foreground = "#ebdbb2"
+    frame_color = "#458588"
+    timeout = 5
+
+[urgency_critical]
+    background = "#282828"
+    foreground = "#fb4934"
+    frame_color = "#cc241d"
+    timeout = 0
diff --git a/.config/nsxiv/exec/key-handler b/.config/nsxiv/exec/key-handler
new file mode 100755 (executable)
index 0000000..c743be4
--- /dev/null
@@ -0,0 +1,33 @@
+#!/bin/sh
+while read -r file
+do
+        case "$1" in
+        "w") setbg "$file" & ;;
+        "c")
+               [ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | dmenu -l 20 -i -p "Copy file(s) to where?" | sed "s|~|$HOME|g")"
+               [ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit
+               cp "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file copied to $destdir." &
+               ;;
+        "m")
+               [ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | dmenu -l 20 -i -p "Move file(s) to where?" | sed "s|~|$HOME|g")"
+               [ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit
+               mv "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file moved to $destdir." &
+               ;;
+       "r")
+               magick -rotate 90 "$file" "$file" ;;
+       "R")
+               magick -rotate -90 "$file" "$file" ;;
+       "f")
+               magick -flop "$file" "$file" ;;
+       "y")
+               printf "%s" "$file" | tr -d '\n' | xclip -selection clipboard &&
+               notify-send "$file copied to clipboard" & ;;
+       "Y")
+               readlink -f "$file" | tr -d '\n' | xclip -selection clipboard &&
+                       notify-send "$(readlink -f "$file") copied to clipboard" & ;;
+       "d")
+               [ "$(printf "No\\nYes" | dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;;
+       "g")    ifinstalled gimp && setsid -f gimp "$file" ;;
+       "i")    notify-send "File information" "$(mediainfo "$file" | sed "s/[ ]\+:/:/g;s/: /: <b>/;s/$/<\/b>/" | grep "<b>")" ;;
+        esac
+done
diff --git a/.config/sxiv b/.config/sxiv
new file mode 120000 (symlink)
index 0000000..4252964
--- /dev/null
@@ -0,0 +1 @@
+nsxiv
\ No newline at end of file
index d6b88c5e864a4406d24fd9e87caa2edd996852ab..aba98b7701af2f8148b4eb355246d1420321b443 100755 (executable)
@@ -5,7 +5,8 @@
 
 xrandr --dpi 96                # Set DPI. User may want to use a larger number for larger screens.
 setbg &                        # set the background with the `setbg` script
-#xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & xrdbpid=$!    # Uncomment to use Xresources colors/settings on startup
+xresources="${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources"
+[ -f "$xresources" ] && xrdb "$xresources" & xrdbpid=$!
 
 autostart="mpd xcompmgr dunst unclutter pipewire remapd"
 
index fa9767e542f830ea4eb78bc5988ad77ff00e29bc..93b9617ef9631d41e9f318fa5e3c03d7df684854 100644 (file)
@@ -4,3 +4,4 @@
 .config/shell/localenvrc
 .config/lf/shortcutrc
 .config/newsboat/urls
+.config/x11/xresources