about summary refs log tree commit diff stats
path: root/config/X11
diff options
context:
space:
mode:
authorensa <psii@riseup.net>2021-09-16 17:37:41 -0700
committerensa <psii@riseup.net>2021-09-16 17:37:41 -0700
commitebae3707b36e9a83014ef08271d75bd9826bb999 (patch)
tree9a9a0b3d9a7c6a4475a5394f2bd25848ebadb552 /config/X11
parent3f4e930385675a4613db5f12b19557b126c29559 (diff)
downloadcfg-ebae3707b36e9a83014ef08271d75bd9826bb999.tar.gz
organization and replacements, fixes
bin/
	bother, mbsync-cron, rsschk: notify-send switched to notif
	catgirl-open.sh: simplified
	comm-sel: removed cordless
	kbsetup: sets up keyboard stuff
	lh: cleanup
		added mov and wav support
		audio files now create a terminal mpv
	notif: sends notification to xnotify
config/
	X11/
		xprofile: replaced keyboard lines with kbsetup
			replaced dunst with xnotify/tiramisu
			added a line for cleaning up catgirl-open.sh
		xresources: xnotify resources
	betteresc: xmodmap file for easy-to-access hyper key
	color/colors.sh: cleaned up
	dunst/dunstrc: removed
	lf/lfrc: fixed prompt
		replaced notify-send with notif
	shrc: moved MEDNAFEN_HOME to $HOME_EXT
	vis/visrc.lua: add ctags, fix hyper|esc issue
Diffstat (limited to 'config/X11')
-rw-r--r--config/X11/xprofile18
-rw-r--r--config/X11/xresources9
2 files changed, 21 insertions, 6 deletions
diff --git a/config/X11/xprofile b/config/X11/xprofile
index eb89ed0..058f55b 100644
--- a/config/X11/xprofile
+++ b/config/X11/xprofile
@@ -2,25 +2,31 @@
 . $HOME/etc/shrc
 # set caps to escape when pressed and super when held
 # also sets dvorak programmer layout
-setxkbmap -option caps:super -layout us -variant dvp && xcape -e 'Super_L=Escape'
+kbsetup
 ## detect if laptop has other display connected, kills builtin if so
 #[ $(xrandr -q|grep -cE '^(DP|VGA|HDMI)-[[:digit:]] connected') -gt 0 ] && monitor
 # disables the beeper
 xset b off
-# increases kbd repeat on hold
-xset r rate 300 50
 # enables x colorscheme
 xrdb -load $HOME_ETC/X11/xresources
 
 # set background
 xbg &
 # notification daemon
-dunst &
+# setup xnotify
+export XNOTIFY_FIFO="$HOME_CACHE/xnotify$DISPLAY.fifo"
+rm -f $XNOTIFY_FIFO
+mkfifo $XNOTIFY_FIFO
+xnotify 0<>$XNOTIFY_FIFO &
+# start tiramisu
+tiramisu -j | jq --raw-output --unbuffered '.summary + "\t" + .body' > $XNOTIFY_FIFO &
+# status bar
+bar.sh &
 # mouse vanishes when typing
 xbanish &
 # activate mpd scrobbler
 mpdas -c $HOME_ETC/mpdasrc &
-# status bar
-bar.sh &
 # remind user of important tasks
 bother &
+# cleanup tabbed
+rm $HOME_CACHE/catgirl/tabbed-catgirl.xid
diff --git a/config/X11/xresources b/config/X11/xresources
index a56f91c..e7a69b2 100644
--- a/config/X11/xresources
+++ b/config/X11/xresources
@@ -50,6 +50,7 @@
 ! XTerm config.
 xterm*termName: xterm-16color
 xterm*metaSendsEscape: true
+xterm*font: -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso10646-1
 xterm*faceName: Hermit:style=regular:size=10
 xterm*cursorColor: curs
 xterm*boldMode: false
@@ -86,3 +87,11 @@ Sxiv*foreground: fg
 ! xlock settings
 XLock.mode: random
 XLock.font: -*-terminus-medium-r-*--12-*-*-*-*-*-iso10646-1
+
+! xnotify settings
+xnotify.title.font: Hermit:style=bold:size=10
+xnotify.body.font: Hermit:style=regular:size=10
+xnotify.border: ligreen
+xnotify.geometry: -10+23
+xnotify.gravity: NE
+xnotify.alignment: right