From 5e74241bb8b2a672a7adcc4a8b6e1dea03f2f5a2 Mon Sep 17 00:00:00 2001 From: zachir Date: Fri, 10 Feb 2023 12:32:43 -0600 Subject: remove unnecessary cruft --- Serenity/Ladybird.conf | 2 - X11/xprofile | 10 +- bspwm/bspwmrc | 66 - bspwm/noswallow | 1 - bspwm/terminals | 3 - caffeine/audio_blacklist.txt | 0 caffeine/whitelist.txt | 0 calcurse/keys | 95 +- dwm/autostart.sh | 3 - dwm/autostart_blocking.sh | 2 - ff_enterprise_policy.zip | Bin 2479 -> 0 bytes firejail/disable-exec.local | 1 - firejail/dolphin-emu.local | 4 - firejail/librewolf.local | 4 - firejail/lynx.local | 3 - firejail/mpv.local | 3 - firejail/neomutt.local | 24 - firejail/nextcloud.local | 4 - firejail/qutebrowser.local | 4 - firejail/steam.local | 2 - ghostwriter/ghostwriter.conf | 68 -- herbstluftwm/README.md | 3 - herbstluftwm/autostart | 205 ---- herbstluftwm/spblue | 17 - herbstluftwm/sphtop | 18 - herbstluftwm/spirss | 18 - herbstluftwm/spmpv | 22 - herbstluftwm/spmutt | 18 - herbstluftwm/spncmp | 18 - herbstluftwm/sppmxr | 18 - herbstluftwm/spprof | 18 - herbstluftwm/spterm | 18 - jellycli/jellycli.yaml | 38 - kshrc | 40 - lxqt/lxqt.conf | 2 - mksh/mkshalias | 50 - mksh/mkshfunc | 58 - mksh/mkshrc | 687 ----------- modprobed-db.conf | 21 - newsboat/config | 55 - polybar/config | 615 ---------- profanity/themes/redbox | 80 -- qtile/config.py | 544 --------- river/init | 167 --- snownews/colors | 21 - snownews/keybindings | 39 - spectrwm/spectrwm.conf | 145 --- stalonetrayrc | 137 --- swayidle/config | 2 - swhkd/swhkdrc | 174 --- tofi/config | 18 - trizen/trizen.conf | 57 - waybar/config | 236 ---- waybar/config-dwl | 217 ---- waybar/config-river | 157 --- waybar/style.css | 245 ---- waylock/waylock.toml | 4 - xmodmap | 26 - xplr/init.lua | 2443 -------------------------------------- xplr/plugins/dragon/LICENSE | 21 - xplr/plugins/dragon/README.md | 49 - xplr/plugins/dragon/src/init.lua | 62 - 62 files changed, 53 insertions(+), 7029 deletions(-) delete mode 100644 Serenity/Ladybird.conf delete mode 100755 bspwm/bspwmrc delete mode 100644 bspwm/noswallow delete mode 100644 bspwm/terminals delete mode 100644 caffeine/audio_blacklist.txt delete mode 100644 caffeine/whitelist.txt delete mode 100755 dwm/autostart.sh delete mode 100755 dwm/autostart_blocking.sh delete mode 100644 ff_enterprise_policy.zip delete mode 100644 firejail/disable-exec.local delete mode 100644 firejail/dolphin-emu.local delete mode 100644 firejail/librewolf.local delete mode 100644 firejail/lynx.local delete mode 100644 firejail/mpv.local delete mode 100644 firejail/neomutt.local delete mode 100644 firejail/nextcloud.local delete mode 100644 firejail/qutebrowser.local delete mode 100644 firejail/steam.local delete mode 100644 ghostwriter/ghostwriter.conf delete mode 100644 herbstluftwm/README.md delete mode 100755 herbstluftwm/autostart delete mode 100755 herbstluftwm/spblue delete mode 100755 herbstluftwm/sphtop delete mode 100755 herbstluftwm/spirss delete mode 100755 herbstluftwm/spmpv delete mode 100755 herbstluftwm/spmutt delete mode 100755 herbstluftwm/spncmp delete mode 100755 herbstluftwm/sppmxr delete mode 100755 herbstluftwm/spprof delete mode 100755 herbstluftwm/spterm delete mode 100644 jellycli/jellycli.yaml delete mode 100644 kshrc delete mode 100644 lxqt/lxqt.conf delete mode 100644 mksh/mkshalias delete mode 100644 mksh/mkshfunc delete mode 100644 mksh/mkshrc delete mode 100644 modprobed-db.conf delete mode 100644 newsboat/config delete mode 100644 polybar/config delete mode 100644 profanity/themes/redbox delete mode 100644 qtile/config.py delete mode 100755 river/init delete mode 100644 snownews/colors delete mode 100644 snownews/keybindings delete mode 100644 spectrwm/spectrwm.conf delete mode 100644 stalonetrayrc delete mode 100644 swayidle/config delete mode 100755 swhkd/swhkdrc delete mode 100644 tofi/config delete mode 100644 trizen/trizen.conf delete mode 100644 waybar/config delete mode 100644 waybar/config-dwl delete mode 100644 waybar/config-river delete mode 100644 waybar/style.css delete mode 100644 waylock/waylock.toml delete mode 100644 xmodmap delete mode 100644 xplr/init.lua delete mode 100644 xplr/plugins/dragon/LICENSE delete mode 100644 xplr/plugins/dragon/README.md delete mode 100644 xplr/plugins/dragon/src/init.lua diff --git a/Serenity/Ladybird.conf b/Serenity/Ladybird.conf deleted file mode 100644 index 07f1519..0000000 --- a/Serenity/Ladybird.conf +++ /dev/null @@ -1,2 +0,0 @@ -[General] -homepage=https://search.brave.com/ diff --git a/X11/xprofile b/X11/xprofile index 96f2954..18647e2 100755 --- a/X11/xprofile +++ b/X11/xprofile @@ -1,7 +1,7 @@ #!/bin/sh -layout.sh -tsoff -xrdb ~/.Xresources & +#layout.sh +#tsoff +#xrdb ~/.Xresources & setxkbmap -option "caps:escape" & -xwallpaper --center ~/background.jpg & -picom & +#xwallpaper --center ~/background.jpg & +#picom & diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc deleted file mode 100755 index 5799efb..0000000 --- a/bspwm/bspwmrc +++ /dev/null @@ -1,66 +0,0 @@ -#! /bin/sh -sxhkd -c ~/.config/sxhkd/sxhkdrc.1 & -launch_polybar.sh 'bspwm' & -pgrep -fl 'pidswallow -gl' || pidswallow -gl -~/.config/autostart.sh - -set_desktops () { - case "$1" in - "2") - bspc monitor "$2" -d I II III IV V - bspc monitor "$3" -d VI VII VIII IX X - ;; - "3") - bspc monitor "$2" -d I II III - bspc monitor "$3" -d IV V VI VIII - bspc monitor "$4" -d VIII IX X - ;; - "4") - bspc monitor "$2" -d I II III - bspc monitor "$3" -d IV V - bspc monitor "$4" -d VI VII - bspc monitor "$5" -d VIII IX X - ;; - "5") - bspc monitor "$2" -d I II - bspc monitor "$3" -d III IV - bspc monitor "$4" -d V VI - bspc monitor "$5" -d VII VIII - bspc monitor "$6" -d IX X - esac -} - -MONITORS=`xrandr | awk '/ connected/ && /[[:digit:]]x[[:digit:]].*+/{print $1}'` -MONITOR_COUNT=`echo "$MONITORS" | wc -l` -if [ "$MONITOR_COUNT" -lt 2 ]; then - bspc monitor -d I II III IV V VI VII VIII IX X -else - set_desktops "$MONITOR_COUNT" `echo "$MONITORS" | sed 's/\n/ /g'` -fi - -bspc config border_width 2 -bspc config window_gap 10 -bspc config top_padding 27 - -bspc config split_ratio 0.50 -bspc config borderless_monocle true -bspc config gapless_monocle true - -bspc config focus_follows_pointer true - -bspc rule -a Thunderbird:\* desktop=X -bspc rule -a Nextcloud:nextcloud state=tiled -bspc rule -a Surf:surf state=tiled -bspc rule -a QjackCtl:qjackctl state=floating -bspc rule -a Ardour-5.12.0:ardour-5.12.0 state=floating - -bspc rule -a sphtop sticky=on state=floating -bspc rule -a spterm sticky=on state=floating -bspc rule -a sppmxr sticky=on state=floating -bspc rule -a spblue sticky=on state=floating -bspc rule -a spncmp sticky=on state=floating -bspc rule -a spmutt sticky=on state=floating -bspc rule -a spprof sticky=on state=floating -bspc rule -a spircc sticky=on state=floating -bspc rule -a sptodo sticky=on state=floating -bspc rule -a sptrem sticky=on state=floating diff --git a/bspwm/noswallow b/bspwm/noswallow deleted file mode 100644 index b75624e..0000000 --- a/bspwm/noswallow +++ /dev/null @@ -1 +0,0 @@ -REAPER diff --git a/bspwm/terminals b/bspwm/terminals deleted file mode 100644 index 974a8d3..0000000 --- a/bspwm/terminals +++ /dev/null @@ -1,3 +0,0 @@ -tabbed -st -"tabbed" diff --git a/caffeine/audio_blacklist.txt b/caffeine/audio_blacklist.txt deleted file mode 100644 index e69de29..0000000 diff --git a/caffeine/whitelist.txt b/caffeine/whitelist.txt deleted file mode 100644 index e69de29..0000000 diff --git a/calcurse/keys b/calcurse/keys index 28ff9e4..3304bbb 100644 --- a/calcurse/keys +++ b/calcurse/keys @@ -6,50 +6,51 @@ # via the key configuration menu of the interactive user # interface. It should not be edited directly. -generic-cancel ESC -generic-select SPC -generic-credits @ -generic-help ? -generic-quit q Q -generic-save s S ^S -generic-reload R -generic-copy c -generic-paste p ^V -generic-change-view TAB -generic-import i I -generic-export x X -generic-goto g G -generic-other-cmd o O -generic-config-menu C -generic-redraw ^R -generic-add-appt ^A -generic-add-todo ^T -generic-prev-day T ^H -generic-next-day t ^L -generic-prev-week W ^K -generic-next-week w -generic-prev-month M -generic-next-month m -generic-prev-year Y -generic-next-year y -generic-scroll-down ^N -generic-scroll-up ^P -generic-goto-today ^G -generic-command : -move-right l L RGT -move-left h H LFT -move-down j J DWN -move-up k K UP -start-of-week 0 -end-of-week $ -add-item a A -del-item d D -edit-item e E -view-item v V RET -pipe-item | -flag-item ! -repeat r -edit-note n N -view-note > -raise-priority + -lower-priority - +generic-cancel ESC +generic-select SPC +generic-credits @ +generic-help ? +generic-quit q Q +generic-save s S ^S +generic-reload R +generic-copy c +generic-paste p ^V +generic-change-view TAB +generic-prev-view KEY_BTAB +generic-import i I +generic-export x X +generic-goto g G +generic-other-cmd o O +generic-config-menu C +generic-redraw ^R +generic-add-appt ^A +generic-add-todo ^T +generic-prev-day T ^H +generic-next-day t ^L +generic-prev-week W ^K +generic-next-week w +generic-prev-month M +generic-next-month m +generic-prev-year Y +generic-next-year y +generic-scroll-down ^N +generic-scroll-up ^P +generic-goto-today ^G +generic-command : +move-right l L RGT +move-left h H LFT +move-down j J DWN +move-up k K UP +start-of-week 0 +end-of-week $ +add-item a A +del-item d D +edit-item e E +view-item v V RET +pipe-item | +flag-item ! +repeat r +edit-note n N +view-note > +raise-priority + +lower-priority - diff --git a/dwm/autostart.sh b/dwm/autostart.sh deleted file mode 100755 index 000d580..0000000 --- a/dwm/autostart.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -sh -c ~/.config/autostart.sh -pgrep -x dwmblocks >/dev/null || dwmblocks diff --git a/dwm/autostart_blocking.sh b/dwm/autostart_blocking.sh deleted file mode 100755 index 3927441..0000000 --- a/dwm/autostart_blocking.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -sh -c ~/.xprofile & disown diff --git a/ff_enterprise_policy.zip b/ff_enterprise_policy.zip deleted file mode 100644 index a2fc6d9..0000000 Binary files a/ff_enterprise_policy.zip and /dev/null differ diff --git a/firejail/disable-exec.local b/firejail/disable-exec.local deleted file mode 100644 index 3162dc1..0000000 --- a/firejail/disable-exec.local +++ /dev/null @@ -1 +0,0 @@ -ignore noexec ${HOME} diff --git a/firejail/dolphin-emu.local b/firejail/dolphin-emu.local deleted file mode 100644 index 43c8046..0000000 --- a/firejail/dolphin-emu.local +++ /dev/null @@ -1,4 +0,0 @@ -noblacklist ${HOME}/roms - -mkdir ${HOME}/roms -whitelist ${HOME}/roms diff --git a/firejail/librewolf.local b/firejail/librewolf.local deleted file mode 100644 index cede7d2..0000000 --- a/firejail/librewolf.local +++ /dev/null @@ -1,4 +0,0 @@ -noblacklist ${HOME}/dwhelper - -mkdir ${HOME}/dwhelper -whitelist ${HOME}/dwhelper diff --git a/firejail/lynx.local b/firejail/lynx.local deleted file mode 100644 index acdd06c..0000000 --- a/firejail/lynx.local +++ /dev/null @@ -1,3 +0,0 @@ -noblacklist /tmp/neomutt.html - -whitelist /tmp/neomutt.html diff --git a/firejail/mpv.local b/firejail/mpv.local deleted file mode 100644 index b6915f0..0000000 --- a/firejail/mpv.local +++ /dev/null @@ -1,3 +0,0 @@ -whitelist ${HOME}/videos -whitelist ${HOME}/Videos -whitelist ${HOME}/Media diff --git a/firejail/neomutt.local b/firejail/neomutt.local deleted file mode 100644 index ce84d3f..0000000 --- a/firejail/neomutt.local +++ /dev/null @@ -1,24 +0,0 @@ -noblacklist ${HOME}/.mbsyncrc -noblacklist ${HOME}/.local/scripts -noblacklist ${HOME}/.local/share/mail -noblacklist ${HOME}/.local/share/pass -noblacklist ${HOME}/.local/share/gnupg -noblacklist /etc/ld.so.preload -noblacklist /etc/lynx.cfg -noblacklist /etc/ssl/certs/ca-certificates.crt -noblacklist /usr/share/mutt-wizard - -mkdir ${HOME}/.local/share/mail -mkdir ${HOME}/.local/share/pass -mkdir ${HOME}/.local/share/gnupg -whitelist ${HOME}/.mbsyncrc -whitelist ${HOME}/.local/scripts -whitelist ${HOME}/.local/share/mail -whitelist ${HOME}/.local/share/pass -whitelist ${HOME}/.local/share/gnupg -whitelist /etc/ld.so.preload -whitelist /etc/lynx.cfg -whitelist /etc/ssl/certs/ca-certificates.crt -whitelist /usr/share/mutt-wizard - -ignore apparmor diff --git a/firejail/nextcloud.local b/firejail/nextcloud.local deleted file mode 100644 index 94f4aec..0000000 --- a/firejail/nextcloud.local +++ /dev/null @@ -1,4 +0,0 @@ -noblacklist ${HOME}/nc - -mkdir ${HOME}/nc -whitelist ${HOME}/nc diff --git a/firejail/qutebrowser.local b/firejail/qutebrowser.local deleted file mode 100644 index 82a6106..0000000 --- a/firejail/qutebrowser.local +++ /dev/null @@ -1,4 +0,0 @@ -noblacklist ${HOME}/.local/share/qutebrowser-profiles - -mkdir ${HOME}/.local/share/qutebrowser-profiles -whitelist ${HOME}/.local/share/qutebrowser-profiles diff --git a/firejail/steam.local b/firejail/steam.local deleted file mode 100644 index 33c6b88..0000000 --- a/firejail/steam.local +++ /dev/null @@ -1,2 +0,0 @@ -seccomp !ptrace,!mount,!name_to_handle_at,!pivot_root,!umount2,!chroot -ignore seccomp diff --git a/ghostwriter/ghostwriter.conf b/ghostwriter/ghostwriter.conf deleted file mode 100644 index b0789b2..0000000 --- a/ghostwriter/ghostwriter.conf +++ /dev/null @@ -1,68 +0,0 @@ -[Application] -locale=en_US - -[Export] -lastUsedExporter=Sundown -smartTypographyEnabled=true - -[FileHistory] -1\cursorPosition=5268 -1\filePath=/home/zachir/Documents/Aquaria/chapter1.md -size=1 - -[HUD] -alternateRowColors=false -cheatSheetHudGeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\xc8\0\0\0\xc8\0\0\x1\xc1\0\0\x2W\0\0\0\xc8\0\0\0\xc8\0\0\x1\xc1\0\0\x2W\0\0\0\0\0\0\0\0\a\x80\0\0\0\xc8\0\0\0\xc8\0\0\x1\xc1\0\0\x2W) -cheatSheetHudOpen=false -desktopCompositingEnabled=true -documentStatisticsHudGeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\xc8\0\0\0\xc8\0\0\x1\xc1\0\0\x2W\0\0\0\xc8\0\0\0\xc8\0\0\x1\xc1\0\0\x2W\0\0\0\0\0\0\0\0\a\x80\0\0\0\xc8\0\0\0\xc8\0\0\x1\xc1\0\0\x2W) -documentStatisticsHudOpen=false -opacity=200 -outlineHudGeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\xc8\0\0\0\xc8\0\0\x1\xc1\0\0\x2W\0\0\0\xc8\0\0\0\xc8\0\0\x1\xc1\0\0\x2W\0\0\0\0\0\0\0\0\a\x80\0\0\0\xc8\0\0\0\xc8\0\0\x1\xc1\0\0\x2W) -outlineHudOpen=false -sessionStatisticsHudGeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\xc8\0\0\0\xc8\0\0\x1\xc1\0\0\x2W\0\0\0\xc8\0\0\0\xc8\0\0\x1\xc1\0\0\x2W\0\0\0\0\0\0\0\0\a\x80\0\0\0\xc8\0\0\0\xc8\0\0\x1\xc1\0\0\x2W) -sessionStatisticsHudOpen=false -windowButtonLayout=0 - -[Preview] -customStyleSheets=@Invalid() -htmlPreviewOpen=false -lastUsedExporter=Sundown -lastUsedStyleSheet=:/resources/github-dark.css - -[Save] -autoSave=true -backupFile=true -rememberFileHistory=true - -[Spelling] -liveSpellCheck=true -locale=en_US - -[Style] -blockquoteStyle=0 -displayTimeInFullScreen=true -editorWidth=1 -focusMode=1 -font="DejaVu Sans Mono,12,-1,5,50,0,0,0,0,0" -hideHudsOnPreviewEnabled=false -hideHudsWhenTypingEnabled=false -hideMenuBarInFullScreenEnabled=true -highlightLineBreaks=false -interfaceStyle=1 -largeHeadings=true -theme=Classic Dark -underlineInsteadOfItalics=false - -[Tabs] -insertSpacesForTabs=false -tabWidth=4 - -[Typing] -autoMatchEnabled=true -autoMatchFilter=\"'([{*_`< -bulletPointCyclingEnabled=true - -[Window] -mainWindowGeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\x10\0\0\a\x7f\0\0\x4\x37\0\0\0\0\0\0\0\x10\0\0\a\x7f\0\0\x4\x37\0\0\0\0\0\0\0\0\a\x80\0\0\0\0\0\0\0\x10\0\0\a\x7f\0\0\x4\x37) -mainWindowState=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\a\x80\0\0\x3\xf1\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\0) diff --git a/herbstluftwm/README.md b/herbstluftwm/README.md deleted file mode 100644 index e257a35..0000000 --- a/herbstluftwm/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Herbstluftwm Config - -My Herbstluftwm Config \ No newline at end of file diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart deleted file mode 100755 index 372dbaf..0000000 --- a/herbstluftwm/autostart +++ /dev/null @@ -1,205 +0,0 @@ -#!/usr/bin/bash - -# this is a simple config for herbstluftwm - -hc() { - herbstclient "$@" -} - -if [ -n "$XDG_CONFIG_HOME" ]; then - $XDG_CONFIG_HOME/X11/xprofile & - $XDG_CONFIG_HOME/autostart.sh & -else - $HOME/.config/X11/xprofile & - $HOME/.config/autostart.sh & -fi - -launch_polybar.sh herbstluft - -hc emit_hook reload - -# remove all existing keybindings -hc keyunbind --all - -hc pad 0 20 - -hc detect_monitors - -# keybindings -# if you have a super key you will be much happier with Mod set to Mod4 -Mod=Mod1 # Use alt as the main modifier -#Mod=Mod4 # Use the super key as the main modifier -TERMINAL=alacritty - -hc keybind $Mod-Shift-e quit -hc keybind $Mod-Shift-r reload -hc keybind $Mod-Shift-q close -hc keybind $Mod-Return spawn $TERMINAL -hc keybind $Mod-Shift-Return spawn $TERMINAL -#hc keybind Super-l spawn i3lock-fancy -#hc keybind $Mod-m spawn mpcalbum.sh -#hc keybind $Mod-Shift-m spawn mpvlist.sh - -# scratchpads -hc keybind $Mod+Control+z spawn ~/.config/herbstluftwm/sphtop -hc keybind $Mod+Control+x spawn ~/.config/herbstluftwm/spterm -hc keybind $Mod+Control+c spawn ~/.config/herbstluftwm/sppmxr -hc keybind $Mod+Control+v spawn ~/.config/herbstluftwm/spblue -hc keybind $Mod+Control+b spawn ~/.config/herbstluftwm/spncmp -hc keybind $Mod+Control+a spawn ~/.config/herbstluftwm/spmutt -hc keybind $Mod+Control+s spawn ~/.config/herbstluftwm/spprof -hc keybind $Mod+Control+d spawn ~/.config/herbstluftwm/spirss -#hc keybind $Mod+Control+f spawn ~/.config/herbstluftwm/spmpv - -# minimize and unminimize -hc keybind $Mod+n jumpto last-minimized -hc keybind $Mod+Shift+n set_attr clients.focus.minimized toggle - -# basic movement -# focusing clients -hc keybind $Mod-h focus left -hc keybind $Mod-j focus down -hc keybind $Mod-k focus up -hc keybind $Mod-l focus right - -# moving clients -hc keybind $Mod-Shift-h shift left -hc keybind $Mod-Shift-j shift down -hc keybind $Mod-Shift-k shift up -hc keybind $Mod-Shift-l shift right - -# splitting frames -# create an empty frame at the specified direction -hc keybind $Mod-u split bottom 0.5 -hc keybind $Mod-o split right 0.5 -# let the current frame explode into subframes -hc keybind $Mod-Control-space split explode - -# resizing frames -resizestep=0.05 -hc keybind $Mod-Control-h resize left +$resizestep -hc keybind $Mod-Control-j resize down +$resizestep -hc keybind $Mod-Control-k resize up +$resizestep -hc keybind $Mod-Control-l resize right +$resizestep -hc keybind $Mod-Control-Left resize left +$resizestep -hc keybind $Mod-Control-Down resize down +$resizestep -hc keybind $Mod-Control-Up resize up +$resizestep -hc keybind $Mod-Control-Right resize right +$resizestep - -# tags -tag_names=( {1..9} ) -tag_keys=( {1..9} 0 ) - -hc rename default "${tag_names[0]}" || true -for i in ${!tag_names[@]} ; do - hc add "${tag_names[$i]}" - key="${tag_keys[$i]}" - if ! [ -z "$key" ] ; then - hc keybind "$Mod-$key" spawn hwinmv use_index $i - hc keybind "$Mod-Shift-$key" spawn hwinmv move_index "$i" - fi -done - -# cycle through tags -hc keybind $Mod-period use_index +1 --skip-visible -hc keybind $Mod-comma use_index -1 --skip-visible - -# layouting -hc keybind $Mod-e remove -hc keybind $Mod-Shift-f floating toggle -hc keybind $Mod-f fullscreen toggle -# The following cycles through the available layouts within a frame, but skips -# layouts, if the layout change wouldn't affect the actual window positions. -# I.e. if there are two windows within a frame, the grid layout is skipped. -hc keybind $Mod-space \ - or , and . compare tags.focus.curframe_wcount = 2 \ - . cycle_layout +1 vertical horizontal max vertical grid \ - , cycle_layout +1 - -# mouse -hc mouseunbind --all -hc mousebind $Mod-Button1 move -hc mousebind $Mod-Button2 zoom -hc mousebind $Mod-Button3 resize - -# focus -hc keybind $Mod-BackSpace cycle_monitor -hc keybind $Mod-Tab cycle_all +1 -hc keybind $Mod-Shift-Tab cycle_all -1 -hc keybind $Mod-c cycle -hc keybind $Mod-i jumpto urgent - -# theme -hc attr theme.tiling.reset 1 -hc attr theme.floating.reset 1 -hc set frame_border_active_color '#222222' -hc set frame_border_normal_color '#101010' -hc set frame_bg_normal_color '#565656' -hc set frame_bg_active_color '#345F0C' -hc set frame_border_width 1 -hc set always_show_frame 1 -hc set frame_bg_transparent 1 -hc set frame_transparent_width 5 -hc set frame_gap 4 -hc set hide_covered_windows on - -hc attr theme.active.color '#9fbc00' -hc attr theme.normal.color '#454545' -hc attr theme.urgent.color orange -hc attr theme.inner_width 1 -hc attr theme.inner_color black -hc attr theme.border_width 3 -hc attr theme.floating.border_width 4 -hc attr theme.floating.outer_width 1 -hc attr theme.floating.outer_color black -hc attr theme.active.inner_color '#3E4A00' -hc attr theme.active.outer_color '#3E4A00' -hc attr theme.background_color '#141414' - -hc set window_gap 0 -hc set frame_padding 0 -hc set smart_window_surroundings 0 -hc set smart_frame_surroundings 1 -hc set mouse_recenter_gap 0 -hc set focus_follows_mouse 1 - -# rules -hc unrule -F -#hc rule class=XTerm tag=3 # move all xterms to tag 3 -hc rule focus=on # normally focus new clients -#hc rule focus=off # normally do not focus new clients -# give focus to most common terminals -#hc rule class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole)' focus=on -hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on -hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on -hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off -# scratchpad rules -hc rule instance=sphtop floatplacement=center floating=true floating_geometry=900x600 -hc rule instance=spterm floatplacement=center floating=true floating_geometry=900x600 -hc rule instance=sppmxr floatplacement=center floating=true floating_geometry=900x600 -hc rule instance=spblue floatplacement=center floating=true floating_geometry=900x600 -hc rule instance=spncmp floatplacement=center floating=true floating_geometry=900x600 -hc rule instance=spmutt floatplacement=center floating=true floating_geometry=900x600 -hc rule instance=spprof floatplacement=center floating=true floating_geometry=900x600 -hc rule instance=spirss floatplacement=center floating=true floating_geometry=900x600 -#hc rule class=mpv floatplacement=center floating=true floating_geometry=900x600 - -hc set tree_style '╾│ ├└╼─┐' - -# unlock, just to be sure -hc unlock - -# do multi monitor setup here, e.g.: -# hc set_monitors 1280x1024+0+0 1280x1024+1280+0 -# or simply: -# hc detect_monitors - -# find the panel -#panel=~/.config/herbstluftwm/backup_panel.sh -#[ -x "$panel" ] || panel=/etc/xdg/herbstluftwm/panel.sh -#for monitor in $(herbstclient list_monitors | cut -d: -f1) ; do -# # start it on each monitor -# "$panel" $monitor & -#done - -sh tagmv 0 diff --git a/herbstluftwm/spblue b/herbstluftwm/spblue deleted file mode 100755 index 4c41a61..0000000 --- a/herbstluftwm/spblue +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -scratchpad=/tmp/herbstluftwm:spblue -if xdotool search --onlyvisible --classname 'spblue'; then - if [ "`herbstclient list_monitors | grep '[FOCUS]' | cut -d\\\" -f2`" = "`herbstclient attr clients.$(cat $scratchpad) | grep 's - - tag' | awk '{ print $6 }' | sed 's/\"//g'`" ]; then - xdotool search -onlyvisible -classname 'spblue' windowunmap - exit - fi -fi -if [ -f $scratchpad ]; then - if ! herbstclient bring $(cat $scratchpad); then xdotool search -classname 'spblue' windowmap && exit - fi -fi -if ! xdotool search --classname 'spblue' windowmap; then - . ~/.profile && alacritty --title 'spblue' --class 'spblue' -e zsh -c bluetoothctl & - xdotool search -sync -onlyvisible -classname 'spblue' - herbstclient attr clients.focus.winid > $scratchpad -fi diff --git a/herbstluftwm/sphtop b/herbstluftwm/sphtop deleted file mode 100755 index c845068..0000000 --- a/herbstluftwm/sphtop +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -scratchpad=/tmp/herbstluftwm:sphtop -if xdotool search --onlyvisible --classname 'sphtop'; then - if [ $(herbstclient list_monitors | grep '[FOCUS]' | cut -d\" -f2) = $(herbstclient attr clients.$(cat $scratchpad) | grep 's - - tag' | awk '{ print $6 }' | sed 's/"//g') ]; then - xdotool search -onlyvisible -classname 'sphtop' windowunmap - exit - fi -fi -if [ -f $scratchpad ]; then - if ! herbstclient bring $(cat $scratchpad); then - xdotool search -classname 'sphtop' windowmap && exit - fi -fi -if ! xdotool search --classname 'sphtop' windowmap; then - . ~/.profile && alacritty --title 'sphtop' --class 'sphtop' -e zsh -c htop & - xdotool search -sync -onlyvisible -classname 'sphtop' - herbstclient attr clients.focus.winid > $scratchpad -fi diff --git a/herbstluftwm/spirss b/herbstluftwm/spirss deleted file mode 100755 index c37c2b6..0000000 --- a/herbstluftwm/spirss +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -scratchpad=/tmp/herbstluftwm:spirss -if xdotool search --onlyvisible --classname 'spirss'; then - if [ "$(herbstclient list_monitors | grep '[FOCUS]' | cut -d\" -f2)" = "$(herbstclient attr clients.$(cat $scratchpad) | grep 's - - tag' | awk '{ print $6 }' | sed 's/\"//g')" ]; then - xdotool search -onlyvisible -classname 'spirss' windowunmap - exit - fi -fi -if [ -f $scratchpad ]; then - if ! herbstclient bring $(cat $scratchpad); then - xdotool search -classname 'spirss' windowmap && exit - fi -fi -if ! xdotool search -classname 'spirss' windowmap; then - . ~/.profile && alacritty --title 'spirss' --class 'spirss' -e irssi & - xdotool search -sync -onlyvisible -classname 'spirss' - herbstclient attr clients.focus.winid > $scratchpad -fi diff --git a/herbstluftwm/spmpv b/herbstluftwm/spmpv deleted file mode 100755 index 76038ab..0000000 --- a/herbstluftwm/spmpv +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -scratchpad=/tmp/herbstluftwm:spmpv -if [ -f "$scratchpad" ]; then - if xdotool search -class 'mpv'; then - if [ "$(herbstclient list_monitors | grep '[FOCUS]' | cut -d\" -f2)" = "$(herbstclient attr clients.$(cat $scratchpad) | grep 's - - tag' | awk '{ print $6 }' | sed 's/\"//g')" ]; then - xdotool search -class 'mpv' windowunmap - exit - fi - fi - if ! herbstclient bring $(cat $scratchpad); then - xdotool search -class 'mpv' windowmap && exit - fi - if ! xdotool search -class 'mpv' windowmap; then - xdotool search -sync -onlyvisible -class 'mpv' - herbstclient attr clients.focus.winid > $scratchpad - fi -else - if ! xdotool search -class 'mpv' windowmap; then - xdotool search -sync -onlyvisible -class 'mpv' - herbstclient attr clients.focus.winid > $scratchpad - fi -fi diff --git a/herbstluftwm/spmutt b/herbstluftwm/spmutt deleted file mode 100755 index 5c9c29b..0000000 --- a/herbstluftwm/spmutt +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -scratchpad=/tmp/herbstluftwm:spmutt -if xdotool search --onlyvisible --classname 'spmutt'; then - if [ $(herbstclient list_monitors | grep '[FOCUS]' | cut -d\" -f2) = $(herbstclient attr clients.$(cat $scratchpad) | grep 's - - tag' | awk '{ print $6 }' | sed 's/"//g') ]; then - xdotool search -onlyvisible -classname 'spmutt' windowunmap - exit - fi -fi -if [ -f $scratchpad ]; then - if ! herbstclient bring $(cat $scratchpad); then - xdotool search -classname 'spmutt' windowmap && exit - fi -fi -if ! xdotool search --classname 'spmutt' windowmap; then - . ~/.profile && alacritty --title 'spmutt' --class 'spmutt' -e zsh -c neomutt & - xdotool search -sync -onlyvisible -classname 'spmutt' - herbstclient attr clients.focus.winid > $scratchpad -fi diff --git a/herbstluftwm/spncmp b/herbstluftwm/spncmp deleted file mode 100755 index 88522fc..0000000 --- a/herbstluftwm/spncmp +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -scratchpad=/tmp/herbstluftwm:spncmp -if xdotool search --onlyvisible --classname 'spncmp'; then - if [ $(herbstclient list_monitors | grep '[FOCUS]' | cut -d\" -f2) = $(herbstclient attr clients.$(cat $scratchpad) | grep 's - - tag' | awk '{ print $6 }' | sed 's/"//g') ]; then - xdotool search -onlyvisible -classname 'spncmp' windowunmap - exit - fi -fi -if [ -f $scratchpad ]; then - if ! herbstclient bring $(cat $scratchpad); then - xdotool search -classname 'spncmp' windowmap && exit - fi -fi -if ! xdotool search --classname 'spncmp' windowmap; then - . ~/.profile && alacritty --title 'spncmp' --class 'spncmp' -e zsh -c ncmpcpp & - xdotool search -sync -onlyvisible -classname 'spncmp' - herbstclient attr clients.focus.winid > $scratchpad -fi diff --git a/herbstluftwm/sppmxr b/herbstluftwm/sppmxr deleted file mode 100755 index 402d6ea..0000000 --- a/herbstluftwm/sppmxr +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -scratchpad=/tmp/herbstluftwm:sppmxr -if xdotool search --onlyvisible --classname 'sppmxr'; then - if [ $(herbstclient list_monitors | grep '[FOCUS]' | cut -d\" -f2) = $(herbstclient attr clients.$(cat $scratchpad) | grep 's - - tag' | awk '{ print $6 }' | sed 's/"//g') ]; then - xdotool search -onlyvisible -classname 'sppmxr' windowunmap - exit - fi -fi -if [ -f $scratchpad ]; then - if ! herbstclient bring $(cat $scratchpad); then - xdotool search -classname 'sppmxr' windowmap && exit - fi -fi -if ! xdotool search --classname 'sppmxr' windowmap; then - . ~/.profile && alacritty --title 'sppmxr' --class 'sppmxr' -e zsh -c pulsemixer & - xdotool search -sync -onlyvisible -classname 'sppmxr' - herbstclient attr clients.focus.winid > $scratchpad -fi diff --git a/herbstluftwm/spprof b/herbstluftwm/spprof deleted file mode 100755 index 9d96bc6..0000000 --- a/herbstluftwm/spprof +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -scratchpad=/tmp/herbstluftwm:spprof -if xdotool search --onlyvisible --classname 'spprof'; then - if [ $(herbstclient list_monitors | grep '[FOCUS]' | cut -d\" -f2) = $(herbstclient attr clients.$(cat $scratchpad) | grep 's - - tag' | awk '{ print $6 }' | sed 's/"//g') ]; then - xdotool search -onlyvisible -classname 'spprof' windowunmap - exit - fi -fi -if [ -f $scratchpad ]; then - if ! herbstclient bring $(cat $scratchpad); then - xdotool search -classname 'spprof' windowmap && exit - fi -fi -if ! xdotool search --class 'spprof' windowmap; then - . ~/.profile && alacritty --title 'spprof' --class 'spprof' -e profanity & - xdotool search -sync -onlyvisible -classname 'spprof' - herbstclient attr clients.focus.winid > $scratchpad -fi diff --git a/herbstluftwm/spterm b/herbstluftwm/spterm deleted file mode 100755 index 4f65af5..0000000 --- a/herbstluftwm/spterm +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -scratchpad=/tmp/herbstluftwm:spterm -if xdotool search --onlyvisible --classname 'spterm'; then - if [ $(herbstclient list_monitors | grep '[FOCUS]' | cut -d\" -f2) = $(herbstclient attr clients.$(cat $scratchpad) | grep 's - - tag' | awk '{ print $6 }' | sed 's/"//g') ]; then - xdotool search -onlyvisible -classname 'spterm' windowunmap - exit - fi -fi -if [ -f $scratchpad ]; then - if ! herbstclient bring $(cat $scratchpad); then - xdotool search -classname 'spterm' windowmap && exit - fi -fi -if ! xdotool search --classname 'spterm' windowmap; then - setsid -f alacritty --title 'spterm' --class 'spterm' & - xdotool search -sync -onlyvisible -classname 'spterm' - herbstclient attr clients.focus.winid > $scratchpad -fi diff --git a/jellycli/jellycli.yaml b/jellycli/jellycli.yaml deleted file mode 100644 index e777549..0000000 --- a/jellycli/jellycli.yaml +++ /dev/null @@ -1,38 +0,0 @@ -gui: - debug_mode: false - double_click_ms: 220 - enable_filtering: false - enable_results_filtering: true - enable_sorting: false - limit_recently_played: true - mouse_enabled: true - pagesize: 100 - search_results_limit: 30 - search_types: - - Artist - - Album - - Song - - Playlist - volume_steps: 20 -jellyfin: - device_id: "" - music_view: "" - server_id: "" - token: "" - url: "" - userid: "" -player: - audio_buffering_ms: 150 - enable_local_cache: false - enable_remote_control: true - http_buffering_limit_mem: 20 - http_buffering_s: 5 - local_cache_dir: /home/zachir/.cache/jellycli - logfile: /tmp/jellycli.log - loglevel: info - server: jellyfin -subsonic: - salt: "" - token: "" - url: "" - username: "" diff --git a/kshrc b/kshrc deleted file mode 100644 index 82c58fb..0000000 --- a/kshrc +++ /dev/null @@ -1,40 +0,0 @@ -# zachir's ksh config - -[ -f /etc/ksh.kshrc ] && . /etc/ksh.kshrc - -[ -f $HOME/.config/sh/aliases ] && . $HOME/.config/sh/aliases -[ -f $HOME/.config/sh/functions ] && . $HOME/.config/sh/functions - -alias e='. $ENV' - -RED="\033[1;31m" -GRE="\033[1;32m" -YEL="\033[1;33m" -BLU="\033[1;34m" -PUR="\033[1;35m" -CYA="\033[1;36m" -CLR="\033[1;0m" - -[ -f "$XDG_CONFIG_HOME"/sh/aliases ] && . "$XDG_CONFIG_HOME"/sh/aliases -[ -f "$XDG_CONFIG_HOME"/sh/functions ] && . "$XDG_CONFIG_HOME"/sh/functions - -case "$-" in -*i*) # we are interactive - # we may have su'ed so reset these - HOSTNAME=${HOSTNAME:-$(uname -n)} - HOST=${HOSTNAME%%.*} - - #PROMPT="$USER:!$PS1S" - #PROMPT="<$USER@$HOST:!>$PS1S" - case "$USER" in - "root") COLOR='\e[1;31m' ;; - "git") COLOR='\e[1;32m' ;; - "zachir") COLOR='\e[1;36m' ;; - esac - PROMPT="$COLOR"'[\u@\h]:\e[0m\w'"$COLOR"'\$ \e[0m' - PS1=$PROMPT - - set -o vi - -;; -esac diff --git a/lxqt/lxqt.conf b/lxqt/lxqt.conf deleted file mode 100644 index 79b42c6..0000000 --- a/lxqt/lxqt.conf +++ /dev/null @@ -1,2 +0,0 @@ -[General] -__userfile__=true diff --git a/mksh/mkshalias b/mksh/mkshalias deleted file mode 100644 index c43e240..0000000 --- a/mksh/mkshalias +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/mksh -## CD Ups -alias ...='cd ../..' -alias ....='cd ../../..' -alias .....='cd ../../../..' -alias ......='cd ../../../../..' -alias .......='cd ../../../../../..' -alias ........='cd ../../../../../../..' - -## Base Utils -alias ls="ls -h --color='auto' --group-directories-first" -alias ll='ls -l' -alias la='ls -A' -alias lla='ls -la' -alias md='mkdir -p' -alias ch='cd $HOME' -alias exa='exa --group-directories-first -a' -alias exla='exa -l' - -## Change utils -alias rm='rm -i' -alias cp='cp -i' - -## git stuff -alias gs='git status' -alias commit='git commit -S -m' -alias ga='git add -A' - -## Internet -alias weather='curl http://wttr.in/Pearland' - -## Single Chars -alias r='cd ~ && clear && exec zsh' -alias e='source $ENV' -alias i='sudo ~/scripts/install.sh' -alias q='exit' -alias c='clear' -alias m='make' - -## SSH -alias sshz='ssh zachir@therealir.xyz' - -## Programming -# Rust -alias crr='cargo run --release' -alias cbr='cargo build --release' - -## Arch Linux aliases --sudoloop -#alias yay='yay --sudo doas' -alias yu='yay -Syu --noconfirm' diff --git a/mksh/mkshfunc b/mksh/mkshfunc deleted file mode 100644 index adb6a91..0000000 --- a/mksh/mkshfunc +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/mksh -catclip () { - cat "$@" | xclip -selection clipboard -} - -catpass () { - PASSWD=$(cat ~/pass.txt); echo "$PASSWD\n$PASSWD" | pass insert "$1"; unset PASSWD -} - -sigdwmblocks () { - pkill -RTMIN+$(grep "$1" ~/git/dwmblocks/config.h | awk '{print $4}' | cut -d'}' -f1) dwmblocks -} - -mkcd () { - mkdir $@ && cd $1 -} - -sc () { - if [ "$1" = "" ]; then - cd $HOME - else - case "$1" in - "-l") echo " -a - ~/.config/awesome -cpr- ~/.config/primrose -db - ~/git/dwmbar -dwm- ~/suckless/dwm -g - ~/git -pr - ~/git/primrose -s - ~/.local/scripts -slo- ~/suckless/slock -st - ~/suckless/st -tfd- ~/Documents/fllixel/TheFiniteDemo -tst- !tabbed -c st -w -v - ~/.vst -vsv- ~/.local/volsv -z - ~/.config/zsh -zx - ~/Documents/zachir.xyz -";; - "a") cd $XDG_CONFIG_HOME/awesome/ ;; - "cpr") cd $XDG_CONFIG_HOME/primrose/ ;; - "dwm") cd $HOME/suckless/dwm/ ;; - "db") cd $HOME/git/dwmbar/ ;; - "g") cd $HOME/git/ ;; - "pr") cd $HOME/git/primrose/ ;; - "slo") cd $HOME/suckless/slock/ ;; - "s") cd $HOME/.local/scripts/ ;; - "st") cd $HOME/suckless/st/ ;; - "tfd") cd $HOME/Documents/flixel/TheFiniteDemo/ ;; - "tst") tabbed -c st -w ;; - "v") cd $HOME/.vst/ ;; - "vsv") cd $HOME/.local/volsv ;; - "z") cd $ZDOTDIR/ ;; - "zx") cd $HOME/Documents/zachir.xyz/ ;; - *) cd $1 ;; - esac - fi -} diff --git a/mksh/mkshrc b/mksh/mkshrc deleted file mode 100644 index 8d17b8e..0000000 --- a/mksh/mkshrc +++ /dev/null @@ -1,687 +0,0 @@ -# $Id$ -# $MirOS: src/bin/mksh/dot.mkshrc,v 1.128 2020/04/13 18:39:03 tg Exp $ -#- -# Copyright (c) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010, -# 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2019, -# 2020 -# mirabilos -# -# Provided that these terms and disclaimer and all copyright notices -# are retained or reproduced in an accompanying document, permission -# is granted to deal in this work without restriction, including un- -# limited rights to use, publicly perform, distribute, sell, modify, -# merge, give away, or sublicence. -# -# This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to -# the utmost extent permitted by applicable law, neither express nor -# implied; without malicious intent or gross negligence. In no event -# may a licensor, author or contributor be held liable for indirect, -# direct, other damage, loss, or other issues arising in any way out -# of dealing in the work, even if advised of the possibility of such -# damage or existence of a defect, except proven that it results out -# of said person's immediate fault when using the work as intended. -#- -# ${ENV:-~/.mkshrc}: mksh initialisation file for interactive shells - -# catch non-mksh, non-lksh, trying to run this file -case ${KSH_VERSION:-} in -*LEGACY\ KSH*|*MIRBSD\ KSH*) ;; -*) . $CONFIG/kshrc && exit ;; -esac - -[ -f "$HOME/.config/sh/aliases" ] && . "$HOME/.config/sh/aliases" -[ -f "$HOME/.config/sh/functions" ] && . "$HOME/.config/sh/functions" - -# give MidnightBSD's laffer1 a bit of csh feeling -function setenv { - if (( $# )); then - \\builtin eval '\\builtin export "$1"="${2:-}"' - else - \\builtin typeset -x - fi -} - -# pager (not control character safe) -smores() ( - \\builtin set +m - \\builtin cat "$@" |& - \\builtin trap "rv=\$?; \\\\builtin kill $! >/dev/null 2>&1; \\\\builtin exit \$rv" EXIT - while IFS= \\builtin read -pr line; do - llen=${%line} - (( llen == -1 )) && llen=${#line} - (( llen = llen ? (llen + COLUMNS - 1) / COLUMNS : 1 )) - if (( (curlin += llen) >= LINES )); then - \\builtin print -nr -- $'\e[7m--more--\e[0m' - \\builtin read -u1 || \\builtin exit $? - [[ $REPLY = [Qq]* ]] && \\builtin exit 0 - curlin=$llen - fi - \\builtin print -r -- "$line" - done -) - -# customise your favourite editor here; the first one found is used -for EDITOR in "${EDITOR:-}" jupp jstar mcedit ed vi; do - EDITOR=$(\\builtin whence -p "$EDITOR") || EDITOR= - [[ -n $EDITOR && -x $EDITOR ]] && break - EDITOR=nvim -done - -\\builtin alias ls=ls l='ls -F' la='l -a' ll='l -l' lo='l -alo' -\: "${EDITOR:=/bin/ed}${TERM:=vt100}${USER:=$(\\builtin ulimit -c 0; id -un \ - 2>/dev/null)}${HOSTNAME:=$(\\builtin ulimit -c 0; hostname 2>/dev/null)}" -[[ $HOSTNAME = ?(?(ip6-)localhost?(6)) ]] && HOSTNAME=nil; \\builtin unalias ls -\\builtin export EDITOR HOSTNAME TERM USER="${USER:-?}" - -# minimal support for lksh users -if [[ $KSH_VERSION = *LEGACY\ KSH* ]]; then - PS1='$USER@${HOSTNAME%%.*}:$PWD>' - \\builtin return 0 -else - PS1='$(print -n "\E[1;32m[`logname`@`hostname`]:\E[1;37m";if [ "${PWD#$HOME}" = "$PWD" ]; then print -n "$PWD"; else print -n "~${PWD#$HOME}"; fi; print "\E[1;32m$\E[0m ")' -fi - -# mksh-specific from here -\: "${MKSH:=$(\\builtin whence -p mksh)}${MKSH:=/bin/mksh}" -\\builtin export MKSH - -# prompts -#PS4='[$EPOCHREALTIME] '; PS1='#'; (( USER_ID )) && PS1='$'; PS1=$'\001\r''${| -# \\builtin typeset e=$? -# -# (( e )) && REPLY+="$e|" -# REPLY+=${USER}@${HOSTNAME%%.*}: -# -# \\builtin typeset d=${PWD:-?}/ p=~; [[ $p = ?(*/) ]] || d=${d/#$p\//\~/} -# d=${d%/}; \\builtin typeset m=${%d} n p=...; (( m > 0 )) || m=${#d} -# (( m > (n = (COLUMNS/3 < 7 ? 7 : COLUMNS/3)) )) && d=${d:(-n)} || p= -# REPLY+=$p$d -# -# \\builtin return $e -#} '"$PS1 " - -# utilities -\\builtin alias doch='sudo mksh -c "$(\\builtin fc -ln -1)"' -\\builtin command -v rot13 >/dev/null || \\builtin alias rot13='tr \ - abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ \ - nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM' -if \\builtin command -v hd >/dev/null; then - \: -elif \\builtin command -v hexdump >/dev/null; then - function hd { - hexdump -e '"%08.8_ax " 8/1 "%02X " " - " 8/1 "%02X "' \ - -e '" |" "%_p"' -e '"|\n"' "$@" - } -else - function hd { - \\builtin cat "$@" | hd_mksh - } -fi - -# NUL-safe and EBCDIC-safe hexdump (from stdin) -function hd_mksh { - \\builtin typeset -Uui16 -Z11 pos=0 - \\builtin typeset -Uui16 -Z5 hv=2147483647 - \\builtin typeset dasc dn line i - \\builtin set +U - - while \\builtin read -arn 512 line; do - \\builtin typeset -i1 'line[*]' - i=0 - while (( i < ${#line[*]} )); do - dn= - (( (hv = line[i++]) != 0 )) && dn=${line[i-1]#1#} - if (( (pos & 15) == 0 )); then - (( pos )) && \ - \\builtin print -r -- "$dasc|" - \\builtin print -nr "${pos#16#} " - dasc=' |' - fi - \\builtin print -nr "${hv#16#} " - if [[ $dn = [[:print:]] ]]; then - dasc+=$dn - else - dasc+=. - fi - (( (pos++ & 15) == 7 )) && \ - \\builtin print -nr -- '- ' - done - done - while (( pos & 15 )); do - \\builtin print -nr ' ' - (( (pos++ & 15) == 7 )) && \ - \\builtin print -nr -- '- ' - done - (( hv == 2147483647 )) || \\builtin print -r -- "$dasc|" -} - -function which { - \\builtin typeset p x c - \\builtin typeset -i a=0 rv=2 e - \\builtin set +e - \\builtin set -o noglob - - while \\builtin getopts "a" x; do - case $x { - (a) a=1 ;; - (+a) a=0 ;; - (*) \\builtin print -ru2 'Usage: which [-a] name [...]' - \\builtin return 255 ;; - } - done - \\builtin shift $((OPTIND - 1)) - - # vvvvvvvvvvvvvvvvvvvv should be def_path - p=${PATH-/usr/bin$PATHSEP/bin} - # ^ no colon! - - # trailing PATHSEP vs field splitting - [[ $p = *"$PATHSEP" ]] && p+=. - - IFS=$PATHSEP - \\builtin set -A p -- ${p:-.} - IFS=$' \t\n' - - for x in "$@"; do - if (( !a )) || [[ $x = */* ]]; then - \\builtin whence -p -- "$x" - e=$? - else - e=1 - for c in "${p[@]}"; do - PATH=${c:-.} \\builtin whence -p -- "$x" && e=0 - done - fi - (( rv = (e == 0) ? (rv & ~2) : (rv == 2 ? 2 : 1) )) - done - \\builtin return $rv -} - -# Berkeley C shell compatible dirs, popd, and pushd functions -# Z shell compatible chpwd() hook, used to update DIRSTACK[0] -DIRSTACKBASE=$(\\builtin realpath ~/. 2>/dev/null || \ - \\builtin print -nr -- "${HOME:-/}") -\\builtin set -A DIRSTACK -function chpwd { - DIRSTACK[0]=$(\\builtin realpath . 2>/dev/null || \ - \\builtin print -nr -- "$PWD") - [[ $DIRSTACKBASE = ?(*/) ]] || \ - DIRSTACK[0]=${DIRSTACK[0]/#$DIRSTACKBASE/\~} - \: -} -\chpwd . -cd() { - \\builtin cd "$@" || \\builtin return $? - \chpwd "$@" -} -function cd_csh { - \\builtin typeset d t=${1/#\~/$DIRSTACKBASE} - - if ! d=$(\\builtin cd "$t" 2>&1); then - \\builtin print -ru2 "${1}: ${d##*cd: $t: }." - \\builtin return 1 - fi - \cd "$t" -} -function dirs { - \\builtin typeset d dwidth - \\builtin typeset -i fl=0 fv=0 fn=0 cpos=0 - - while \\builtin getopts ":lvn" d; do - case $d { - (l) fl=1 ;; - (v) fv=1 ;; - (n) fn=1 ;; - (*) \\builtin print -ru2 'Usage: dirs [-lvn].' - \\builtin return 1 ;; - } - done - \\builtin shift $((OPTIND - 1)) - if (( $# > 0 )); then - \\builtin print -ru2 'Usage: dirs [-lvn].' - \\builtin return 1 - fi - if (( fv )); then - fv=0 - while (( fv < ${#DIRSTACK[*]} )); do - d=${DIRSTACK[fv]} - (( fl )) && d=${d/#\~/$DIRSTACKBASE} - \\builtin print -r -- "$fv $d" - (( ++fv )) - done - else - fv=0 - while (( fv < ${#DIRSTACK[*]} )); do - d=${DIRSTACK[fv]} - (( fl )) && d=${d/#\~/$DIRSTACKBASE} - (( dwidth = (${%d} > 0 ? ${%d} : ${#d}) )) - if (( fn && (cpos += dwidth + 1) >= 79 && \ - dwidth < 80 )); then - \\builtin print - (( cpos = dwidth + 1 )) - fi - \\builtin print -nr -- "$d " - (( ++fv )) - done - \\builtin print - fi - \\builtin return 0 -} -function popd { - \\builtin typeset d fa - \\builtin typeset -i n=1 - - while \\builtin getopts ":0123456789lvn" d; do - case $d { - (l|v|n) fa+=" -$d" ;; - (+*) n=2 - \\builtin break ;; - (*) \\builtin print -ru2 'Usage: popd [-lvn] [+].' - \\builtin return 1 ;; - } - done - \\builtin shift $((OPTIND - n)) - n=0 - if (( $# > 1 )); then - \\builtin print -ru2 popd: Too many arguments. - \\builtin return 1 - elif [[ $1 = ++([0-9]) && $1 != +0 ]]; then - if (( (n = ${1#+}) >= ${#DIRSTACK[*]} )); then - \\builtin print -ru2 popd: Directory stack not that deep. - \\builtin return 1 - fi - elif [[ -n $1 ]]; then - \\builtin print -ru2 popd: Bad directory. - \\builtin return 1 - fi - if (( ${#DIRSTACK[*]} < 2 )); then - \\builtin print -ru2 popd: Directory stack empty. - \\builtin return 1 - fi - \\builtin unset DIRSTACK[n] - \\builtin set -A DIRSTACK -- "${DIRSTACK[@]}" - \cd_csh "${DIRSTACK[0]}" || \\builtin return 1 - \dirs $fa -} -function pushd { - \\builtin typeset d fa - \\builtin typeset -i n=1 - - while \\builtin getopts ":0123456789lvn" d; do - case $d { - (l|v|n) fa+=" -$d" ;; - (+*) n=2 - \\builtin break ;; - (*) \\builtin print -ru2 'Usage: pushd [-lvn] [|+].' - \\builtin return 1 ;; - } - done - \\builtin shift $((OPTIND - n)) - if (( $# == 0 )); then - if (( ${#DIRSTACK[*]} < 2 )); then - \\builtin print -ru2 pushd: No other directory. - \\builtin return 1 - fi - d=${DIRSTACK[1]} - DIRSTACK[1]=${DIRSTACK[0]} - \cd_csh "$d" || \\builtin return 1 - elif (( $# > 1 )); then - \\builtin print -ru2 pushd: Too many arguments. - \\builtin return 1 - elif [[ $1 = ++([0-9]) && $1 != +0 ]]; then - if (( (n = ${1#+}) >= ${#DIRSTACK[*]} )); then - \\builtin print -ru2 pushd: Directory stack not that deep. - \\builtin return 1 - fi - while (( n-- )); do - d=${DIRSTACK[0]} - \\builtin unset DIRSTACK[0] - \\builtin set -A DIRSTACK -- "${DIRSTACK[@]}" "$d" - done - \cd_csh "${DIRSTACK[0]}" || \\builtin return 1 - else - \\builtin set -A DIRSTACK -- placeholder "${DIRSTACK[@]}" - \cd_csh "$1" || \\builtin return 1 - fi - \dirs $fa -} - -# base64 encoder and decoder, RFC compliant, NUL safe, not EBCDIC safe -function Lb64decode { - \\builtin set +U - \\builtin typeset c s="$*" t - [[ -n $s ]] || { s=$(\\builtin cat; \\builtin print x); s=${s%x}; } - \\builtin typeset -i i=0 j=0 n=${#s} p=0 v x - \\builtin typeset -i16 o - - while (( i < n )); do - c=${s:(i++):1} - case $c { - (=) \\builtin break ;; - ([A-Z]) (( v = 1#$c - 65 )) ;; - ([a-z]) (( v = 1#$c - 71 )) ;; - ([0-9]) (( v = 1#$c + 4 )) ;; - (+) v=62 ;; - (/) v=63 ;; - (*) \\builtin continue ;; - } - (( x = (x << 6) | v )) - case $((p++)) { - (0) \\builtin continue ;; - (1) (( o = (x >> 4) & 255 )) ;; - (2) (( o = (x >> 2) & 255 )) ;; - (3) (( o = x & 255 )) - p=0 - ;; - } - t+=\\x${o#16#} - (( ++j & 4095 )) && \\builtin continue - \\builtin print -n $t - t= - done - \\builtin print -n $t -} -function Lb64encode { - \\builtin set +U - \\builtin typeset c s t table - \\builtin set -A table -- A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \ - a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 + / - if (( $# )); then - \\builtin read -raN-1 s <<<"$*" - \\builtin unset s[${#s[*]}-1] - else - \\builtin read -raN-1 s - fi - \\builtin typeset -i i=0 n=${#s[*]} v - - while (( i < n )); do - (( v = s[i++] << 16 )) - (( v |= s[i++] << 8 )) - (( v |= s[i++] )) - t+=${table[v >> 18]}${table[v >> 12 & 63]} - c=${table[v >> 6 & 63]} - if (( i <= n )); then - t+=$c${table[v & 63]} - elif (( i == n + 1 )); then - t+=$c= - else - t+=== - fi - if (( ${#t} == 76 || i >= n )); then - \\builtin print -r $t - t= - fi - done -} - -# Better Avalanche for the Jenkins Hash -\\builtin typeset -Z11 -Uui16 Lbafh_v -function Lbafh_init { - Lbafh_v=0 -} -function Lbafh_add { - \\builtin set +U - \\builtin typeset s - if (( $# )); then - \\builtin read -raN-1 s <<<"$*" - \\builtin unset s[${#s[*]}-1] - else - \\builtin read -raN-1 s - fi - \\builtin typeset -i i=0 n=${#s[*]} - - while (( i < n )); do - ((# Lbafh_v = (Lbafh_v + s[i++] + 1) * 1025 )) - ((# Lbafh_v ^= Lbafh_v >> 6 )) - done -} -function Lbafh_finish { - \\builtin typeset -Ui t - - ((# t = (((Lbafh_v >> 7) & 0x01010101) * 0x1B) ^ \ - ((Lbafh_v << 1) & 0xFEFEFEFE) )) - ((# Lbafh_v = t ^ (t ^> 8) ^ (Lbafh_v ^> 8) ^ \ - (Lbafh_v ^> 16) ^ (Lbafh_v ^> 24) )) - \: -} - -# strip comments (and leading/trailing whitespace if IFS is set) from -# any file(s) given as argument, or stdin if none, and spew to stdout -function Lstripcom { - \\builtin set -o noglob - \\builtin cat "$@" | while \\builtin read _line; do - _line=${_line%%#*} - [[ -n $_line ]] && \\builtin print -r -- $_line - done -} - -# toggle built-in aliases and utilities, and aliases and functions from mkshrc -function enable { - \\builtin typeset doprnt=0 mode=1 x y z rv=0 - \\builtin typeset b_alias i_alias i_func nalias=0 nfunc=0 i_all - \\builtin set -A b_alias - \\builtin set -A i_alias - \\builtin set -A i_func - - # accumulate mksh built-in aliases, in ASCIIbetical order - i_alias[nalias]=autoload; b_alias[nalias++]='\\builtin typeset -fu' - i_alias[nalias]=functions; b_alias[nalias++]='\\builtin typeset -f' - i_alias[nalias]=hash; b_alias[nalias++]='\\builtin alias -t' - i_alias[nalias]=history; b_alias[nalias++]='\\builtin fc -l' - i_alias[nalias]=integer; b_alias[nalias++]='\\builtin typeset -i' - i_alias[nalias]=local; b_alias[nalias++]='\\builtin typeset' - i_alias[nalias]=login; b_alias[nalias++]='\\builtin exec login' - i_alias[nalias]=nameref; b_alias[nalias++]='\\builtin typeset -n' - i_alias[nalias]=nohup; b_alias[nalias++]='nohup ' - i_alias[nalias]=r; b_alias[nalias++]='\\builtin fc -e -' - i_alias[nalias]=type; b_alias[nalias++]='\\builtin whence -v' - - # accumulate mksh built-in utilities, in definition order, even ifndef - i_func[nfunc++]=. - i_func[nfunc++]=: - i_func[nfunc++]='[' - i_func[nfunc++]=alias - i_func[nfunc++]=break - # \\builtin cannot, by design, be overridden - i_func[nfunc++]=builtin - i_func[nfunc++]=cat - i_func[nfunc++]=cd - i_func[nfunc++]=chdir - i_func[nfunc++]=command - i_func[nfunc++]=continue - i_func[nfunc++]=echo - i_func[nfunc++]=eval - i_func[nfunc++]=exec - i_func[nfunc++]=exit - i_func[nfunc++]=export - i_func[nfunc++]=false - i_func[nfunc++]=fc - i_func[nfunc++]=getopts - i_func[nfunc++]=jobs - i_func[nfunc++]=kill - i_func[nfunc++]=let - i_func[nfunc++]=print - i_func[nfunc++]=pwd - i_func[nfunc++]=read - i_func[nfunc++]=readonly - i_func[nfunc++]=realpath - i_func[nfunc++]=rename - i_func[nfunc++]=return - i_func[nfunc++]=set - i_func[nfunc++]=shift - i_func[nfunc++]=source - i_func[nfunc++]=suspend - i_func[nfunc++]=test - i_func[nfunc++]=times - i_func[nfunc++]=trap - i_func[nfunc++]=true - i_func[nfunc++]=typeset - i_func[nfunc++]=ulimit - i_func[nfunc++]=umask - i_func[nfunc++]=unalias - i_func[nfunc++]=unset - i_func[nfunc++]=wait - i_func[nfunc++]=whence - i_func[nfunc++]=bg - i_func[nfunc++]=fg - i_func[nfunc++]=bind - i_func[nfunc++]=mknod - i_func[nfunc++]=printf - i_func[nfunc++]=sleep - i_func[nfunc++]=domainname - i_func[nfunc++]=extproc - - # accumulate aliases from dot.mkshrc, in definition order - i_alias[nalias]=l; b_alias[nalias++]='ls -F' - i_alias[nalias]=la; b_alias[nalias++]='l -a' - i_alias[nalias]=ll; b_alias[nalias++]='l -l' - i_alias[nalias]=lo; b_alias[nalias++]='l -alo' - i_alias[nalias]=doch; b_alias[nalias++]='sudo mksh -c "$(\\builtin fc -ln -1)"' - i_alias[nalias]=rot13; b_alias[nalias++]='tr abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM' - i_alias[nalias]=cls; b_alias[nalias++]='\\builtin print -n \\ec' - - # accumulate functions from dot.mkshrc, in definition order - i_func[nfunc++]=setenv - i_func[nfunc++]=smores - i_func[nfunc++]=hd - i_func[nfunc++]=hd_mksh - i_func[nfunc++]=which - i_func[nfunc++]=chpwd - i_func[nfunc++]=cd - i_func[nfunc++]=cd_csh - i_func[nfunc++]=dirs - i_func[nfunc++]=popd - i_func[nfunc++]=pushd - i_func[nfunc++]=Lb64decode - i_func[nfunc++]=Lb64encode - i_func[nfunc++]=Lbafh_init - i_func[nfunc++]=Lbafh_add - i_func[nfunc++]=Lbafh_finish - i_func[nfunc++]=Lstripcom - i_func[nfunc++]=enable - - # collect all identifiers, sorted ASCIIbetically - \\builtin set -sA i_all -- "${i_alias[@]}" "${i_func[@]}" - - # handle options, we don't do dynamic loading - while \\builtin getopts "adf:nps" x; do - case $x { - (a) - mode=-1 - ;; - (d) - # deliberately causing an error, like bash-static - ;| - (f) - \\builtin print -ru2 enable: dynamic loading not available - \\builtin return 2 - ;; - (n) - mode=0 - ;; - (p) - doprnt=1 - ;; - (s) - \\builtin set -sA i_all -- . : break continue eval \ - exec exit export readonly return set shift times \ - trap unset - ;; - (*) - \\builtin print -ru2 enable: usage: \ - "enable [-adnps] [-f filename] [name ...]" - return 2 - ;; - } - done - \\builtin shift $((OPTIND - 1)) - - # display builtins enabled/disabled/all/special? - if (( doprnt || ($# == 0) )); then - for x in "${i_all[@]}"; do - y=$(\\builtin alias "$x") || y= - [[ $y = "$x='\\\\builtin whence -p $x >/dev/null || (\\\\builtin print -r mksh: $x: not found; \\\\builtin exit 127) && \$(\\\\builtin whence -p $x)'" ]]; z=$? - case $mode:$z { - (-1:0|0:0) - \\builtin print -r -- "enable -n $x" - ;; - (-1:1|1:1) - \\builtin print -r -- "enable $x" - ;; - } - done - \\builtin return 0 - fi - - for x in "$@"; do - z=0 - for y in "${i_alias[@]}" "${i_func[@]}"; do - [[ $x = "$y" ]] || \\builtin continue - z=1 - \\builtin break - done - if (( !z )); then - \\builtin print -ru2 enable: "$x": not a shell builtin - rv=1 - \\builtin continue - fi - if (( !mode )); then - # disable this - \\builtin alias "$x=\\\\builtin whence -p $x >/dev/null || (\\\\builtin print -r mksh: $x: not found; \\\\builtin exit 127) && \$(\\\\builtin whence -p $x)" - else - # find out if this is an alias or not, first - z=0 - y=-1 - while (( ++y < nalias )); do - [[ $x = "${i_alias[y]}" ]] || \\builtin continue - z=1 - \\builtin break - done - if (( z )); then - # re-enable the original alias body - \\builtin alias "$x=${b_alias[y]}" - else - # re-enable the original utility/function - \\builtin unalias "$x" - fi - fi - done - \\builtin return $rv -} - -\: place customisations below this line - -# some defaults / samples which you are supposed to adjust to your -# liking; by default we add ~/.etc/bin and ~/bin (whichever exist) -# to $PATH, set $SHELL to mksh, set some defaults for man and less -# and show a few more possible things for users to begin moving in - -for p in ~/.etc/bin ~/bin; do - [[ -d $p/. ]] || \\builtin continue - [[ $PATHSEP$PATH$PATHSEP = *"$PATHSEP$p$PATHSEP"* ]] || \ - PATH=$p$PATHSEP$PATH -done - -\\builtin export SHELL=$MKSH MANWIDTH=80 LESSHISTFILE=- -\\builtin alias cls='\\builtin print -n \\ec' - -#\\builtin unset LC_ADDRESS LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ -# LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ -# LC_TELEPHONE LC_TIME LANGUAGE LANG LC_ALL -#p=en_GB.UTF-8 -#\\builtin export LANG=C LC_CTYPE=$p LC_MEASUREMENT=$p LC_MESSAGES=$p LC_PAPER=$p -#\\builtin export LANG=C.UTF-8 LC_CTYPE=C.UTF-8 -#\\builtin export LC_ALL=C.UTF-8 -#\\builtin set -U -#[[ ${LC_ALL:-${LC_CTYPE:-${LANG:-}}} = *[Uu][Tt][Ff]?(-)8* ]] || \\builtin set +U - -\\builtin unset p - -set -o vi - -[ -r $MKSHDIR/mkshfunc ] && source $MKSHDIR/mkshfunc -[ -r $MKSHDIR/mkshalias ] && source $MKSHDIR/mkshalias - -HISTFILE="$MKSHDIR"/history - -\: place customisations above this line diff --git a/modprobed-db.conf b/modprobed-db.conf deleted file mode 100644 index 42b32af..0000000 --- a/modprobed-db.conf +++ /dev/null @@ -1,21 +0,0 @@ -# For documentation, see the manpage for modprobed-db - -# Path where database will reside. -# Do NOT use a variable in the following path like $HOME -# You MUST use a fully qualified path or else invoking the script via sudo -# will trick it into thinking that the db is in /root/foo/bar -DBPATH="/home/zachir/.config" - -# Define the background of your terminal theme here. -# A setting of dark will produce colors that nicely contrast a dark background. -# A setting of light will produce colors that nicely contrast a light background. -COLORS=dark -#COLORS=light - - -# Add modules in the ignore array that you do NOT want counted, for example out-of-tree -# modules and those provided by another package. -# -# For Arch Linux, some examples are given below but this is not an fully inclusive list. - -IGNORE=(nvidia nvidia_drm nvidia_modeset nvidia_uvm vboxdrv vboxnetadp vboxnetflt vboxpci acpi_call tp_smapi-dkms) diff --git a/newsboat/config b/newsboat/config deleted file mode 100644 index b9b8b26..0000000 --- a/newsboat/config +++ /dev/null @@ -1,55 +0,0 @@ -#show-read-feeds no -auto-reload yes - -external-url-viewer "urlscan -dc -r 'browser {}'" - -bind-key j down -bind-key k up -bind-key j next articlelist -bind-key k prev articlelist -bind-key J next-feed articlelist -bind-key K prev-feed articlelist -bind-key G end -bind-key g home -bind-key d pagedown -bind-key u pageup -bind-key l open -bind-key h quit -bind-key a toggle-article-read -bind-key n next-unread -bind-key N prev-unread -bind-key D pb-download -bind-key U show-urls -bind-key x pb-delete - -color listnormal cyan default -color listfocus black yellow standout bold -color listnormal_unread blue default -color listfocus_unread yellow default bold -color info red black bold -color article white default bold - -browser browser -macro , open-in-browser -macro t set browser "qndl" ; open-in-browser ; set browser browser -macro a set browser "tsp youtube-dl --add-metadata -xic -f bestaudio/best" ; open-in-browser ; set browser browser -macro v set browser "setsid -f mpv" ; open-in-browser ; set browser browser -macro w set browser "lynx" ; open-in-browser ; set browser browser -macro d set browser "dmenuhandler" ; open-in-browser ; set browser browser -macro c set browser "echo %u | xclip -r -sel c" ; open-in-browser ; set browser browser -macro C set browser "youtube-viewer --comments=%u" ; open-in-browser ; set browser browser -macro p set browser "peertubetorrent %u 480" ; open-in-browser ; set browser browser -macro P set browser "peertubetorrent %u 1080" ; open-in-browser ; set browser browser - -highlight all "---.*---" yellow -highlight feedlist ".*(0/0))" black -highlight article "(^Feed:.*|^Title:.*|^Author:.*)" cyan default bold -highlight article "(^Link:.*|^Date:.*)" default default -highlight article "https?://[^ ]+" green default -highlight article "^(Title):.*$" blue default -highlight article "\\[[0-9][0-9]*\\]" magenta default bold -highlight article "\\[image\\ [0-9]+\\]" green default bold -highlight article "\\[embedded flash: [0-9][0-9]*\\]" green default bold -highlight article ":.*\\(link\\)$" cyan default -highlight article ":.*\\(image\\)$" blue default -highlight article ":.*\\(embedded flash\\)$" magenta default diff --git a/polybar/config b/polybar/config deleted file mode 100644 index f7b924d..0000000 --- a/polybar/config +++ /dev/null @@ -1,615 +0,0 @@ -;========================================================== -; -; -; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ -; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ -; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ -; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ -; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ -; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ -; -; -; To learn more about how to configure Polybar -; go to https://github.com/jaagr/polybar -; -; The README contains alot of information -; -;========================================================== - -[colors] -;background = ${xrdb:color0:#222} -background = #000 -background-alt = #222 -;foreground = ${xrdb:color7:#222} -foreground = #fff -foreground-alt = #ddd -primary = #ffb52a -secondary = #9f9 -alert = #bd2c40 - -[bar/xmonad] -monitor = ${env:MONITOR:} -width = 100% -height = 24 -;offset-x = 1% -;offset-y = 1% -radius = 0.0 -fixed-center = false - -background = ${colors.background} -foreground = ${colors.foreground} - -line-size = 3 -line-color = #f00 - -border-size = 0 -border-color = #00000000 - -padding-left = 0 -padding-right = 0 - -module-margin-left = 1 -module-margin-right = 2 -font-0 = mononoki Nerd Font:pixelsize=10;1 -font-1 = JoyPixels:pixelsize=10;1 - -modules-left = ewmh -;i3 -modules-center = -modules-right = mpd packages pulse battery memory cpu wlan eth filesystem date powermenu -;xbacklight temperature -tray-position = right -tray-padding = 2 -;tray-background = #0063ff - -;wm-restack = bspwm -;wm-restack = i3 - -;override-redirect = true - -;scroll-up = bspwm-desknext -;scroll-down = bspwm-deskprev - -;scroll-up = i3wm-wsnext -;scroll-down = i3wm-wsprev - -cursor-click = pointer -cursor-scroll = ns-resize - -[bar/herbstluft] -monitor = ${env:MONITOR:} -width = 100% -height = 20 -;offset-x = 1% -;offset-y = 1% -radius = 0.0 -fixed-center = false -enable-ipc = true - -background = ${colors.background} -foreground = ${colors.foreground} - -line-size = 3 -line-color = #f00 - -border-size = 0 -border-color = #00000000 - -padding-left = 0 -padding-right = 0 - -module-margin-left = 1 -module-margin-right = 2 - -font-0 = mononoki Nerd Font:pixelsize=10;1 -font-1 = JoyPixels:pixelsize=10;1 - -modules-left = ewmh title -modules-center = -modules-right = packages mail filesystem pulseaudio xkeyboard mem cpu wlan eth battery date powermenu -;xbacklight temperature -tray-position = right -tray-padding = 2 -;tray-background = #0063ff - -;wm-restack = bspwm -;wm-restack = i3 - -;override-redirect = true - -;scroll-up = bspwm-desknext -;scroll-down = bspwm-deskprev - -;scroll-up = i3wm-wsnext -;scroll-down = i3wm-wsprev - -cursor-click = pointer -cursor-scroll = ns-resize - -[bar/bspwm] -monitor = ${env:MONITOR:} -width = 100% -height = 20 -;offset-x = 1% -;offset-y = 1% -radius = 0.0 -fixed-center = false - -background = ${colors.background} -foreground = ${colors.foreground} - -line-size = 3 -line-color = #f00 - -border-size = 0 -border-color = #00000000 - -padding-left = 0 -padding-right = 0 - -module-margin-left = 1 -module-margin-right = 2 - -font-0 = mononoki Nerd Font:pixelsize=10;1 -font-1 = JoyPixels:pixelsize=10;1 - -modules-left = bspwm -;i3 -modules-center = -modules-right = mail mpd filesystem pulseaudio alsa xkeyboard memory cpu wlan eth battery date powermenu -;xbacklight temperature -tray-position = right -tray-padding = 2 -;tray-background = #0063ff - -wm-restack = bspwm -;wm-restack = i3 - -;override-redirect = true - -scroll-up = bspwm-desknext -scroll-down = bspwm-deskprev - -;scroll-up = i3wm-wsnext -;scroll-down = i3wm-wsprev - -cursor-click = pointer -cursor-scroll = ns-resize - -[module/title] -type = internal/xwindow -label = %title% -label-maxlen = 45 - -[module/ewmh] -type = internal/xworkspaces - -; Only show workspaces defined on the same output as the bar -; -; Useful if you want to show monitor specific workspaces -; on different bars -; -; Default: false -pin-workspaces = false - -; Create click handler used to focus desktop -; Default: true -enable-click = true - -; Create scroll handlers used to cycle desktops -; Default: true -enable-scroll = false - -label-active = %name% -label-active-foreground = #ffffff -label-active-background = #222222 -label-active-padding = 2 - -label-occupied = %name% -label-occupied-foreground = #ffffff -label-occupied-background = #000000 -label-occupied-padding = 2 - -label-urgent = %name% -label-urgent-foreground = #ff0000 -label-urgent-background = #000000 -label-urgent-padding = 2 - -label-empty = %name% -label-empty-foreground = #7b7b7b -label-empty-backgorund = #000000 -label-empty-padding = 2 - -[module/packages] -type = custom/ipc -format-underline = #3399bb -hook-0 = pacpackages -initial = 1 - -[module/herbstluftwm] -type = custom/ipc -hook-0 = herbsttags -initial = 1 - -[module/mail] -type = custom/script -exec = mail -format-underline = #020 -interval = 10 - -[module/mem] -type = custom/script -exec = free -h | awk '/Mem/ {print $3}' -format-underline = #ff6c6b -interval = 5 - -[module/workspaces-xmonad] -type = custom/script -exec = tail -F /tmp/.xmonad-workspace-log -exec-if = [ -p /tmp/.xmonad-workspace-log ] -tail = true - -[module/title-xmonad] -type = custom/script -exec = tail -F /tmp/.xmonad-title-log -exec-if = [ -p /tmp/.xmonad-title-log ] -tail = true - -[module/xwindow] -type = internal/xwindow -label = %title:0:30:...% - -[module/xkeyboard] -type = internal/xkeyboard -blacklist-0 = num lock - -format-prefix = -format-prefix-foreground = ${colors.foreground-alt} -format-prefix-underline = ${colors.secondary} - -label-layout = %layout% -label-layout-underline = ${colors.secondary} - -label-indicator-padding = 2 -label-indicator-margin = 1 -label-indicator-background = ${colors.secondary} -label-indicator-underline = ${colors.secondary} - -[module/filesystem] -type = internal/fs -interval = 25 - -mount-0 = / - -label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% -label-unmounted = %mountpoint% not mounted -label-unmounted-foreground = ${colors.foreground-alt} - -format-underline = #51afef - -[module/bspwm] -type = internal/bspwm - -label-focused = %index% -label-focused-background = ${colors.background-alt} -label-focused-underline= ${colors.primary} -label-focused-padding = 2 - -label-occupied = %index% -label-occupied-padding = 2 - -label-urgent = %index%! -label-urgent-background = ${colors.alert} -label-urgent-padding = 2 - -label-empty = %index% -label-empty-foreground = ${colors.foreground-alt} -label-empty-padding = 2 - -; Separator in between workspaces -; label-separator = | - -[module/i3] -type = internal/i3 -format = -index-sort = true -wrapping-scroll = false - -; Only show workspaces on the same output as the bar -;pin-workspaces = true - -label-mode-padding = 2 -label-mode-foreground = #000 -label-mode-background = ${colors.primary} - -; focused = Active workspace on focused monitor -label-focused = %index% -label-focused-background = ${module/bspwm.label-focused-background} -label-focused-underline = ${module/bspwm.label-focused-underline} -label-focused-padding = ${module/bspwm.label-focused-padding} - -; unfocused = Inactive workspace on any monitor -label-unfocused = %index% -label-unfocused-padding = ${module/bspwm.label-occupied-padding} - -; visible = Active workspace on unfocused monitor -label-visible = %index% -label-visible-background = ${self.label-focused-background} -label-visible-underline = ${self.label-focused-underline} -label-visible-padding = ${self.label-focused-padding} - -; urgent = Workspace with urgency hint set -label-urgent = %index% -label-urgent-background = ${module/bspwm.label-urgent-background} -label-urgent-padding = ${module/bspwm.label-urgent-padding} - -; Separator in between workspaces -; label-separator = | - - -[module/mpd] -type = internal/mpd -format-online = - -icon-prev = < -icon-stop = s -icon-play = p -icon-pause = a -icon-next = > - -label-song-maxlen = 25 -label-song-ellipsis = true - -[module/xbacklight] -type = internal/xbacklight - -format =