summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Serenity/Ladybird.conf2
-rwxr-xr-xX11/xprofile10
-rwxr-xr-xbspwm/bspwmrc66
-rw-r--r--bspwm/noswallow1
-rw-r--r--bspwm/terminals3
-rw-r--r--caffeine/audio_blacklist.txt0
-rw-r--r--caffeine/whitelist.txt0
-rw-r--r--calcurse/keys95
-rwxr-xr-xdwm/autostart.sh3
-rwxr-xr-xdwm/autostart_blocking.sh2
-rw-r--r--ff_enterprise_policy.zipbin2479 -> 0 bytes
-rw-r--r--firejail/disable-exec.local1
-rw-r--r--firejail/dolphin-emu.local4
-rw-r--r--firejail/librewolf.local4
-rw-r--r--firejail/lynx.local3
-rw-r--r--firejail/mpv.local3
-rw-r--r--firejail/neomutt.local24
-rw-r--r--firejail/nextcloud.local4
-rw-r--r--firejail/qutebrowser.local4
-rw-r--r--firejail/steam.local2
-rw-r--r--ghostwriter/ghostwriter.conf68
-rw-r--r--herbstluftwm/README.md3
-rwxr-xr-xherbstluftwm/autostart205
-rwxr-xr-xherbstluftwm/spblue17
-rwxr-xr-xherbstluftwm/sphtop18
-rwxr-xr-xherbstluftwm/spirss18
-rwxr-xr-xherbstluftwm/spmpv22
-rwxr-xr-xherbstluftwm/spmutt18
-rwxr-xr-xherbstluftwm/spncmp18
-rwxr-xr-xherbstluftwm/sppmxr18
-rwxr-xr-xherbstluftwm/spprof18
-rwxr-xr-xherbstluftwm/spterm18
-rw-r--r--jellycli/jellycli.yaml38
-rw-r--r--kshrc40
-rw-r--r--lxqt/lxqt.conf2
-rw-r--r--mksh/mkshalias50
-rw-r--r--mksh/mkshfunc58
-rw-r--r--mksh/mkshrc687
-rw-r--r--modprobed-db.conf21
-rw-r--r--newsboat/config55
-rw-r--r--polybar/config615
-rw-r--r--profanity/themes/redbox80
-rw-r--r--qtile/config.py544
-rwxr-xr-xriver/init167
-rw-r--r--snownews/colors21
-rw-r--r--snownews/keybindings39
-rw-r--r--spectrwm/spectrwm.conf145
-rw-r--r--stalonetrayrc137
-rw-r--r--swayidle/config2
-rwxr-xr-xswhkd/swhkdrc174
-rw-r--r--tofi/config18
-rw-r--r--trizen/trizen.conf57
-rw-r--r--waybar/config236
-rw-r--r--waybar/config-dwl217
-rw-r--r--waybar/config-river157
-rw-r--r--waybar/style.css245
-rw-r--r--waylock/waylock.toml4
-rw-r--r--xmodmap26
-rw-r--r--xplr/init.lua2443
-rw-r--r--xplr/plugins/dragon/LICENSE21
-rw-r--r--xplr/plugins/dragon/README.md49
-rw-r--r--xplr/plugins/dragon/src/init.lua62
62 files changed, 53 insertions, 7029 deletions
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
--- a/caffeine/audio_blacklist.txt
+++ /dev/null
diff --git a/caffeine/whitelist.txt b/caffeine/whitelist.txt
deleted file mode 100644
index e69de29..0000000
--- a/caffeine/whitelist.txt
+++ /dev/null
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
--- a/ff_enterprise_policy.zip
+++ /dev/null
Binary files 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 <m@mirbsd.org>
-#
-# 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] [+<n>].'
- \\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] [<dir>|+<n>].'
- \\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 = <label-state> <label-mode>
-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 = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
-
-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 = <label> <bar>
-label = BL
-
-bar-width = 10
-bar-indicator = |
-bar-indicator-foreground = #fff
-bar-indicator-font = 2
-bar-fill = -
-bar-fill-font = 2
-bar-fill-foreground = #9f78e1
-bar-empty = -
-bar-empty-font = 2
-bar-empty-foreground = ${colors.foreground-alt}
-
-[module/backlight-acpi]
-inherit = module/xbacklight
-type = internal/backlight
-card = intel_backlight
-
-[module/cpu]
-type = internal/cpu
-interval = 2
-format-prefix =
-format-prefix-foreground = #ecbe7b
-format-underline = #ecbe7b
-label = %percentage%%
-
-[module/memory]
-type = internal/memory
-interval = 2
-format-prefix =
-format-prefix-foreground = #ff6c6b
-format-underline = #ff6c6b
-label = %mb_used%
-
-[module/wlan]
-type = internal/network
-interface = wlan0
-interval = 3.0
-
-format-connected = <ramp-signal> <label-connected>
-format-connected-underline = #33bb99
-label-connected = %essid%
-
-format-disconnected =
-;format-disconnected = <label-disconnected>
-;format-disconnected-underline = ${self.format-connected-underline}
-;label-disconnected = %ifname% disconnected
-;label-disconnected-foreground = ${colors.foreground-alt}
-
-ramp-signal-0 =
-ramp-signal-1 =
-ramp-signal-2 =
-ramp-signal-3 =
-ramp-signal-4 =
-ramp-signal-foreground = #33bb99
-
-[module/eth]
-type = internal/network
-interface = eth0
-interval = 3.0
-
-format-connected-underline = #0f9
-format-connected-prefix =
-format-connected-prefix-foreground = ${colors.foreground-alt}
-label-connected = %local_ip%
-
-format-disconnected =
-;format-disconnected = <label-disconnected>
-;format-disconnected-underline = ${self.format-connected-underline}
-;label-disconnected = %ifname% disconnected
-;label-disconnected-foreground = ${colors.foreground-alt}
-
-[module/date]
-type = internal/date
-interval = 5
-
-date = "%m-%d-%Y"
-date-alt = "%Y-%m-%d"
-
-time = %I:%M %p
-time-alt = %H:%M:%S
-
-format-prefix =
-format-prefix-foreground = #46d9ff
-format-underline = #46d9ff
-
-label = %date% %time%
-
-[module/pulseaudio]
-type = internal/pulseaudio
-
-format-volume = <label-volume> <bar-volume>
-label-volume = VOL %percentage%%
-label-volume-foreground = ${root.foreground}
-
-label-muted = muted
-label-muted-foreground = #b00
-
-bar-volume-width = 10
-bar-volume-foreground-0 = #55aa55
-bar-volume-foreground-1 = #55aa55
-bar-volume-foreground-2 = #55aa55
-bar-volume-foreground-3 = #55aa55
-bar-volume-foreground-4 = #55aa55
-bar-volume-foreground-5 = #f5a70a
-bar-volume-foreground-6 = #ff5555
-bar-volume-gradient = false
-bar-volume-indicator = |
-bar-volume-indicator-font = 2
-bar-volume-fill = -
-bar-volume-fill-font = 2
-bar-volume-empty = -
-bar-volume-empty-font = 2
-bar-volume-empty-foreground = ${colors.foreground-alt}
-
-[module/alsa]
-type = internal/alsa
-
-master-mixer = Master
-mapped = true
-interval = 5
-
-format-volume = <label-volume> <bar-volume>
-label-volume = VOL
-label-volume-foreground = ${root.foreground}
-
-format-muted-prefix =
-format-muted-foreground = ${colors.foreground-alt}
-label-muted = sound muted
-
-ramp-volume-0 =
-ramp-volume-1 =
-ramp-volume-2 =
-
-bar-volume-width = 10
-bar-volume-foreground-0 = #55aa55
-bar-volume-foreground-1 = #55aa55
-bar-volume-foreground-2 = #55aa55
-bar-volume-foreground-3 = #55aa55
-bar-volume-foreground-4 = #55aa55
-bar-volume-foreground-5 = #f5a70a
-bar-volume-foreground-6 = #ff5555
-bar-volume-gradient = false
-bar-volume-indicator = |
-bar-volume-indicator-font = 2
-bar-volume-fill = -
-bar-volume-fill-font = 2
-bar-volume-empty = -
-bar-volume-empty-font = 2
-bar-volume-empty-foreground = ${colors.foreground-alt}
-
-[module/battery]
-type = internal/battery
-battery = BAT0
-adapter = AC
-full-at = 99
-
-format-charging = <animation-charging> <label-charging>
-format-charging-underline = #fb0
-
-format-discharging = <animation-discharging> <label-discharging>
-format-discharging-underline = #f00
-
-format-full-prefix =
-format-full-prefix-foreground = ${colors.foreground-alt}
-format-full-underline = #0f0
-
-ramp-capacity-0 =
-ramp-capacity-1 =
-ramp-capacity-2 =
-ramp-capacity-foreground = ${colors.foreground-alt}
-
-animation-charging-0 = +
-animation-charging-1 = +
-animation-charging-2 = +
-animation-charging-foreground = ${colors.foreground-alt}
-animation-charging-framerate = 750
-
-animation-discharging-0 = -
-animation-discharging-1 = -
-animation-discharging-2 = -
-animation-discharging-foreground = ${colors.foreground-alt}
-animation-discharging-framerate = 750
-
-[module/temperature]
-type = internal/temperature
-thermal-zone = 0
-warn-temperature = 60
-
-format = <ramp> <label>
-format-underline = #f50a4d
-format-warn = <ramp> <label-warn>
-format-warn-underline = ${self.format-underline}
-
-label = %temperature-c%
-label-warn = %temperature-c%
-label-warn-foreground = ${colors.secondary}
-
-ramp-0 =
-ramp-1 =
-ramp-2 =
-ramp-foreground = ${colors.foreground-alt}
-
-[module/powermenu]
-type = custom/menu
-
-expand-right = true
-
-format-spacing = 2
-
-label-open = +
-
-label-separator-foreground = ${colors.foreground-alt}
-
-menu-0-0 = r
-menu-0-0-exec = menu-open-1
-menu-0-1 = s
-menu-0-1-exec = menu-open-2
-menu-0-2 = h
-menu-0-2-exec = menu-open-3
-
-menu-1-0 = c
-menu-1-0-exec = menu-open-0
-menu-1-1 = r
-menu-1-1-exec = doas /sbin/reboot
-
-menu-2-0 = s
-menu-2-0-exec = doas /sbin/poweroff
-menu-2-1 = c
-menu-2-1-exec = menu-open-0
-
-menu-3-0 = h
-menu-3-0-exec = loginctl hibernate
-menu-3-1 = c
-menu-3-1-exec = menu-open-0
-
-[settings]
-screenchange-reload = true
-;compositing-background = xor
-;compositing-background = screen
-;compositing-foreground = source
-;compositing-border = over
-;pseudo-transparency = false
-
-[global/wm]
-margin-top = 5
-margin-bottom = 5
-
-; vim:ft=dosini
diff --git a/profanity/themes/redbox b/profanity/themes/redbox
deleted file mode 100644
index 68ed360..0000000
--- a/profanity/themes/redbox
+++ /dev/null
@@ -1,80 +0,0 @@
-[colours]
-bkgnd=default
-titlebar=bold_red
-titlebar.text=yellow
-titlebar.brackets=green
-titlebar.unencrypted=red
-titlebar.encrypted=yellow
-titlebar.untrusted=red
-titlebar.trusted=yellow
-titlebar.online=yellow
-titlebar.offline=red
-titlebar.away=purple
-titlebar.chat=yellow
-titlebar.dnd=red
-titlebar.xa=yellow
-statusbar=bold_red
-statusbar.text=yellow
-statusbar.brackets=purple
-statusbar.active=white
-statusbar.new=yellow
-main.text=white
-main.text.me=white
-main.text.them=white
-main.splash=red
-main.time=red
-input.text=white
-subscribed=yellow
-unsubscribed=red
-otr.started.trusted=yellow
-otr.started.untrusted=red
-otr.ended=yellow
-otr.trusted=yellow
-otr.untrusted=red
-online=yellow
-away=red
-chat=yellow
-dnd=purple
-xa=yellow
-offline=bold_black
-incoming=yellow
-mention=red
-trigger=red
-typing=yellow
-gone=red
-error=red
-roominfo=yellow
-roommention=red
-roommention.term=red
-roomtrigger=red
-roomtrigger.term=red
-me=blue
-them=yellow
-roster.header=white
-roster.chat=yellow
-roster.online=yellow
-roster.away=yellow
-roster.xa=yellow
-roster.dnd=purple
-roster.offline=bold_black
-roster.chat.active=yellow
-roster.online.active=yellow
-roster.away.active=yellow
-roster.xa.active=yellow
-roster.dnd.active=purple
-roster.offline.active=bold_black
-roster.chat.unread=white
-roster.online.unread=white
-roster.away.unread=yellow
-roster.xa.unread=yellow
-roster.dnd.unread=purple
-roster.offline.unread=bold_black
-roster.room=yellow
-roster.room.unread=white
-roster.room.mention=yellow
-roster.room.trigger=yellow
-occupants.header=white
-receipt.sent=red
-[ui]
-beep=false
-flash=false
diff --git a/qtile/config.py b/qtile/config.py
deleted file mode 100644
index 21a029c..0000000
--- a/qtile/config.py
+++ /dev/null
@@ -1,544 +0,0 @@
-# Copyright (c) 2010 Aldo Cortesi
-# Copyright (c) 2010, 2014 dequis
-# Copyright (c) 2012 Randall Ma
-# Copyright (c) 2012-2014 Tycho Andersen
-# Copyright (c) 2012 Craig Barnes
-# Copyright (c) 2013 horsik
-# Copyright (c) 2013 Tao Sauvage
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-# SOFTWARE.
-
-import os
-import subprocess
-import psutil
-
-import re
-
-from typing import List # noqa: F401
-
-from libqtile import bar, hook, layout, qtile, widget
-from libqtile.config import Click, Drag, DropDown, Group, Key, Match, ScratchPad, Screen
-from libqtile.lazy import lazy
-
-mod = "mod1"
-if qtile.core.name == "x11":
- terminal = 'st'
- terminal_session = 'tabbed -c st -w'
- # terminal_session = 'st -e '
-elif qtile.core.name == "wayland":
- terminal = 'alacritty'
- terminal_session = 'tabbed -c alacritty --embed'
- # terminal_session = 'alacritty -e'
-
-computerrc = open('/home/zachir/.config/computerrc', 'r')
-Lines = computerrc.readlines()
-count = 0
-for line in Lines:
- if ('inet' in Lines[count][:5]):
- break
- count += 1
-inet = Lines[count][5:-1]
-
-barcolor_cyan = "39c1ed"
-barcolor_black = "000000"
-barcolor_gray1 = "111111"
-barcolor_gray2 = "222222"
-barcolor_gray6 = "666666"
-barcolor_gray8 = "888888"
-barcolor_graya = "aaaaaa"
-barcolor_white = "ffffff"
-barcolor_red = "ff0000"
-barcolor_magenta = "ff00ff"
-
-def resize(qtile, direction):
- layout = qtile.current_layout
- child = layout.current
- parent = child.parent
-
- while parent:
- if child in parent.children:
- layout_all = False
-
- if (direction == "left" and parent.split_horizontal) or (
- direction == "up" and not parent.split_horizontal
- ):
- parent.split_ratio = max(5, parent.split_ratio - layout.grow_amount)
- layout_all = True
- elif (direction == "right" and parent.split_horizontal) or (
- direction == "down" and not parent.split_horizontal
- ):
- parent.split_ratio = min(95, parent.split_ratio + layout.grow_amount)
- layout_all = True
-
- if layout_all:
- layout.group.layout_all()
- break
-
- child = parent
- parent = child.parent
-
-@lazy.function
-def resize_left(qtile):
- resize(qtile, "left")
-
-@lazy.function
-def resize_right(qtile):
- resize(qtile, "right")
-
-@lazy.function
-def resize_up(qtile):
- resize(qtile, "up")
-
-@lazy.function
-def resize_down(qtile):
- resize(qtile, "down")
-
-keys = [
- # Switch between windows
- Key([mod], "h", lazy.layout.left(), desc="Move focus down"),
- Key([mod], "l", lazy.layout.right(), desc="Move focus up"),
- Key([mod], "j", lazy.layout.down(), desc="Move focus down"),
- Key([mod], "k", lazy.layout.up(), desc="Move focus up"),
- Key([mod, "shift"], "space", lazy.layout.next(),
- desc="Move window focus to other window"),
-
- # swap columns
- Key([mod, "shift", "control"], "h", lazy.layout.swap_column_left()),
- Key([mod, "shift", "control"], "l", lazy.layout.swap_column_right()),
-
- # Move windows between left/right columns or move up/down in current stack.
- # Moving out of range in Columns layout will create new column.
- Key([mod, "shift"], "h", lazy.layout.shuffle_left(),
- desc="Move window to the left"),
- Key([mod, "shift"], "l", lazy.layout.shuffle_right(),
- desc="Move window to the right"),
- Key([mod, "shift"], "j", lazy.layout.shuffle_down(),
- desc="Move window down"),
- Key([mod, "shift"], "k", lazy.layout.shuffle_up(), desc="Move window up"),
-
- # Grow windows. If current window is on the edge of screen and direction
- # will be to screen edge - window would shrink.
- Key([mod, "control"], "h", lazy.layout.grow_left(),
- desc="Grow window to the left"),
- Key([mod, "control"], "l", lazy.layout.grow_right(),
- desc="Grow window to the right"),
- Key([mod, "control"], "j", lazy.layout.grow_down(),
- desc="Grow window down"),
- Key([mod, "control"], "k", lazy.layout.grow_up(), desc="Grow window up"),
- Key([mod], "n", lazy.layout.normalize(), desc="Reset all window sizes"),
-
- # Grow windows. If current window is on the edge of screen and direction
- # will be to screen edge - window would shrink.
- Key([mod, "mod4"], "h", resize_left,
- desc="Grow window to the left"),
- Key([mod, "mod4"], "l", resize_right,
- desc="Grow window to the right"),
- Key([mod, "mod4"], "j", resize_down,
- desc="Grow window down"),
- Key([mod, "mod4"], "k", resize_up, desc="Grow window up"),
- Key([mod], "n", lazy.layout.normalize(), desc="Reset all window sizes"),
-
- # Toggle between split and unsplit sides of stack.
- # Split = all windows displayed
- # Unsplit = 1 window displayed, like Max layout, but still with
- # multiple stack panes
- Key([mod, "shift"], "Return", lazy.layout.toggle_split(),
- desc="Toggle between split and unsplit sides of stack"),
- Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
- Key([mod], "f", lazy.window.toggle_fullscreen(), desc="Toggle fullscreen"),
- Key([mod, "shift"], "n", lazy.spawn('Qminimize -u'), desc="Unminimize window"),
- Key([mod], "n", lazy.spawn('Qminimize -m'), desc="Minimize window"),
- Key([mod], "space", lazy.window.toggle_floating(),
- desc="Toggle floating"),
-
- # Toggle between different layouts as defined below
- Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
- Key([mod, "shift"], "Tab", lazy.prev_layout(), desc="Toggle between layouts"),
- Key([mod, "shift"], "q", lazy.window.kill(), desc="Kill focused window"),
-
- Key([mod, "shift"], "r", lazy.restart(), desc="Restart Qtile"),
- Key([mod, "shift"], "e", lazy.shutdown(), desc="Shutdown Qtile"),
- #Key([mod], "r", lazy.spawncmd(),
- #desc="Spawn a command using a prompt widget"),
-]
-
-groups = [Group(i) for i in "123456789"]
-
-groups += [
- ScratchPad("scratchpad", [
- DropDown("htop", terminal + " htop",
- x=0.25, y=0.2, width=0.5, height=0.6,
- on_focus_lost_hide=True, warp_pointer=True),
- DropDown("term", terminal,
- x=0.25, y=0.2, width=0.5, height=0.6,
- on_focus_lost_hide=True, warp_pointer=True),
- DropDown("alsa", terminal + " pulsemixer",
- x=0.25, y=0.2, width=0.5, height=0.6,
- on_focus_lost_hide=True, warp_pointer=True),
- DropDown("blue", terminal + " bluetoothctl",
- x=0.25, y=0.2, width=0.5, height=0.6,
- on_focus_lost_hide=True, warp_pointer=True),
- DropDown("ncmp", terminal + " ncmpcpp",
- x=0.25, y=0.2, width=0.5, height=0.6,
- on_focus_lost_hide=True, warp_pointer=True),
- DropDown("mutt", terminal + " neomutt",
- x=0.25, y=0.2, width=0.5, height=0.6,
- on_focus_lost_hide=True, warp_pointer=True),
- DropDown("prof", terminal + " /usr/bin/profanity",
- x=0.25, y=0.2, width=0.5, height=0.6,
- on_focus_lost_hide=True, warp_pointer=True),
- DropDown("ircc", terminal + " /usr/bin/irssi",
- x=0.25, y=0.2, width=0.5, height=0.6,
- on_focus_lost_hide=True, warp_pointer=True),
- DropDown("todo", terminal + " /usr/bin/todo",
- x=0.25, y=0.2, width=0.5, height=0.6,
- on_focus_lost_hide=True, warp_pointer=True),
- DropDown("trem", terminal + " /usr/bin/tremc",
- x=0.25, y=0.2, width=0.5, height=0.6,
- on_focus_lost_hide=True, warp_pointer=True),
- ])
- ]
-
-@hook.subscribe.startup
-def autostart():
- home = os.path.expanduser('~/.config/autostart.sh')
- subprocess.call([home])
-
-keys.extend([
- Key([mod, "control"], 'z', lazy.group['scratchpad'].dropdown_toggle('htop'),
- desc="Toggle htop scratchpad"),
- Key([mod, "control"], 'x', lazy.group['scratchpad'].dropdown_toggle('term'),
- desc="Toggle terminal scratchpad"),
- Key([mod, "control"], 'c', lazy.group['scratchpad'].dropdown_toggle('alsa'),
- desc="Toggle alsamixer scratchpad"),
- Key([mod, "control"], 'v', lazy.group['scratchpad'].dropdown_toggle('blue'),
- desc="Toggle alsamixer scratchpad"),
- Key([mod, "control"], 'b', lazy.group['scratchpad'].dropdown_toggle('ncmp'),
- desc="Toggle ncmpcpp scratchpad"),
- Key([mod, "control"], 'a', lazy.group['scratchpad'].dropdown_toggle('mutt'),
- desc="Toggle neomutt scratchpad"),
- Key([mod, "control"], 's', lazy.group['scratchpad'].dropdown_toggle('prof'),
- desc="Toggle profanity scratchpad"),
- Key([mod, "control"], 'd', lazy.group['scratchpad'].dropdown_toggle('ircc'),
- desc="Toggle irssi scratchpad"),
- Key([mod, "control"], 'f', lazy.group['scratchpad'].dropdown_toggle('todo'),
- desc="Toggle todo.txt scratchpad"),
- Key([mod, "control"], 'g', lazy.group['scratchpad'].dropdown_toggle('trem'),
- desc="Toggle tremc scratchpad"),
- ])
-
-for i in "123456789":
- keys.extend([
- # mod1 + letter of group = switch to group
- Key([mod], i, lazy.group[i].toscreen(),
- desc="Switch to group {}".format(i)),
-
- # mod1 + shift + letter of group = switch to & move focused window to group
- Key([mod, "shift"], i, lazy.window.togroup(i, switch_group=False),
- desc="Switch to & move focused window to group {}".format(i)),
- # Or, use below if you prefer not to switch to that group.
- # # mod1 + shift + letter of group = move focused window to group
- # Key([mod, "shift"], i, lazy.window.togroup(i),
- # desc="move focused window to group {}".format(i)),
- ])
-
-layouts = [
- layout.Columns(
- border_focus=barcolor_gray8,
- border_focus_stack=barcolor_gray8,
- border_normal=barcolor_black,
- border_normal_stack=barcolor_black,
- insert_position=1,
- margin=5
- ),
- layout.Bsp(
- border_focus=barcolor_gray8,
- border_normal=barcolor_black,
- fair=False,
- margin=5
- ),
- # layout.Max(),
- # Try more layouts by unleashing below layouts.
- # layout.Stack(num_stacks=2),
- # layout.Matrix(),
- # layout.MonadTall(),
- # layout.MonadWide(),
- # layout.RatioTile(),
- # layout.Tile(),
- # layout.TreeTab(),
- # layout.VerticalTile(),
- # layout.Zoomy(),
-]
-
-widget_defaults = dict(
- font='mononoki Nerd Font Mono',
- fontsize=12,
- padding=3,
-)
-extension_defaults = widget_defaults.copy()
-
-bar_array_1 = [
- widget.WindowName(
- background=barcolor_cyan,
- foreground=barcolor_black,
- format='{state}{name}'
- ),
- widget.Chord(
- chords_colors={
- 'launch': (barcolor_red, barcolor_white),
- },
- name_transform=lambda name: name.upper(),
- ),
- widget.TextBox("ZachIR", name="default",
- background=barcolor_black,
- foreground=barcolor_white
- ),
- widget.CPU(
- background=barcolor_cyan,
- foreground=barcolor_black,
- format='CPU {load_percent}%',
- update_interval=1.0
- ),
- widget.CPUGraph(
- background=barcolor_cyan,
- border_color=barcolor_black,
- core='all',
- fill_color=barcolor_graya,
- graph_color=barcolor_white
- ),
- widget.Memory(
- background=barcolor_black,
- foreground=barcolor_white,
- format='RAM {MemUsed: .0f}{mm}',
- measure_mem='M',
- measure_swap='M',
- update_interval=1.0
- ),
- widget.MemoryGraph(
- background=barcolor_black,
- border_color=barcolor_cyan,
- fill_color=barcolor_graya,
- frequency=1,
- graph_color=barcolor_white
- ),
- widget.Mpd2(
- background=barcolor_cyan,
- foreground=barcolor_black,
- status_format='{play_status} {artist} - {title} \
-[{repeat}{random}{single}{consume}{updating_db}]',
- idle_format='{idle_message}',
- idle_message='MPD',
- host=os.path.expanduser('~/.config/mpd/socket'),
- prepare_status={
- 'consume': 'c',
- 'random': 'z',
- 'repeat': 'r',
- 'single': 'y',
- 'updating_db': 'u' }
- ),
- widget.Net(
- background=barcolor_black,
- interface=inet
- )
- ]
-
-bar_array_2 = [
- widget.Clock(
- background=barcolor_black,
- format='%Y-%m-%d %a %I:%M %p',
- update_interval=1.0
- ),
- widget.QuickExit(
- background=barcolor_cyan,
- foreground=barcolor_black,
- countdown_format='[ {}sec ]',
- countdown_start=5,
- default_text='[ exit ]',
- timer_interval=1
- )
- ]
-
-bar_systray = [
- widget.Systray(
- background=barcolor_black
- )
- ]
-
-bar_battery = [
- widget.Battery(
- background=barcolor_cyan,
- foreground=barcolor_black,
- battery=0,
- charge_char='+',
- discharge_char='-',
- empty_char='X',
- format='{char}{percent:2.0%} {hour:d}:{min:02d}',
- full_char='|',
- low_foreground=barcolor_red,
- low_percentage=0.15,
- notify_below=0.15,
- unknown_char='?',
- update_interval=60
- )
- ]
-
-bar_no_battery = [
- widget.TextBox("None", name="default",
- background=barcolor_cyan,
- foreground=barcolor_black
- )
- ]
-
-bar_1 = bar_array_1
-if (psutil.sensors_battery() != None):
- bar_1 = bar_1 + bar_battery
-else:
- bar_1 = bar_1 + bar_no_battery
-if qtile.core.name == "x11":
- bar_1 = bar_1 + bar_systray
-bar_1 = bar_1 + bar_array_2
-
-bar_2 = bar_array_1
-if (psutil.sensors_battery() != None):
- bar_2 = bar_2 + bar_battery
-else:
- bar_2 = bar_2 + bar_no_battery
-bar_2 = bar_2 + bar_array_2
-
-screens = [
- Screen(
- top=bar.Bar(
- [
- widget.CurrentLayoutIcon(
- background=barcolor_cyan,
- foreground=barcolor_black,
- scale=0.8
- ),
- widget.GroupBox(
- active=barcolor_white,
- background=barcolor_black,
- center_aligned=True,
- highlight_color=barcolor_gray1,
- highlight_method='line',
- inactive=barcolor_gray6,
- margin_x=2,
- margin_y=5,
- other_current_screen_border=barcolor_gray2,
- other_screen_border=barcolor_gray2,
- padding_y=5,
- padding_x=3,
- this_current_screen_border=barcolor_white,
- this_screen_border=barcolor_white,
- urgent_alert_method='block',
- urgent_border=barcolor_magenta,
- urgent_text=barcolor_magenta
- )
- ] + bar_1,
- 24,
- ),
- ),
- Screen(
- top=bar.Bar(
- [
- widget.CurrentLayoutIcon(
- background=barcolor_cyan,
- foreground=barcolor_black,
- scale=0.8
- ),
- widget.GroupBox(
- active=barcolor_white,
- background=barcolor_black,
- center_aligned=True,
- highlight_color=barcolor_gray1,
- highlight_method='line',
- inactive=barcolor_gray6,
- margin_x=2,
- margin_y=5,
- other_current_screen_border=barcolor_gray2,
- other_screen_border=barcolor_gray2,
- padding_y=5,
- padding_x=3,
- this_current_screen_border=barcolor_white,
- this_screen_border=barcolor_white,
- urgent_alert_method='block',
- urgent_border=barcolor_magenta,
- urgent_text=barcolor_magenta
- )
- ] + bar_2,
- 24,
- ),
- ),
-]
-
-# Drag floating layouts.
-mouse = [
- Drag([mod], "Button1", lazy.window.set_position_floating(),
- start=lazy.window.get_position()),
- Drag([mod], "Button3", lazy.window.set_size_floating(),
- start=lazy.window.get_size()),
- Click([mod], "Button2", lazy.window.bring_to_front())
-]
-
-dgroups_key_binder = None
-dgroups_app_rules = [] # type: List
-follow_mouse_focus = True
-bring_front_click = False
-cursor_warp = False
-floating_layout = layout.Floating(float_rules=[
- # Run the utility of `xprop` to see the wm class and name of an X client.
- # *layout.Floating.default_float_rules,
- Match(title='FX: Track 1'), # REAPER
- Match(title='Torpedo Wall Of Sound (Two Notes Audio Engineering)'),
- Match(title='Add FX to: Track 1'), # REAPER
- Match(title='REAPER (loading)'), # REAPER
- Match(title='REAPER Query'), # REAPER
- Match(title='REAPER (initializing)'), # REAPER
- Match(title='Browse FX'), # REAPER
- Match(title='Ardour - Preferences'), # ardour
- Match(wm_instance_class='import'), # ardour
- Match(wm_class=re.compile('ardour-6\.9\.0')), # ardour
- Match(wm_class=re.compile("lin-vst-servertrack\.exe\.so")), #linvst
- Match(title='Edit Text on the Schematic:'), # LTspiceXVII
- Match(wm_class='confirmreset'), # gitk
- Match(wm_class='makebranch'), # gitk
- Match(wm_class='maketag'), # gitk
- Match(title='branchdialog'), # gitk
- Match(wm_class='ssh-askpass'), # ssh-askpass
- Match(title=re.compile('Edit Guide.*')), # kdenlive
- Match(title=re.compile('Steam - News.*')), # SteamZZ
- Match(title='Create Snapshot'), # timeshift-gtk
- Match(title='pinentry'), # GPG key password entry
-], border_focus=barcolor_gray8, border_normal=barcolor_black)
-auto_fullscreen = False
-focus_on_window_activation = "smart"
-reconfigure_screens = True
-
-# If things like steam games want to auto-minimize themselves when losing
-# focus, should we respect this or not?
-auto_minimize = False
-
-# XXX: Gasp! We're lying here. In fact, nobody really uses or cares about this
-# string besides java UI toolkits; you can see several discussions on the
-# mailing lists, GitHub issues, and other WM documentation that suggest setting
-# this string if your java app doesn't work correctly. We may as well just lie
-# and say that we're a working one by default.
-#
-# We choose LG3D to ], border_focus='', border_normal=''aximize irony: it is a 3D non-reparenting WM written in
-# java that happens to be on java's whitelist.
-# wmname = "LG3D"
diff --git a/river/init b/river/init
deleted file mode 100755
index c3e0fb2..0000000
--- a/river/init
+++ /dev/null
@@ -1,167 +0,0 @@
-#!/bin/sh
-
-. ~/.profile
-
-mod="Alt"
-
-riverctl attach-mode bottom
-riverctl map normal $mod Return spawn alacritty
-riverctl map normal $mod+Control Return spawn 'cage alacritty'
-riverctl map normal $mod+Shift Q close
-riverctl map normal Alt+Super Q spawn 'loginctl suspend'
-riverctl map normal $mod+Shift E exit
-riverctl map normal $mod J focus-view next
-riverctl map normal $mod K focus-view previous
-riverctl map normal $mod+Shift J swap next
-riverctl map normal $mod+Shift K swap previous
-riverctl map normal $mod D spawn bemenu-run
-riverctl map normal $mod P spawn passmenu
-riverctl map normal $mod R spawn 'j4-dmenu-desktop --dmenu="bemenu -l 15"'
-riverctl map normal $mod C spawn swayidletog
-riverctl map normal $mod Q spawn 'loginctl lock-session'
-riverctl map normal $mod W spawn "waytoggle"
-riverctl map normal $mod Y spawn 'alacritty --class ytfzft -e ytfzf -l'
-riverctl map normal $mod+Shift Y spawn 'cage -d -- alacritty -e ytfzf -l'
-riverctl map normal Alt+Super Q spawn qbc
-riverctl map normal Alt+Super W spawn lwc
-riverctl map normal Alt+Super E spawn fdc
-riverctl map normal Alt+Super Comma spawn dmenumount
-riverctl map normal Alt+Super Period spawn dmenuumount
-riverctl map normal Alt+Control v spawn 'alacritty -e bluetoothctl'
-
-riverctl map normal None XF86_MonBrightnessUp spawn 'light -A 1'
-riverctl map normal None XF86_MonBrightnessDown spawn 'light -U 1'
-riverctl map normal None XF86_AudioMute spawn 'volsv -t'
-riverctl map normal None XF86_AudioMicMute spawn 'pamixer --source 1 -t'
-riverctl map normal None XF86_AudioLowerVolume spawn 'volsv -d'
-riverctl map normal None XF86_AudioRaiseVolume spawn 'volsv -i'
-riverctl map normal None XF86_AudioNext spawn 'playerctl next'
-riverctl map normal None XF86_AudioPrev spawn 'playerctl previous'
-riverctl map normal None XF86_AudioPlay spawn 'playerctl play-pause'
-riverctl map normal None XF86_AudioStop spawn 'playerctl stop'
-
-# Mod+Period and Mod+Comma to focus the next/previous output
-riverctl map normal $mod+Control Period focus-output next
-riverctl map normal $mod+Control Comma focus-output previous
-
-# Mod+Shift+{Period,Comma} to send the focused view to the next/previous output
-riverctl map normal $mod+Control+Shift Period send-to-output next
-riverctl map normal $mod+Control+Shift Comma send-to-output previous
-
-# Mod+Return to bump the focused view to the top of the layout stack, making
-# it the new master
-riverctl map normal $mod+Shift Return zoom
-
-# Mod+H and Mod+L to decrease/increase the width of the master column by 5%
-riverctl map normal $mod H send-layout-cmd rivertile "main-ratio -0.05"
-riverctl map normal $mod L send-layout-cmd rivertile "main-ratio +0.05"
-
-# Mod+Shift+H and Mod+Shift+L to increment/decrement the number of
-# master views in the layout
-riverctl map normal $mod+Shift H send-layout-cmd rivertile "main-count +1"
-riverctl map normal $mod+Shift L send-layout-cmd rivertile "main-count -1"
-
-for i in $(seq 1 9); do
- tagmask=$((1 << ($i - 1)))
-
- # Mod+[1-9] to focus tag [0-8]
- riverctl map normal $mod $i set-focused-tags $tagmask
-
- # Mod+Shift+[1-9] to tag focused view with tag [0-8]
- riverctl map normal $mod+Shift $i set-view-tags $tagmask
-
- # Mod+Ctrl+[1-9] to toggle focus of tag [0-8]
- riverctl map normal $mod+Control $i toggle-focused-tags $tagmask
-
- # Mod+Shift+Ctrl+[1-9] to toggle tag [0-8] of focused view
- riverctl map normal $mod+Shift+Control $i toggle-view-tags $tagmask
-done
-
-# Mod+0 to focus all tags
-# Mod+Shift+0 to tag focused view with all tags
-all_tags_mask=$(((1 << 32) - 1))
-riverctl map normal $mod 0 set-focused-tags $all_tags_mask
-riverctl map normal $mod+Shift 0 set-view-tags $all_tags_mask
-
-# Mod+Space to toggle float
-riverctl map normal $mod Space toggle-float
-
-# Mod+F to toggle fullscreen
-riverctl map normal $mod F toggle-fullscreen
-
-
-# Super+Alt+{H,J,K,L} to move views
-riverctl map normal Super+Alt H move left 100
-riverctl map normal Super+Alt J move down 100
-riverctl map normal Super+Alt K move up 100
-riverctl map normal Super+Alt L move right 100
-
-# Super+Alt+Control+{H,J,K,L} to snap views to screen edges
-riverctl map normal Super+Alt+Control H snap left
-riverctl map normal Super+Alt+Control J snap down
-riverctl map normal Super+Alt+Control K snap up
-riverctl map normal Super+Alt+Control L snap right
-
-# Super+Alt+Shift+{H,J,K,L} to resize views
-riverctl map normal Super+Alt+Shift H resize horizontal -100
-riverctl map normal Super+Alt+Shift J resize vertical 100
-riverctl map normal Super+Alt+Shift K resize vertical -100
-riverctl map normal Super+Alt+Shift L resize horizontal 100
-
-# Mod+{Up,Right,Down,Left} to change master orientation
-riverctl map normal $mod Up layout rivertile top
-riverctl map normal $mod Right layout rivertile right
-riverctl map normal $mod Down layout rivertile down
-riverctl map normal $mod Left layout rivertile left
-
-# Super+{Up,Right,Down,Left} to change layout orientation
-riverctl map normal Super Up send-layout-cmd rivertile "main-location top"
-riverctl map normal Super Right send-layout-cmd rivertile "main-location right"
-riverctl map normal Super Down send-layout-cmd rivertile "main-location bottom"
-riverctl map normal Super Left send-layout-cmd rivertile "main-location left"
-
-# Mod+S to change to Full layout
-riverctl map normal $mod S layout full
-
-riverctl map normal $mod T layout rivertile left
-
-# Declare a passthrough mode. This mode has only a single mapping to return to
-# normal mode. This makes it useful for testing a nested wayland compositor
-riverctl declare-mode passthrough
-
-# Mod+F11 to enter passthrough mode
-riverctl map normal $mod F11 enter-mode passthrough
-
-# Mod+F11 to return to normal mode
-riverctl map passthrough $mod F11 enter-mode normal
-
-# Set app-ids of views which should float
-riverctl float-filter-add "float"
-riverctl float-filter-add "popup"
-riverctl float-filter-add 'ytfzft'
-
-# Set app-ids of views which should use client side decorations
-riverctl csd-filter-add app-id "gedit"
-riverctl csd-filter-add app-id "libreoffice"
-riverctl csd-filter-add app-id "firedragon"
-
-riverctl focus-follows-cursor normal
-riverctl map-pointer normal $Mod BTN_LEFT move-view
-riverctl map-pointer normal $mod BTN_RIGHT resize-view
-
-## AUTOSTART
-
-#setsid -f swaybg -i ~/background.jpg
-#setsid -f mpd
-#gsettings set org.gnome.desktop.interface gtk-theme Plata-Noir-Compact
-#gsettings set org.gnome.desktop.interface icon-theme Paper-Mono-Dark
-#setsid -f dbus-daemon --session --address=unix:path=$XDG_RUNTIME_DIR/bus
-#setsid -f swayidle timeout 300 'loginctl lock-session' timeout 600 'loginctl suspend' lock slockd before-sleep slockd
-#setsid -f mako
-#setsid -f waybar
-setsid -f ~/.config/autostart.sh
-
-# Set the layout on startup
-riverctl default-layout rivertile
-
-exec rivertile -view-padding 6 -outer-padding 6
diff --git a/snownews/colors b/snownews/colors
deleted file mode 100644
index 8675dde..0000000
--- a/snownews/colors
+++ /dev/null
@@ -1,21 +0,0 @@
-# Snownews color definitons
-# black:0
-# red:1
-# green:2
-# orange:3
-# blue:4
-# magenta(tm):5
-# cyan:6
-# gray:7
-# brightred:9
-# brightgreen:10
-# yellow:11
-# brightblue:12
-# brightmagenta:13
-# brightcyan:14
-# white:15
-# no color:-1
-enabled:1
-new item:5
-goto url:4
-feedtitle:-1
diff --git a/snownews/keybindings b/snownews/keybindings
deleted file mode 100644
index 73d0f9e..0000000
--- a/snownews/keybindings
+++ /dev/null
@@ -1,39 +0,0 @@
-# Snownews keybindings configfile
-# Main menu bindings
-add feed:a
-delete feed:D
-reload all feeds:R
-change default browser:B
-move item up:K
-move item down:J
-change feedname:r
-sort feeds:s
-categorize feed:C
-apply filter:f
-only current category:c
-mark all as read:A
-remove filter:F
-per feed filter:e
-toggle AND/OR filtering:X
-quit:q
-# Feed display menu bindings
-show feedinfo:i
-mark feed as read:n
-mark item unread:N
-# General keybindungs
-next item:j
-previous item:k
-return to previous menu:h
-reload feed:R
-force reload feed:T
-open url:o
-open item url in overview:O
-page up:b
-page down:
-top:g
-bottom:G
-enter:l
-show new headlines:H
-help menu:?
-about:>
-type ahead find:/
diff --git a/spectrwm/spectrwm.conf b/spectrwm/spectrwm.conf
deleted file mode 100644
index c87d40f..0000000
--- a/spectrwm/spectrwm.conf
+++ /dev/null
@@ -1,145 +0,0 @@
-# PLEASE READ THE MAN PAGE BEFORE EDITING THIS FILE!
-# https://htmlpreview.github.io/?https://github.com/conformal/spectrwm/blob/master/spectrwm.html
-# NOTE: all rgb color values in this file are in hex! see XQueryColor for examples
-
-workspace_limit = 22
-focus_mode = follow
-focus_close = previous
-focus_close_wrap = 1
-focus_default = last
-spawn_position = next
-workspace_clamp = 1
-warp_focus = 1
-warp_pointer = 1
-
-# Window Decoration
-border_width = 1
-color_focus = black
-color_focus_maximized = black
-color_unfocus = rgb:22/22/22
-color_unfocus_maximized = rgb:22/22/22
-region_padding = 2
-tile_gap = 5
-
-# Region containment
-# Distance window must be dragged/resized beyond the region edge before it is
-# allowed outside the region.
-boundary_width = 50
-
-# Remove window border when bar is disabled and there is only one window in workspace
-disable_border = 1
-
-# Bar Settings
-bar_enabled = 1
-# bar_enabled_ws[1] = 1
-bar_border_width = 1
-bar_border[1] = rgb:22/22/22
-bar_border_unfocus[1] = rgb:22/22/22
-bar_color[1] = black
-bar_color_selected[1] = rgb:00/80/80
-bar_font_color[1] = rgb:a0/a0/a0
-bar_font_color_selected = white
-bar_font = mononoki Nerd Font Mono:pixelsize=16:antialias=true
-bar_font_pua = Symbola:pixelsize=12:antialias=true
-bar_action = conky
-bar_action_expand = 1
-bar_justify = left
-bar_format = +N:+I +W +|R+A
-workspace_indicator = listcurrent,listactive,markcurrent,printnames
-bar_at_bottom = 0
-# stack_enabled = 0
-# clock_enabled = 1
-# clock_format = %a %b %d %R %Z %Y
-# iconic_enabled = 0
-maximize_hide_bar = 1
-# window_class_enabled = 0
-# window_instance_enabled = 0
-# window_name_enabled = 0
-# verbose_layout = 1
-# urgent_enabled = 1
-# urgent_collapse = 0
-
-# Dialog box size ratio when using TRANSSZ quirk; 0.3 < dialog_ratio <= 1.0
-dialog_ratio = 0.6
-
-# Split a non-RandR dual head setup into one region per monitor
-# (non-standard driver-based multihead is not seen by spectrwm)
-# region = screen[1]:1280x1024+0+0
-# region = screen[1]:1280x1024+1280+0
-
-# Launch applications in a workspace of choice
-# autorun = ws[1]:xterm
-# autorun = ws[2]:xombrero http://www.openbsd.org
-
-# Customize workspace layout at start
-layout = ws[1]:4:0:0:0:vertical
-# layout = ws[2]:0:0:0:0:horizontal
-# layout = ws[3]:0:0:0:0:fullscreen
-# layout = ws[4]:4:0:0:0:vertical_flip
-# layout = ws[5]:0:0:0:0:horizontal_flip
-
-# Set workspace name at start
-# name = ws[1]:IRC
-# name = ws[2]:Email
-# name = ws[3]:Browse
-# name = ws[10]:Music
-
-# Mod key, (Windows key is Mod4) (Apple key on OSX is Mod2)
-modkey = Mod1
-
-# This allows you to include pre-defined key bindings for your keyboard layout.
-# keyboard_mapping = ~/.spectrwm_us.conf
-
-# PROGRAMS
-
-# Validated default programs:
-program[lock] = slock
-program[term] = tabbed -c st -w
-program[menu] = dmenu_run $dmenu_bottom -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected
-program[search] = dmenu $dmenu_bottom -i -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected
-program[name_workspace] = dmenu $dmenu_bottom -p Workspace -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected
-
-# To disable validation of the above, free the respective binding(s):
-bind[] = MOD+Shift+Delete # disable lock
-bind[] = MOD+Shift+Return # disable term
-bind[] = MOD+p # disable menu
-
-#Rebind WM Keys
-bind[wind_kill] = MOD+Shift+q # remap close window command
-bind[quit] = MOD+Shift+e # remap quit command
-bind[term] = MOD+Return # remap terminal command
-bind[swap_main] = MOD+Shift+Return # remap swap master command
-bind[restart] = MOD+Shift+r # remap restart command
-bind[lock] = MOD+q # remap lock command
-bind[float_toggle] = MOD+space # map toggle float command
-
-#Bind WM Keys
-bind[layout_vertical] = MOD+t # set vertical layout
-bind[layout_horizontal] = MOD+y # set horizontal layout
-bind[fullscreen_toggle] = MOD+f # set max layout
-
-# Optional default programs that will only be validated if you override:
-program[screenshot_all] = maim # optional
-# program[screenshot_wind] = screenshot.sh window # optional
-# program[initscr] = initscreen.sh # optional
-
-# EXAMPLE: Define 'firefox' action and bind to key.
-# program[firefox] = firefox http://spectrwm.org/
-# bind[firefox] = MOD+Shift+b
-
-# QUIRKS
-# Default quirks, remove with: quirk[class:name] = NONE
-# quirk[MPlayer:xv] = FLOAT + FULLSCREEN + FOCUSPREV
-# quirk[OpenOffice.org 2.4:VCLSalFrame] = FLOAT
-# quirk[OpenOffice.org 3.0:VCLSalFrame] = FLOAT
-# quirk[OpenOffice.org 3.1:VCLSalFrame] = FLOAT
-# quirk[Firefox-bin:firefox-bin] = TRANSSZ
-# quirk[Firefox:Dialog] = FLOAT
-# quirk[Gimp:gimp] = FLOAT + ANYWHERE
-# quirk[XTerm:xterm] = XTERM_FONTADJ
-# quirk[xine:Xine Window] = FLOAT + ANYWHERE
-# quirk[Xitk:Xitk Combo] = FLOAT + ANYWHERE
-# quirk[xine:xine Panel] = FLOAT + ANYWHERE
-# quirk[Xitk:Xine Window] = FLOAT + ANYWHERE
-# quirk[xine:xine Video Fullscreen Window] = FULLSCREEN + FLOAT
-# quirk[pcb:pcb] = FLOAT
diff --git a/stalonetrayrc b/stalonetrayrc
deleted file mode 100644
index 5723ac7..0000000
--- a/stalonetrayrc
+++ /dev/null
@@ -1,137 +0,0 @@
-# vim:filetype=config:tw=80:et
-#
-# This is sample ~/.stalonetrayrc, resembling default configuration.
-# Remember: command line parameters take precedence.
-#
-# Directives introduced in @VERSION_STR@ are marked with "NEW in @VERSION_STR@"
-#
-####################################################################
-#
-# stalonetray understands following directives
-#
-####################################################################
-
-# background <color> # color can be specified as an HTML hex triplet or
- # as a name from rgb.txt, note that '#' must be quoted
-background "#282c34"
-
-# decorations <decspec> # set trays window decorations; possible values for
- # decspec are: all, title, border, none
-decorations none
-
-# display <display name> # as usual
-
-# dockapp_mode <mode> # set dockapp mode, which can be either simple (for
- # e.g. OpenBox, wmaker for WindowMaker, or none
- # (default). NEW in @VERSION_STR@.
-dockapp_mode none
-
-# fuzzy_edges [<level>] # enable fuzzy edges and set fuzziness level. level
- # can be from 0 (disabled) to 3; this setting works
- # with tinting and/or transparent and/or pixmap
- # backgrounds
-fuzzy_edges 0
-
-# geometry <geometry> # tray's geometry in standard X notation; width and
- # height are specified in slot_size multiples
-geometry 1x1+1884+0
-
-# grow_gravity <gravity> # one of N, S, E, W, NW, NE, SW, SE; tray will grow
- # in the direction opposite to one specified by
- # grow_gravity; if horizontal or vertical
- # direction is not specified, tray will not grow in
- # that direction
-grow_gravity NE
-
-# icon_gravity <gravity> # icon placement gravity, one of NW, NE, SW, SE
-icon_gravity NE
-
-# icon_size <int> # specifies dimensions of typical icon slot
-icon_size 24
-
-# log_level <level> # controls the amount of logging output, level can
- # be err (default), info, or trace (enabled only
- # when stalonetray configured with --enable-debug)
- # NEW in @VERSION_STR@.
-log_level err
-
-# kludges kludge[,kludge] # enable specific kludges to work around
- # non-conforming WMs and/or stalonetray bugs.
- # NEW in @VERSION_STR@. Argument is a
- # comma-separated list of
- # * fix_window_pos - fix tray window position on
- # erroneous moves by WM
- # * force_icons_size - ignore resize events on all
- # icons; force their size to be equal to
- # icon_size
- # * use_icon_hints - use icon window hints to
- # dtermine icon size
-
-# max_geometry <geometry> # maximal tray dimensions; 0 in width/height means
- # no limit
-max_geometry 1x1
-
-# no_shrink [<bool>] # disables shrink-back mode
-no_shrink false
-
-# parent_bg [<bool>] # whether to use pseudo-transparency
- # (looks better when reparented into smth like FvwmButtons)
-parent_bg false
-
-# pixmap_bg <path_to_xpm> # use pixmap from specified xpm file for (tiled) background
-# pixmap_bg /home/user/.stalonetraybg.xpm
-
-# scrollbars <mode> # enable/disable scrollbars; mode is either
- # vertical, horizontal, all or none (default)
- # NEW in @VERSION_STR@.
-scrollbars horizontal
-
-# scrollbars-size <size> # scrollbars step in pixels; default is slot_size / 4
-# scrollbars-step 8
-
-# scrollbars-step <step> # scrollbars step in pixels; default is slot_size / 2
-# scrollbars-step 32
-
-# slot_size <int> # specifies size of icon slot, defaults to
- # icon_size NEW in @VERSION_STR@.
-
-# skip_taskbar [<bool>] # hide tray`s window from the taskbar
-skip_taskbar true
-
-# sticky [<bool>] # make a tray`s window sticky across the
- # desktops/pages
-sticky true
-
-# tint_color <color> # set tinting color
-tint_color white
-
-# tint_level <level> # set tinting level; level ranges from 0 (disabled)
- # to 255
-tint_level 0
-
-# transparent [<bool>] # whether to use root-transparency (background
- # image must be set with Esetroot or compatible utility)
-transparent false
-
-# vertical [<bool>] # whether to use vertical layout (horisontal layout
- # is used by default)
-vertical false
-
-# window_layer <layer> # set the EWMH-compatible window layer; one of:
- # bottom, normal, top
-window_layer normal
-
-# window_strut <mode> # enable/disable window struts for tray window (to
- # avoid converting of tray window by maximized
- # windows); mode defines to which screen border tray
- # will be attached; it can be either top, bottom,
- # left, right, none or auto (default)
-window_strut none
-
-# window_type <type> # set the EWMH-compatible window type; one of:
- # desktop, dock, normal, toolbar, utility
-window_type dock
-
-# xsync [<bool>] # whether to operate on X server synchronously (SLOOOOW)
-xsync false
-
diff --git a/swayidle/config b/swayidle/config
deleted file mode 100644
index 2d29891..0000000
--- a/swayidle/config
+++ /dev/null
@@ -1,2 +0,0 @@
-before-sleep 'loginctl lock-session'
-lock slockd
diff --git a/swhkd/swhkdrc b/swhkd/swhkdrc
deleted file mode 100755
index 94e5bed..0000000
--- a/swhkd/swhkdrc
+++ /dev/null
@@ -1,174 +0,0 @@
-#
-# wm independent hotkeys
-#
-
-# reload sxhkd config
-alt + Escape
- doas pkill -HUP -x swhkd
-
-#
-# dmenu interfaces
-#
-
-# program launcher
-alt + d
- barmenu_run -h 24
-
-# desktop application launcher
-alt + r
- j4-dmenu-desktop --dmenu="barmenu -h 24 -l 15"
-
-# dmenu prompt for recording
-alt + control + r
- dmenurecord
-
-# run dmenu interface for keepassxc
-alt + p
- dmenu_keepass -h 24
-
-# run dmenu interface for pass
-alt + super + p
- passmenu
-
-# run dmenu interface for mpv
-alt + v
- dmpv
-
-# run dmenu interface for ytfzf
-alt + y
- ytfzf-launcher -D 'barmenu -h 24 -l 15'
-
-# run dmenu interface to spawn browsers
-alt + super + 1
- browser
-
-# run dmenu interface for qutebrowser profile chooser
-alt + super + q
- qbc
- #qbpm choose
-
-# run dmenu interface for librewolf profile chooser
-alt + super + w
- lwc
-
-# run dmenu interface for librewolf profile chooser
-alt + super + e
- fdc
-
-# run dmenu interface to open book
-alt + super + b
- dmenu_books
-
-# run dmenu interface for mpris
-alt + super + u
- mprisctl
-
-# run dmenu interface for monattach
-alt + super + m
- monattach right
-
-# run dmenu interface for mondetach
-alt + super + n
- mondetach
-
-# run dmenu interface for mount
-alt + super + comma
- dmenumount
-
-# run dmenu interface for umount
-alt + super + period
- dmenuumount
-
-#run dmenu prompt for unicode chars
-alt + super + u
- dmenuunicode
-
-#
-# utilities
-#
-
-# toggle x idle state
-alt + c
- xidletog
-
-# toggle waybar
-alt + w
- waytoggle
-
-# warp cursor to left or right monitor
-alt + super + {Left,Right}
- mwarp.py {left,right}
-
-# lock the screen
-alt + q
- loginctl lock-session self
-
-# restart dwmblocks
-alt + super + 9
- toggle dwmblocks
-
-# signal all dwmblocks modules
-alt + super + 0
- sigdwmb all
-
-# spawn file manager
-alt + super + f
- $TERMINAL -e lfrun
-
-# toggle touchpad
-alt + super + t
- toggletouchpad
-
-# notify-send firewall rules
-alt + super + o
- notify-iptables
-
-# mute volume
-alt + super + m
- volsv -t
-
-# mute microphone
-alt + super + shift + m
- volsv -m
-
-# load sxiv for backgrounds
-alt + super + x
- sxiv ~/.local/src/wallpapers
-
-# xkill
-alt + x
- xkill
-
-#
-# xf86 keys
-#
-
-# manipulate audio stream
-XF86Audio{Prev,Next,Play,Stop}
- mpc {prev,next,toggle,stop}
-
-# turn the brightness up
-XF86MonBrightnessUp
- xbacklight -inc 1
- # light -A 1
-
-# turn the brightness down
-XF86MonBrightnessDown
- xbacklight -dec 1
- # light -U 1
-
-# raise the volume
-XF86AudioRaiseVolume
- volsv -i
-
-# lower the volume
-XF86AudioLowerVolume
- volsv -d
-
-# toggle mute
-XF86AudioMute
- volsv -t
-
-# mute mic
-XF86AudioMicMute
- volsv -m
diff --git a/tofi/config b/tofi/config
deleted file mode 100644
index ca63d6e..0000000
--- a/tofi/config
+++ /dev/null
@@ -1,18 +0,0 @@
-anchor = top
-width = 100%
-height = 24
-horizontal = true
-font-size = 11
-prompt-text = " run: "
-font = mononoki Nerd Font Mono
-outline-width = 0
-border-width = 0
-background-color = #000000
-text-color = #198844
-selection-color = #39c1ed
-min-input-width = 120
-result-spacing = 15
-padding-top = 3
-padding-bottom = 0
-padding-left = 0
-padding-right = 0
diff --git a/trizen/trizen.conf b/trizen/trizen.conf
deleted file mode 100644
index a770759..0000000
--- a/trizen/trizen.conf
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/usr/bin/perl
-
-# trizen configuration file
-
-our $CONFIG = {
- ask_for_retry => 1, # bool -- When `makepkg` fails to build a package, offer the option for trying again.
- aur_results_last_modified => 1, # bool -- Show the date when the packages were last updated in AUR results.
- aur_results_popularity => 1, # bool -- Show the popularity score in AUR results.
- aur_results_show_installed => 1, # bool -- Show when a package is installed in AUR results.
- aur_results_sort_by => "name", # str -- Sort the AUR results by "name", "votes", "popularity" or "date".
- aur_results_sort_order => "ascending", # str -- Sort the AUR results in "ascending" or "descending" order.
- aur_results_votes => 1, # bool -- Show the number of votes in AUR results.
- clone_dir => "/tmp/trizen-zachir", # str -- Absolute path to the directory where to clone and build packages.
- color_code_dependencies => 1, # bool -- Display the dependencies of a package in specific colors (green = installed; cyan = in repo; purple = in AUR).
- debug => 0, # bool -- Verbose mode.
- flip_indices => 0, # bool -- In search+install mode, show the indices of packages in reverse order.
- flip_results => 0, # bool -- Show the search results in reverse order.
- forcecolors => 0, # bool -- Force output colors even when not writing to STDOUT.
- git_clone_depth => 0, # int -- Pass the `--depth int` flag to `git clone`. (0 means no limit)
- lwp_env_proxy => 1, # bool -- Use proxy settings defined in `env` (if any).
- lwp_show_progress => 0, # bool -- Show the HTTPS requests made by LWP::UserAgent to the AUR servers.
- lwp_timeout => 60, # int -- Seconds after which an HTTPS connection is aborted.
- makepkg_command => "/usr/bin/makepkg -scf", # str -- The `makepkg` command that is used internally in building a package.
- movepkg => 0, # bool -- Move built packages in the directory `movepkg_dir`.
- movepkg_dir => "/var/cache/pacman/pkg", # str -- Absolute path to the directory where to move built packages (with `movepkg`).
- nocolors => 0, # bool -- Disable output colors for `trizen`.
- noedit => 0, # bool -- Do not prompt to edit files when installing an AUR package.
- noinfo => 0, # bool -- Do not display package information when installing an AUR package.
- noinstall => 0, # bool -- Do not install built packages -- builds only.
- nopull => 0, # bool -- Do not `git pull` new changes from the AUR git server.
- one_line_edit => 1, # bool -- Select one or more build files to view/edit with one-line prompt.
- packages_in_stats => 5, # int -- The number of packages to display in `--stats`
- pacman_command => "pacman", # str -- The `pacman` command that is used internally for pacman operations.
- pacman_local_dir => "/var/lib/pacman/local", # str -- Absolute path to the pacman's local directory.
- pager_mode => 0, # bool -- Show the build files in pager mode using pager.
- recompute_deps => 1, # bool -- Recompute the dependencies of a package (after its build files are inspected / edited).
- show_build_files_content => 1, # bool -- Show the content of the build files of a package before building it.
- show_comments => 0, # int -- Show the `n` most recent AUR comments for a package before building it. (max: 10)
- show_diff_only => 0, # bool -- When the build files of a package already exist locally, show the diff only.
- show_inexistent => 1, # bool -- Warn about packages that do not exist in AUR, during -Su.
- show_ood => 0, # bool -- Warn about out-of-date marked packages, during -Su.
- show_unmaintained => 1, # bool -- Warn about unmaintained packages, during -Su.
- skipinteg => 0, # bool -- Pass the `--skipinteg` argument to `makepkg`.
- split_packages => 1, # bool -- Ask about installing the other parts of a split package.
- ssl_verify_hostname => 1, # bool -- Ensure LWP::UserAgent connects to servers that have a valid certificate.
- su_command => "/usr/bin/su -c", # str -- Command used when special permissions are required and `use_sudo` is set to 0.
- sudo_autorepeat => 0, # bool -- Automatically repeat `sudo -v` in the background after a `sudo` command was first executed.
- sudo_autorepeat_at_runtime => 0, # bool -- Execute `sudo -v` when `trizen` is first executed and apply the behavior of `sudo_autorepeat`.
- sudo_autorepeat_interval => 180, # int -- Interval, in seconds, after which `sudo -v` is executed in background (with `sudo_autorepeat`).
- sudo_command => "/usr/bin/doas", # str -- Command used when special permissions are required and `use_sudo` is set to 1.
- sudo_remove_timestamp => 0, # bool -- Remove the cached sudo credentials before `makepkg` is executed (`sudo --remove-timestamp`).
- syntax_highlighting => 0, # bool -- Syntax highlighting of the build files, using the `highlight` tool from [community].
- syntax_highlighting_cmd => "/usr/bin/highlight -O ansi", # str -- The `highlight` command used in highlighting the syntax of the build files (with `syntax_highlighting`).
- use_github_api => 1, # bool -- Check GitHub sources for updates using GitHub's API. (during `--devel --needed`)
- use_gitlab_api => 1, # bool -- Check GitLab sources for updates using GitLab's API. (during `--devel --needed`)
- use_sudo => 1, # bool -- Use the `sudo` command when special permissions are required.
-}
diff --git a/waybar/config b/waybar/config
deleted file mode 100644
index aa67c93..0000000
--- a/waybar/config
+++ /dev/null
@@ -1,236 +0,0 @@
-{
- "layer": "top", // Waybar at top layer
- // "position": "bottom", // Waybar position (top|bottom|left|right)
- "height": 20, // Waybar height (to be removed for auto height)
- // "width": 1280, // Waybar width
- // Choose the order of the modules
- "modules-left": ["river/tags", "river/window", "custom/dwl_tag#0", "custom/dwl_tag#1", "custom/dwl_tag#2", "custom/dwl_tag#3", "custom/dwl_tag#4", "custom/dwl_tag#5", "custom/dwl_tag#6", "custom/dwl_tag#7", "custom/dwl_tag#8", "custom/dwl_layout", "custom/dwl_title"],
- "modules-center": [],
- "modules-right": ["custom/swayidle", "mpd", "pulseaudio", "network", "cpu", "memory", "backlight", "battery", "tray", "clock"],
- // Modules configuration
- // "sway/workspaces": {
- // "disable-scroll": true,
- // "all-outputs": true,
- // "format": "{name}: {icon}",
- // "format-icons": {
- // "1": "",
- // "2": "",
- // "3": "",
- // "4": "",
- // "5": "",
- // "urgent": "",
- // "focused": "",
- // "default": ""
- // }
- // },
- "river/window": {
- "max-length": 60
- },
- "custom/dwl_tag#0": {
- "exec": "~/.local/bin/waybar-dwl.sh '' 0",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#1": {
- "exec": "~/.local/bin/waybar-dwl.sh '' 1",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#2": {
- "exec": "~/.local/bin/waybar-dwl.sh '' 2",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#3": {
- "exec": "~/.local/bin/waybar-dwl.sh '' 3",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#4": {
- "exec": "~/.local/bin/waybar-dwl.sh '' 4",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#5": {
- "exec": "~/.local/bin/waybar-dwl.sh '' 5",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#6": {
- "exec": "~/.local/bin/waybar-dwl.sh '' 6",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#7": {
- "exec": "~/.local/bin/waybar-dwl.sh '' 7",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#8": {
- "exec": "~/.local/bin/waybar-dwl.sh '' 8",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#9": {
- "exec": "~/.local/bin/waybar-dwl.sh '' 9",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_layout": {
- "exec": "~/.local/bin/waybar-dwl.sh '' layout",
- "format": "{}",
- "escape": true,
- "return-type": "json"
- },
- "custom/dwl_title": {
- "exec": "~/.local/bin/waybar-dwl.sh '' title",
- "format": "{}",
- "escape": true,
- "return-type": "json"
- },
- "custom/swayidle": {
- "exec": "~/.local/scripts/swayidlechk",
- "signal": 8,
- "interval": "once",
- "format": " {} ",
- "on-click": "~/.local/scripts/swayidletog"
- },
- "sway/mode": {
- "format": "<span style=\"italic\">{}</span>"
- },
- "mpd": {
- "signal": 7,
- "server": "/home/zachir/.config/mpd/socket",
- "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist:.15} - {title:.15}",
- // ({elapsedTime:%M:%S}/{totalTime:%M:%S})
- "format-disconnected": "Disconnected",
- "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped",
- "unknown-tag": "N/A",
- "interval": 2,
- "consume-icons": {
- "on": "<span color=\"#dddddd\"></span> "
- },
- "random-icons": {
- "off": " ",
- "on": "<span color=\"#dddddd\"></span> "
- },
- "repeat-icons": {
- "on": "<span color=\"#dddddd\"></span> "
- },
- "single-icons": {
- "on": "<span color=\"#dddddd\">1</span> "
- },
- "state-icons": {
- "paused": "",
- "playing": "<span color=\"#dddddd\"></span>"
- },
- "tooltip-format": "MPD (connected)",
- "tooltip-format-disconnected": "MPD (disconnected)",
-// "max-length": 50
- },
- "idle_inhibitor": {
- "format": "{icon}",
- "format-icons": {
- "activated": "",
- "deactivated": ""
- }
- },
- "tray": {
- // "icon-size": 21,
- "spacing": 10
- },
- "clock": {
- // "timezone": "America/New_York",
- "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
- "format-alt": "{:%Y-%m-%d}"
- },
- "cpu": {
- "format": "{usage}% ",
- "tooltip": false
- },
- "memory": {
- "format": "{}% "
- },
- "temperature": {
- // "thermal-zone": 2,
- // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
- "critical-threshold": 80,
- // "format-critical": "{temperatureC}°C {icon}",
- "format": "{temperatureC}°C {icon}",
- "format-icons": ["", "", ""]
- },
- "backlight": {
- // "device": "acpi_video1",
- "format": "{percent}% {icon}",
- "format-icons": ["", ""]
- },
- "battery": {
- "states": {
- // "good": 95,
- "warning": 30,
- "critical": 15
- },
- "format": "{capacity}% {icon}",
- "format-charging": "{capacity}% ",
- "format-plugged": "{capacity}% ",
- "format-alt": "{time} {icon}",
- // "format-good": "", // An empty format will hide the module
- // "format-full": "",
- "format-icons": ["", "", "", "", ""]
- },
- "battery#bat2": {
- "bat": "cw2015-battery",
- "states": {
- // "good": 95,
- "warning": 30,
- "critical": 15
- },
- "format": "{capacity}% {icon}",
- "format-charging": "{capacity}% ",
- "format-plugged": "{capacity}% ",
- "format-alt": "{time} {icon}",
- // "format-good": "", // An empty format will hide the module
- // "format-full": "",
- "format-icons": ["", "", "", "", ""]
- },
- "network": {
- "interface": "wl*", // (Optional) To force the use of this interface
- "format-wifi": "{essid} ({signalStrength}%) ",
- "format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
- "format-linked": "{ifname} (No IP) ",
- "format-disconnected": "Disconnected ⚠",
- "format-alt": "{ifname}: {ipaddr}/{cidr}",
- "signal": 6
- },
- "pulseaudio": {
- // "scroll-step": 1, // %, can be a float
- "format": "{volume}% {icon} {format_source}",
- "format-bluetooth": "{volume}% {icon} {format_source}",
- "format-bluetooth-muted": " {icon} {format_source}",
- "format-muted": " {format_source}",
- "format-source": "{volume}% ",
- "format-source-muted": "",
- "format-icons": {
- "headphone": "",
- "hands-free": "",
- "headset": "",
- "phone": "",
- "portable": "",
- "car": "",
- "default": ["", "", ""]
- },
- "on-click": "pavucontrol"
- },
- "custom/media": {
- "format": "{icon} {}",
- "return-type": "json",
- "max-length": 40,
- "format-icons": {
- "spotify": "",
- "default": "🎜"
- },
- "escape": true,
- "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
- // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
- }
-}
diff --git a/waybar/config-dwl b/waybar/config-dwl
deleted file mode 100644
index de8b732..0000000
--- a/waybar/config-dwl
+++ /dev/null
@@ -1,217 +0,0 @@
-[{
- "layer": "top", // Waybar at top layer
- // "position": "bottom", // Waybar position (top|bottom|left|right)
- "height": 20, // Waybar height (to be removed for auto height)
- // "width": 1280, // Waybar width
- // Choose the order of the modules
- "output": "%%DISPLAY%%",
- "modules-left": ["custom/dwl_tag#0", "custom/dwl_tag#1", "custom/dwl_tag#2", "custom/dwl_tag#3", "custom/dwl_tag#4", "custom/dwl_tag#5", "custom/dwl_tag#6", "custom/dwl_tag#7", "custom/dwl_tag#8", "custom/dwl_layout", "custom/dwl_title"],
- "modules-center": [],
- "modules-right": ["custom/swayidle", "mpd", "pulseaudio", "network", "cpu", "memory", "backlight", "battery", "tray", "clock"],
- // Modules configuration
- "custom/dwl_tag#0": {
- "exec": "~/.local/bin/waybar-dwl.sh %%DISPLAY%% 0",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#1": {
- "exec": "~/.local/bin/waybar-dwl.sh %%DISPLAY%% 1",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#2": {
- "exec": "~/.local/bin/waybar-dwl.sh %%DISPLAY%% 2",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#3": {
- "exec": "~/.local/bin/waybar-dwl.sh %%DISPLAY%% 3",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#4": {
- "exec": "~/.local/bin/waybar-dwl.sh %%DISPLAY%% 4",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#5": {
- "exec": "~/.local/bin/waybar-dwl.sh %%DISPLAY%% 5",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#6": {
- "exec": "~/.local/bin/waybar-dwl.sh %%DISPLAY%% 6",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#7": {
- "exec": "~/.local/bin/waybar-dwl.sh %%DISPLAY%% 7",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#8": {
- "exec": "~/.local/bin/waybar-dwl.sh %%DISPLAY%% 8",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_tag#9": {
- "exec": "~/.local/bin/waybar-dwl.sh %%DISPLAY%% 9",
- "format": "{}",
- "return-type": "json"
- },
- "custom/dwl_layout": {
- "exec": "~/.local/bin/waybar-dwl.sh %%DISPLAY%% layout",
- "format": "{}",
- "escape": true,
- "return-type": "json"
- },
- "custom/dwl_title": {
- "exec": "~/.local/bin/waybar-dwl.sh %%DISPLAY%% title",
- "format": "{}",
- "escape": true,
- "return-type": "json",
- "max-length": 200
- },
- "custom/swayidle": {
- "exec": "~/.local/bin/scripts/swayidlechk",
- "signal": 8,
- "interval": "once",
- "format": " {} ",
- "on-click": "~/.local/scripts/swayidletog"
- },
- "mpd": {
- "signal": 7,
- "server": "/home/zachir/.config/mpd/socket",
- "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist:.15} - {title:.15}",
- // ({elapsedTime:%M:%S}/{totalTime:%M:%S})
- "format-disconnected": "Disconnected",
- "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped",
- "unknown-tag": "N/A",
- "interval": 2,
- "consume-icons": {
- "on": "<span color=\"#dddddd\"></span> "
- },
- "random-icons": {
- "off": " ",
- "on": "<span color=\"#dddddd\"></span> "
- },
- "repeat-icons": {
- "on": "<span color=\"#dddddd\"></span> "
- },
- "single-icons": {
- "on": "<span color=\"#dddddd\">1</span> "
- },
- "state-icons": {
- "paused": "",
- "playing": "<span color=\"#dddddd\"></span>"
- },
- "tooltip-format": "MPD (connected)",
- "tooltip-format-disconnected": "MPD (disconnected)",
-// "max-length": 50
- },
- "idle_inhibitor": {
- "format": "{icon}",
- "format-icons": {
- "activated": "",
- "deactivated": ""
- }
- },
- "tray": {
- // "icon-size": 21,
- "spacing": 10
- },
- "clock": {
- // "timezone": "America/New_York",
- "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
- "format-alt": "{:%Y-%m-%d}"
- },
- "cpu": {
- "format": "{usage}% ",
- "tooltip": false
- },
- "memory": {
- "format": "{}% "
- },
- "temperature": {
- // "thermal-zone": 2,
- // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
- "critical-threshold": 80,
- // "format-critical": "{temperatureC}°C {icon}",
- "format": "{temperatureC}°C {icon}",
- "format-icons": ["", "", ""]
- },
- "backlight": {
- // "device": "acpi_video1",
- "format": "{percent}% {icon}",
- "format-icons": ["", ""]
- },
- "battery": {
- "states": {
- // "good": 95,
- "warning": 30,
- "critical": 15
- },
- "format": "{capacity}% {icon}",
- "format-charging": "{capacity}% ",
- "format-plugged": "{capacity}% ",
- "format-alt": "{time} {icon}",
- // "format-good": "", // An empty format will hide the module
- // "format-full": "",
- "format-icons": ["", "", "", "", ""]
- },
- "battery#bat2": {
- "bat": "cw2015-battery",
- "states": {
- // "good": 95,
- "warning": 30,
- "critical": 15
- },
- "format": "{capacity}% {icon}",
- "format-charging": "{capacity}% ",
- "format-plugged": "{capacity}% ",
- "format-alt": "{time} {icon}",
- // "format-good": "", // An empty format will hide the module
- // "format-full": "",
- "format-icons": ["", "", "", "", ""]
- },
- "network": {
- //"interface": "wl*", // (Optional) To force the use of this interface
- "format-wifi": "{essid} ({signalStrength}%) ",
- "format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
- "format-linked": "{ifname} (No IP) ",
- "format-disconnected": "Disconnected ⚠",
- "format-alt": "{ifname}: {ipaddr}/{cidr}",
- "signal": 6
- },
- "pulseaudio": {
- // "scroll-step": 1, // %, can be a float
- "format": "{volume}% {icon} {format_source}",
- "format-bluetooth": "{volume}% {icon} {format_source}",
- "format-bluetooth-muted": " {icon} {format_source}",
- "format-muted": " {format_source}",
- "format-source": "{volume}% ",
- "format-source-muted": "",
- "format-icons": {
- "headphone": "",
- "hands-free": "",
- "headset": "",
- "phone": "",
- "portable": "",
- "car": "",
- "default": ["", "", ""]
- },
- "on-click": "pavucontrol"
- },
- "custom/media": {
- "format": "{icon} {}",
- "return-type": "json",
- "max-length": 40,
- "format-icons": {
- "spotify": "",
- "default": "🎜"
- },
- "escape": true,
- "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
- // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
- }
-}]
diff --git a/waybar/config-river b/waybar/config-river
deleted file mode 100644
index 2b70f66..0000000
--- a/waybar/config-river
+++ /dev/null
@@ -1,157 +0,0 @@
-[{
- "layer": "top", // Waybar at top layer
- // "position": "bottom", // Waybar position (top|bottom|left|right)
- "height": 20, // Waybar height (to be removed for auto height)
- // "width": 1280, // Waybar width
- // Choose the order of the modules
- "output": "%%DISPLAY%%",
- "modules-left": ["river/tags", "river/window"],
- "modules-center": [],
- "modules-right": ["custom/swayidle", "mpd", "pulseaudio", "network", "cpu", "memory", "backlight", "battery", "tray", "clock"],
- // Modules configuration
- "river/window": {
- "max-length": 60
- },
- "custom/swayidle": {
- "exec": "~/.local/scripts/swayidlechk",
- "signal": 8,
- "interval": "once",
- "format": " {} ",
- "on-click": "~/.local/scripts/swayidletog"
- },
- "mpd": {
- "signal": 7,
- "server": "/home/zachir/.config/mpd/socket",
- "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist:.15} - {title:.15}",
- // ({elapsedTime:%M:%S}/{totalTime:%M:%S})
- "format-disconnected": "Disconnected",
- "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped",
- "unknown-tag": "N/A",
- "interval": 2,
- "consume-icons": {
- "on": "<span color=\"#dddddd\"></span> "
- },
- "random-icons": {
- "off": " ",
- "on": "<span color=\"#dddddd\"></span> "
- },
- "repeat-icons": {
- "on": "<span color=\"#dddddd\"></span> "
- },
- "single-icons": {
- "on": "<span color=\"#dddddd\">1</span> "
- },
- "state-icons": {
- "paused": "",
- "playing": "<span color=\"#dddddd\"></span>"
- },
- "tooltip-format": "MPD (connected)",
- "tooltip-format-disconnected": "MPD (disconnected)",
-// "max-length": 50
- },
- "idle_inhibitor": {
- "format": "{icon}",
- "format-icons": {
- "activated": "",
- "deactivated": ""
- }
- },
- "tray": {
- // "icon-size": 21,
- "spacing": 10
- },
- "clock": {
- // "timezone": "America/New_York",
- "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
- "format-alt": "{:%Y-%m-%d}"
- },
- "cpu": {
- "format": "{usage}% ",
- "tooltip": false
- },
- "memory": {
- "format": "{}% "
- },
- "temperature": {
- // "thermal-zone": 2,
- // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
- "critical-threshold": 80,
- // "format-critical": "{temperatureC}°C {icon}",
- "format": "{temperatureC}°C {icon}",
- "format-icons": ["", "", ""]
- },
- "backlight": {
- // "device": "acpi_video1",
- "format": "{percent}% {icon}",
- "format-icons": ["", ""]
- },
- "battery": {
- "states": {
- // "good": 95,
- "warning": 30,
- "critical": 15
- },
- "format": "{capacity}% {icon}",
- "format-charging": "{capacity}% ",
- "format-plugged": "{capacity}% ",
- "format-alt": "{time} {icon}",
- // "format-good": "", // An empty format will hide the module
- // "format-full": "",
- "format-icons": ["", "", "", "", ""]
- },
- "battery#bat2": {
- "bat": "cw2015-battery",
- "states": {
- // "good": 95,
- "warning": 30,
- "critical": 15
- },
- "format": "{capacity}% {icon}",
- "format-charging": "{capacity}% ",
- "format-plugged": "{capacity}% ",
- "format-alt": "{time} {icon}",
- // "format-good": "", // An empty format will hide the module
- // "format-full": "",
- "format-icons": ["", "", "", "", ""]
- },
- "network": {
- //"interface": "wl*", // (Optional) To force the use of this interface
- "format-wifi": "{essid} ({signalStrength}%) ",
- "format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
- "format-linked": "{ifname} (No IP) ",
- "format-disconnected": "Disconnected ⚠",
- "format-alt": "{ifname}: {ipaddr}/{cidr}",
- "signal": 6
- },
- "pulseaudio": {
- // "scroll-step": 1, // %, can be a float
- "format": "{volume}% {icon} {format_source}",
- "format-bluetooth": "{volume}% {icon} {format_source}",
- "format-bluetooth-muted": " {icon} {format_source}",
- "format-muted": " {format_source}",
- "format-source": "{volume}% ",
- "format-source-muted": "",
- "format-icons": {
- "headphone": "",
- "hands-free": "",
- "headset": "",
- "phone": "",
- "portable": "",
- "car": "",
- "default": ["", "", ""]
- },
- "on-click": "pavucontrol"
- },
- "custom/media": {
- "format": "{icon} {}",
- "return-type": "json",
- "max-length": 40,
- "format-icons": {
- "spotify": "",
- "default": "🎜"
- },
- "escape": true,
- "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
- // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
- }
-}]
diff --git a/waybar/style.css b/waybar/style.css
deleted file mode 100644
index 3b67c93..0000000
--- a/waybar/style.css
+++ /dev/null
@@ -1,245 +0,0 @@
-* {
- border: none;
- border-radius: 0;
- /* `otf-font-awesome` is required to be installed for icons */
- font-family: mononoki Nerd Font Mono;
- font-size: 12px;
- min-height: 24px;
-}
-
-window#waybar {
- background-color: rgba(43, 48, 59, 0.5);
- border-bottom: 3px solid rgba(100, 114, 125, 0.5);
- color: #ffffff;
- transition-property: background-color;
- transition-duration: .5s;
-}
-
-window#waybar.hidden {
- opacity: 1.0;
-}
-
-#custom-dwl_layout {
- color: #EC5800;
-}
-
-#custom-dwl_title {
- color: #017AFF;
-}
-
-#custom-dwl_tag {
- color: #875F00;
-}
-
-#custom-dwl_tag.selected {
- color: #017AFF;
- border-bottom: 3px solid #017AFF;
-}
-
-#custom-dwl_tag.urgent {
- background-color: #FF0000;
- border-bottom: 3px solid #FF0000;
-}
-
-#custom-dwl_tag.active {
- border-bottom: 3px solid #EC5800;
-}
-
-/*
-window#waybar.empty {
- background-color: transparent;
-}
-window#waybar.solo {
- background-color: #FFFFFF;
-}
-*/
-
-window#waybar.termite {
- background-color: #3F3F3F;
-}
-
-window#waybar.chromium {
- background-color: #000000;
- border: none;
-}
-
-#workspaces button {
- padding: 0 5px;
- background-color: transparent;
- color: #ffffff;
- border-bottom: 3px solid transparent;
-}
-
-/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
-#workspaces button:hover {
- background: rgba(0, 0, 0, 0.2);
- box-shadow: inherit;
- border-bottom: 3px solid #ffffff;
-}
-
-#workspaces button.focused {
- background-color: #64727D;
- border-bottom: 3px solid #ffffff;
-}
-
-#workspaces button.urgent {
- background-color: #eb4d4b;
-}
-
-#mode {
- background-color: #64727D;
- border-bottom: 3px solid #ffffff;
-}
-
-#clock,
-#battery,
-#cpu,
-#memory,
-#temperature,
-#backlight,
-#network,
-#pulseaudio,
-#custom-media,
-#tray,
-#mode,
-#idle_inhibitor,
-#mpd {
- padding: 0 10px;
- margin: 0 4px;
- color: #ffffff;
-}
-
-#tags button {
- color: #ddd;
- border-bottom: 3px solid rgba(100, 114, 125, 0.5);
-}
-
-#tags button.occupied {
- color: #ddd;
- border-bottom: 3px solid rgba(100, 114, 125, 0.5);
- background-color: #000;
-}
-
-#tags button.focused {
- color: #ddd;
- border-bottom: 3px solid rgba(100, 114, 125, 0.5);
- background-color: #700;
-}
-
-#clock {
- background-color: #64727D;
-}
-
-#battery {
- background-color: #ffffff;
- color: #000000;
-}
-
-#battery.charging {
- color: #ffffff;
- background-color: #26A65B;
-}
-
-@keyframes blink {
- to {
- background-color: #ffffff;
- color: #000000;
- }
-}
-
-#battery.critical:not(.charging) {
- background-color: #f53c3c;
- color: #ffffff;
- animation-name: blink;
- animation-duration: 0.5s;
- animation-timing-function: linear;
- animation-iteration-count: infinite;
- animation-direction: alternate;
-}
-
-label:focus {
- background-color: #000000;
-}
-
-#cpu {
- background-color: #2ecc71;
- color: #000000;
-}
-
-#memory {
- background-color: #9b59b6;
-}
-
-#backlight {
- background-color: #90b1b1;
-}
-
-#network {
- background-color: #2980b9;
-}
-
-#network.disconnected {
- background-color: #f53c3c;
-}
-
-#pulseaudio {
- background-color: #f1c40f;
- color: #000000;
-}
-
-#pulseaudio.muted {
- background-color: #90b1b1;
- color: #2a5c45;
-}
-
-#custom-media {
- background-color: #66cc99;
- color: #2a5c45;
- min-width: 100px;
-}
-
-#custom-media.custom-spotify {
- background-color: #66cc99;
-}
-
-#custom-media.custom-vlc {
- background-color: #ffa000;
-}
-
-#temperature {
- background-color: #f0932b;
-}
-
-#temperature.critical {
- background-color: #eb4d4b;
-}
-
-#tray {
- background-color: #2980b9;
-}
-
-#idle_inhibitor {
- background-color: #2d3436;
-}
-
-#idle_inhibitor.activated {
- background-color: #ecf0f1;
- color: #2d3436;
-}
-
-#mpd {
- background-color: #66cc99;
- color: #2a5c45;
-}
-
-#mpd.disconnected {
- background-color: #f53c3c;
-}
-
-#mpd.stopped {
- background-color: #90b1b1;
-}
-
-#mpd.paused {
- background-color: #51a37a;
-}
diff --git a/waylock/waylock.toml b/waylock/waylock.toml
deleted file mode 100644
index 5379f1e..0000000
--- a/waylock/waylock.toml
+++ /dev/null
@@ -1,4 +0,0 @@
-[colors]
-init_color = 0x000000
-input_color = 0x005577
-fail_color = 0xdc322f
diff --git a/xmodmap b/xmodmap
deleted file mode 100644
index 59eb9cb..0000000
--- a/xmodmap
+++ /dev/null
@@ -1,26 +0,0 @@
-!
-!Change Caps Lock to Escape
-!
-! remove lock = Caps_Lock
-! keysym Caps_Lock = Escape
-! remove lock = Escape
-!
-! Add Hyper mod instead of left Alt
-!
-keysym Alt_L = Hyper_L
-!
-! Set Hyper to mod3
-!
-remove mod1 = Hyper_L
-remove mod4 = Hyper_L
-add mod3 = Hyper_L
-!!
-!! Set Alt_L to mod3
-!!
-!remove Mod1 = Alt_L
-!add Mod3 = Alt_L
-!
-! Fix backlight keybindings
-!
-!keycode 146 = XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown
-!keycode 151 = XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp
diff --git a/xplr/init.lua b/xplr/init.lua
deleted file mode 100644
index 8840f48..0000000
--- a/xplr/init.lua
+++ /dev/null
@@ -1,2443 +0,0 @@
--- You need to define the script version for compatibility check.
--- See https://github.com/sayanarijit/xplr/wiki/Upgrade-Guide.
---
-package.path = os.getenv("HOME") .. '/.config/xplr/plugins/?/src/init.lua'
-
-version = "0.14.6"
-
-require("dragon").setup{
- mode = "selection_ops",
- key = "D",
- drag_args = "",
- drop_args = "",
- keep_selection = true,
-}
-
-local xplr = xplr
-
--- Config
----- General
------- Show hidden
-xplr.config.general.show_hidden = false
-
------- Read only
-xplr.config.general.read_only = false
-
------- Recover mode
-xplr.config.general.disable_recover_mode = false
-
------- Start FIFO
-xplr.config.general.start_fifo = nil
-
------- Prompt
-xplr.config.general.prompt.format = "❯ "
-xplr.config.general.prompt.style.add_modifiers = nil
-xplr.config.general.prompt.style.sub_modifiers = nil
-xplr.config.general.prompt.style.bg = nil
-xplr.config.general.prompt.style.fg = nil
-
------- Cursor
-xplr.config.general.cursor.format = "█"
-xplr.config.general.cursor.style.add_modifiers = nil
-xplr.config.general.cursor.style.bg = nil
-xplr.config.general.cursor.style.fg = nil
-xplr.config.general.cursor.style.sub_modifiers = nil
-
------- Initial layout
-xplr.config.general.initial_layout = "default"
-
------- Initial mode
-xplr.config.general.initial_mode = "default"
-
------- Initial sorting
-xplr.config.general.initial_sorting = {
- { sorter = "ByCanonicalIsDir", reverse = true },
- { sorter = "ByIRelativePath", reverse = false },
-}
-
------- Logs
--------- Error
-xplr.config.general.logs.error.format = "ERROR"
-xplr.config.general.logs.error.style.add_modifiers = nil
-xplr.config.general.logs.error.style.sub_modifiers = nil
-xplr.config.general.logs.error.style.bg = nil
-xplr.config.general.logs.error.style.fg = "Red"
-
--------- Info
-xplr.config.general.logs.info.format = "INFO"
-xplr.config.general.logs.info.style.add_modifiers = nil
-xplr.config.general.logs.info.style.sub_modifiers = nil
-xplr.config.general.logs.info.style.bg = nil
-xplr.config.general.logs.info.style.fg = "LightBlue"
-
--------- Success
-xplr.config.general.logs.success.format = "SUCCESS"
-xplr.config.general.logs.success.style.add_modifiers = nil
-xplr.config.general.logs.success.style.bg = nil
-xplr.config.general.logs.success.style.fg = "Green"
-xplr.config.general.logs.success.style.sub_modifiers = nil
-
--------- Warning
-xplr.config.general.logs.warning.format = "WARNING"
-xplr.config.general.logs.warning.style.add_modifiers = nil
-xplr.config.general.logs.warning.style.bg = nil
-xplr.config.general.logs.warning.style.fg = "Yellow"
-xplr.config.general.logs.warning.style.sub_modifiers = nil
-
------- Default UI
-xplr.config.general.default_ui.prefix = " "
-xplr.config.general.default_ui.suffix = ""
-xplr.config.general.default_ui.style.add_modifiers = nil
-xplr.config.general.default_ui.style.sub_modifiers = nil
-xplr.config.general.default_ui.style.bg = nil
-xplr.config.general.default_ui.style.fg = nil
-
------- Focus UI
-xplr.config.general.focus_ui.prefix = "▸["
-xplr.config.general.focus_ui.suffix = "]"
-xplr.config.general.focus_ui.style.add_modifiers = { "Bold" }
-xplr.config.general.focus_ui.style.sub_modifiers = nil
-xplr.config.general.focus_ui.style.bg = nil
-xplr.config.general.focus_ui.style.fg = "Blue"
-
------- Selection UI
-xplr.config.general.selection_ui.prefix = " {"
-xplr.config.general.selection_ui.suffix = "}"
-xplr.config.general.selection_ui.style.add_modifiers = { "Bold" }
-xplr.config.general.selection_ui.style.sub_modifiers = nil
-xplr.config.general.selection_ui.style.bg = nil
-xplr.config.general.selection_ui.style.fg = "LightGreen"
-
------- Sort & filter UI
--------- Separator
-xplr.config.general.sort_and_filter_ui.separator.format = " › "
-xplr.config.general.sort_and_filter_ui.separator.style.add_modifiers = { "Dim" }
-xplr.config.general.sort_and_filter_ui.separator.style.bg = nil
-xplr.config.general.sort_and_filter_ui.separator.style.fg = nil
-xplr.config.general.sort_and_filter_ui.separator.style.sub_modifiers = nil
-
--------- Default identidier
-xplr.config.general.sort_and_filter_ui.default_identifier.format = nil
-xplr.config.general.sort_and_filter_ui.default_identifier.style.add_modifiers =
- {
- "Bold",
- }
-xplr.config.general.sort_and_filter_ui.default_identifier.style.bg = nil
-xplr.config.general.sort_and_filter_ui.default_identifier.style.fg = nil
-xplr.config.general.sort_and_filter_ui.default_identifier.style.sub_modifiers =
- nil
-
--------- Filter identifiers
-xplr.config.general.sort_and_filter_ui.filter_identifiers = {
- AbsolutePathDoesContain = {
- format = "abs=~",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- AbsolutePathDoesEndWith = {
- format = "abs=$",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- AbsolutePathDoesNotContain = {
- format = "abs!~",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- AbsolutePathDoesNotEndWith = {
- format = "abs!$",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- AbsolutePathDoesNotStartWith = {
- format = "abs!^",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- AbsolutePathDoesStartWith = {
- format = "abs=^",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- AbsolutePathIs = {
- format = "abs==",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- AbsolutePathIsNot = {
- format = "abs!=",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- IAbsolutePathDoesContain = {
- format = "[i]abs=~",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- IAbsolutePathDoesEndWith = {
- format = "[i]abs=$",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- IAbsolutePathDoesNotContain = {
- format = "[i]abs!~",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- IAbsolutePathDoesNotEndWith = {
- format = "[i]abs!$",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- IAbsolutePathDoesNotStartWith = {
- format = "[i]abs!^",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- IAbsolutePathDoesStartWith = {
- format = "[i]abs=^",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- IAbsolutePathIs = {
- format = "[i]abs==",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- IAbsolutePathIsNot = {
- format = "[i]abs!=",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- IRelativePathDoesContain = {
- format = "[i]rel=~",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- IRelativePathDoesEndWith = {
- format = "[i]rel=$",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- IRelativePathDoesNotContain = {
- format = "[i]rel!~",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- IRelativePathDoesNotEndWith = {
- format = "[i]rel!$",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- IRelativePathDoesNotStartWith = {
- format = "[i]rel!^",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- IRelativePathDoesStartWith = {
- format = "[i]rel=^",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- IRelativePathIs = {
- format = "[i]rel==",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- IRelativePathIsNot = {
- format = "[i]rel!=",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- RelativePathDoesContain = {
- format = "rel=~",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- RelativePathDoesEndWith = {
- format = "rel=$",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- RelativePathDoesNotContain = {
- format = "rel!~",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- RelativePathDoesNotEndWith = {
- format = "rel!$",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- RelativePathDoesNotStartWith = {
- format = "rel!^",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- RelativePathDoesStartWith = {
- format = "rel=^",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- RelativePathIs = {
- format = "rel==",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- RelativePathIsNot = {
- format = "rel!=",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
-}
-
--------- Sort direction identifiers
-xplr.config.general.sort_and_filter_ui.sort_direction_identifiers.forward.format =
- "↓"
-xplr.config.general.sort_and_filter_ui.sort_direction_identifiers.forward.style.add_modifiers =
- nil
-xplr.config.general.sort_and_filter_ui.sort_direction_identifiers.forward.style.bg =
- nil
-xplr.config.general.sort_and_filter_ui.sort_direction_identifiers.forward.style.fg =
- nil
-xplr.config.general.sort_and_filter_ui.sort_direction_identifiers.forward.style.sub_modifiers =
- nil
-xplr.config.general.sort_and_filter_ui.sort_direction_identifiers.reverse.format =
- "↑"
-xplr.config.general.sort_and_filter_ui.sort_direction_identifiers.reverse.style.add_modifiers =
- nil
-xplr.config.general.sort_and_filter_ui.sort_direction_identifiers.reverse.style.bg =
- nil
-xplr.config.general.sort_and_filter_ui.sort_direction_identifiers.reverse.style.fg =
- nil
-xplr.config.general.sort_and_filter_ui.sort_direction_identifiers.reverse.style.sub_modifiers =
- nil
-
--------- Sorter identifiers
-xplr.config.general.sort_and_filter_ui.sorter_identifiers = {
- ByCanonicalAbsolutePath = {
- format = "[c]abs",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByCanonicalExtension = {
- format = "[c]ext",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByCanonicalIsDir = {
- format = "[c]dir",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByCanonicalIsFile = {
- format = "[c]file",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByCanonicalIsReadonly = {
- format = "[c]ro",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByCanonicalMimeEssence = {
- format = "[c]mime",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByCanonicalSize = {
- format = "[c]size",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByExtension = {
- format = "ext",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByICanonicalAbsolutePath = {
- format = "[ci]abs",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByIRelativePath = {
- format = "[i]rel",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByISymlinkAbsolutePath = {
- format = "[si]abs",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByIsBroken = {
- format = "⨯",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByIsDir = {
- format = "dir",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByIsFile = {
- format = "file",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByIsReadonly = {
- format = "ro",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByIsSymlink = {
- format = "sym",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByMimeEssence = {
- format = "mime",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- ByRelativePath = {
- format = "rel",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- BySize = {
- format = "size",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- BySymlinkAbsolutePath = {
- format = "[s]abs",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- BySymlinkExtension = {
- format = "[s]ext",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- BySymlinkIsDir = {
- format = "[s]dir",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- BySymlinkIsFile = {
- format = "[s]file",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- BySymlinkIsReadonly = {
- format = "[s]ro",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- BySymlinkMimeEssence = {
- format = "[s]mime",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- BySymlinkSize = {
- format = "[s]size",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
-}
-
------- Panel UI
--------- Default
-xplr.config.general.panel_ui.default.borders = {
- "Top",
- "Right",
- "Bottom",
- "Left",
-}
-xplr.config.general.panel_ui.default.style.add_modifiers = nil
-xplr.config.general.panel_ui.default.style.bg = nil
-xplr.config.general.panel_ui.default.style.fg = nil
-xplr.config.general.panel_ui.default.style.sub_modifiers = nil
-xplr.config.general.panel_ui.default.title.format = nil
-xplr.config.general.panel_ui.default.title.style.add_modifiers = nil
-xplr.config.general.panel_ui.default.title.style.bg = nil
-xplr.config.general.panel_ui.default.title.style.fg = nil
-xplr.config.general.panel_ui.default.title.style.sub_modifiers = nil
-
--------- Help menu
-xplr.config.general.panel_ui.help_menu.borders = nil
-xplr.config.general.panel_ui.help_menu.style.add_modifiers = nil
-xplr.config.general.panel_ui.help_menu.style.bg = nil
-xplr.config.general.panel_ui.help_menu.style.fg = nil
-xplr.config.general.panel_ui.help_menu.style.sub_modifiers = nil
-xplr.config.general.panel_ui.help_menu.title.format = nil
-xplr.config.general.panel_ui.help_menu.title.style.add_modifiers = nil
-xplr.config.general.panel_ui.help_menu.title.style.bg = nil
-xplr.config.general.panel_ui.help_menu.title.style.fg = nil
-xplr.config.general.panel_ui.help_menu.title.style.sub_modifiers = nil
-
--------- Input & log
-xplr.config.general.panel_ui.input_and_logs.borders = nil
-xplr.config.general.panel_ui.input_and_logs.style.add_modifiers = nil
-xplr.config.general.panel_ui.input_and_logs.style.bg = nil
-xplr.config.general.panel_ui.input_and_logs.style.fg = nil
-xplr.config.general.panel_ui.input_and_logs.style.sub_modifiers = nil
-xplr.config.general.panel_ui.input_and_logs.title.format = nil
-xplr.config.general.panel_ui.input_and_logs.title.style.add_modifiers = nil
-xplr.config.general.panel_ui.input_and_logs.title.style.bg = nil
-xplr.config.general.panel_ui.input_and_logs.title.style.fg = nil
-xplr.config.general.panel_ui.input_and_logs.title.style.sub_modifiers = nil
-
--------- Selection
-xplr.config.general.panel_ui.selection.borders = nil
-xplr.config.general.panel_ui.selection.style.add_modifiers = nil
-xplr.config.general.panel_ui.selection.style.bg = nil
-xplr.config.general.panel_ui.selection.style.fg = nil
-xplr.config.general.panel_ui.selection.style.sub_modifiers = nil
-xplr.config.general.panel_ui.selection.title.format = nil
-xplr.config.general.panel_ui.selection.title.style.add_modifiers = nil
-xplr.config.general.panel_ui.selection.title.style.bg = nil
-xplr.config.general.panel_ui.selection.title.style.fg = nil
-xplr.config.general.panel_ui.selection.title.style.sub_modifiers = nil
-
--------- Sort and filter
-xplr.config.general.panel_ui.sort_and_filter.borders = nil
-xplr.config.general.panel_ui.sort_and_filter.style.add_modifiers = nil
-xplr.config.general.panel_ui.sort_and_filter.style.bg = nil
-xplr.config.general.panel_ui.sort_and_filter.style.fg = nil
-xplr.config.general.panel_ui.sort_and_filter.style.sub_modifiers = nil
-xplr.config.general.panel_ui.sort_and_filter.title.format = nil
-xplr.config.general.panel_ui.sort_and_filter.title.style.add_modifiers = nil
-xplr.config.general.panel_ui.sort_and_filter.title.style.bg = nil
-xplr.config.general.panel_ui.sort_and_filter.title.style.fg = nil
-xplr.config.general.panel_ui.sort_and_filter.title.style.sub_modifiers = nil
-
--------- Table
-xplr.config.general.panel_ui.table.borders = nil
-xplr.config.general.panel_ui.table.style.add_modifiers = nil
-xplr.config.general.panel_ui.table.style.bg = nil
-xplr.config.general.panel_ui.table.style.fg = nil
-xplr.config.general.panel_ui.table.style.sub_modifiers = nil
-xplr.config.general.panel_ui.table.title.format = nil
-xplr.config.general.panel_ui.table.title.style.add_modifiers = nil
-xplr.config.general.panel_ui.table.title.style.bg = nil
-xplr.config.general.panel_ui.table.title.style.fg = nil
-xplr.config.general.panel_ui.table.title.style.sub_modifiers = nil
-
------- Table
-xplr.config.general.table.style.add_modifiers = nil
-xplr.config.general.table.style.bg = nil
-xplr.config.general.table.style.fg = nil
-xplr.config.general.table.style.sub_modifiers = nil
-
--------- Col spacing
-xplr.config.general.table.col_spacing = 1
-
--------- Col widths
-xplr.config.general.table.col_widths = {
- { Percentage = 10 },
- { Percentage = 50 },
- { Percentage = 10 },
- { Percentage = 10 },
- { Percentage = 20 },
-}
-
--------- Header
-xplr.config.general.table.header.cols = {
- {
- format = " index",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- {
- format = "╭──── path",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- {
- format = "permissions",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- {
- format = "size",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- {
- format = "type",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
-}
-xplr.config.general.table.header.height = 1
-xplr.config.general.table.header.style.add_modifiers = { "Bold" }
-xplr.config.general.table.header.style.sub_modifiers = nil
-xplr.config.general.table.header.style.bg = nil
-xplr.config.general.table.header.style.fg = nil
-
--------- Row
-xplr.config.general.table.row.cols = {
- {
- format = "builtin.fmt_general_table_row_cols_0",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- {
- format = "builtin.fmt_general_table_row_cols_1",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- {
- format = "builtin.fmt_general_table_row_cols_2",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- {
- format = "builtin.fmt_general_table_row_cols_3",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- {
- format = "builtin.fmt_general_table_row_cols_4",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
-}
-xplr.config.general.table.row.height = 0
-xplr.config.general.table.row.style.add_modifiers = nil
-xplr.config.general.table.row.style.bg = nil
-xplr.config.general.table.row.style.fg = nil
-xplr.config.general.table.row.style.sub_modifiers = nil
-
--------- Tree
-xplr.config.general.table.tree = {
- {
- format = "├─",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- {
- format = "├─",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
- {
- format = "╰─",
- style = { add_modifiers = nil, bg = nil, fg = nil, sub_modifiers = nil },
- },
-}
-
----- Node types
------- Directory
-xplr.config.node_types.directory.meta.icon = "ð"
-xplr.config.node_types.directory.style.add_modifiers = { "Bold" }
-xplr.config.node_types.directory.style.sub_modifiers = nil
-xplr.config.node_types.directory.style.bg = nil
-xplr.config.node_types.directory.style.fg = "Cyan"
-
------- File
-xplr.config.node_types.file.meta.icon = "ƒ"
-xplr.config.node_types.file.style.add_modifiers = nil
-xplr.config.node_types.file.style.sub_modifiers = nil
-xplr.config.node_types.file.style.bg = nil
-xplr.config.node_types.file.style.fg = nil
-
------- Symlink
-xplr.config.node_types.symlink.meta.icon = "§"
-xplr.config.node_types.symlink.style.add_modifiers = { "Italic" }
-xplr.config.node_types.symlink.style.sub_modifiers = nil
-xplr.config.node_types.symlink.style.bg = nil
-xplr.config.node_types.symlink.style.fg = "Magenta"
-
------- Mime essence
-xplr.config.node_types.mime_essence = {}
-
------- Extension
-xplr.config.node_types.extension = {}
-
------- Special
-xplr.config.node_types.special = {}
-
--- Layouts
----- Builtin
------- Default
-xplr.config.layouts.builtin.default = {
- Horizontal = {
- config = {
- margin = nil,
- horizontal_margin = 0,
- vertical_margin = 0,
- constraints = {
- {
- Percentage = 70,
- },
- {
- Percentage = 30,
- },
- },
- },
- splits = {
- {
- Vertical = {
- config = {
- margin = 0,
- horizontal_margin = nil,
- vertical_margin = nil,
- constraints = {
- {
- Length = 3,
- },
- {
- Min = 1,
- },
- {
- Length = 3,
- },
- },
- },
- splits = {
- "SortAndFilter",
- "Table",
- "InputAndLogs",
- },
- },
- },
- {
- Vertical = {
- config = {
- margin = 0,
- horizontal_margin = nil,
- vertical_margin = nil,
- constraints = {
- {
- Percentage = 50,
- },
- {
- Percentage = 50,
- },
- },
- },
- splits = {
- "Selection",
- "HelpMenu",
- },
- },
- },
- },
- },
-}
-
------- No help
-xplr.config.layouts.builtin.no_help = {
- Horizontal = {
- config = {
- margin = nil,
- horizontal_margin = nil,
- vertical_margin = nil,
- constraints = {
- {
- Percentage = 70,
- },
- {
- Percentage = 30,
- },
- },
- },
- splits = {
- {
- Vertical = {
- config = {
- margin = nil,
- horizontal_margin = nil,
- vertical_margin = nil,
- constraints = {
- {
- Length = 3,
- },
- {
- Min = 1,
- },
- {
- Length = 3,
- },
- },
- },
- splits = {
- "SortAndFilter",
- "Table",
- "InputAndLogs",
- },
- },
- },
- "Selection",
- },
- },
-}
-
------- No selection
-xplr.config.layouts.builtin.no_selection = {
- Horizontal = {
- config = {
- margin = nil,
- horizontal_margin = nil,
- vertical_margin = nil,
- constraints = {
- {
- Percentage = 70,
- },
- {
- Percentage = 30,
- },
- },
- },
- splits = {
- {
- Vertical = {
- config = {
- margin = nil,
- horizontal_margin = nil,
- vertical_margin = nil,
- constraints = {
- {
- Length = 3,
- },
- {
- Min = 1,
- },
- {
- Length = 3,
- },
- },
- },
- splits = {
- "SortAndFilter",
- "Table",
- "InputAndLogs",
- },
- },
- },
- "HelpMenu",
- },
- },
-}
-
------- No help, no selection
-xplr.config.layouts.builtin.no_help_no_selection = {
- Vertical = {
- config = {
- margin = nil,
- horizontal_margin = nil,
- vertical_margin = nil,
- constraints = {
- {
- Length = 3,
- },
- {
- Min = 1,
- },
- {
- Length = 3,
- },
- },
- },
- splits = {
- "SortAndFilter",
- "Table",
- "InputAndLogs",
- },
- },
-}
-
----- Custom
-xplr.config.layouts.custom = {}
-
--- Modes
----- Builtin
------- Default
-xplr.config.modes.builtin.default = {
- name = "default",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- ["#"] = {
- help = nil,
- messages = { "PrintAppStateAndQuit" },
- },
- ["."] = {
- help = "show hidden",
- messages = {
- {
- ToggleNodeFilter = {
- filter = "RelativePathDoesNotStartWith",
- input = ".",
- },
- },
- "ExplorePwdAsync",
- },
- },
- [":"] = {
- help = "action",
- messages = {
- "PopMode",
- {
- SwitchModeBuiltin = "action",
- },
- },
- },
- ["?"] = {
- help = "global help menu",
- messages = {
- {
- BashExec = [===[
- [ -z "$PAGER" ] && PAGER="less -+F"
- cat -- "${XPLR_PIPE_GLOBAL_HELP_MENU_OUT}" | ${PAGER:?}
- ]===],
- },
- },
- },
- ["G"] = {
- help = "go to bottom",
- messages = { "PopMode", "FocusLast" },
- },
- ["ctrl-a"] = {
- help = "select/unselect all",
- messages = { "ToggleSelectAll" },
- },
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- ["ctrl-f"] = {
- help = "search",
- messages = {
- "PopMode",
- { SwitchModeBuiltin = "search" },
- { SetInputBuffer = "" },
- "ExplorePwdAsync",
- },
- },
- ["ctrl-i"] = {
- help = "next visited path",
- messages = { "NextVisitedPath" },
- },
- ["ctrl-o"] = {
- help = "last visited path",
- messages = { "LastVisitedPath" },
- },
- ["ctrl-r"] = {
- help = "refresh screen",
- messages = { "ClearScreen" },
- },
- ["ctrl-u"] = {
- help = "clear selection",
- messages = { "ClearSelection" },
- },
- ["ctrl-w"] = {
- help = "switch layout",
- messages = {
- {
- SwitchModeBuiltin = "switch_layout",
- },
- },
- },
- ["d"] = {
- help = "delete",
- messages = {
- "PopMode",
- {
- SwitchModeBuiltin = "delete",
- },
- },
- },
- down = {
- help = "down",
- messages = { "FocusNext" },
- },
- enter = {
- help = "quit with result",
- messages = { "PrintResultAndQuit" },
- },
- esc = {
- help = nil,
- messages = {},
- },
- ["f"] = {
- help = "filter",
- messages = {
- "PopMode",
- { SwitchModeBuiltin = "filter" },
- },
- },
- ["g"] = {
- help = "go to",
- messages = {
- "PopMode",
- { SwitchModeBuiltin = "go_to" },
- },
- },
- left = {
- help = "back",
- messages = { "Back" },
- },
- ["q"] = {
- help = "quit",
- messages = { "Quit" },
- },
- ["r"] = {
- help = "rename",
- messages = {
- "PopMode",
- { SwitchModeBuiltin = "rename" },
- {
- BashExecSilently = [===[
- echo SetInputBuffer: "'"$(basename "${XPLR_FOCUS_PATH}")"'" >> "${XPLR_PIPE_MSG_IN:?}"
- ]===],
- },
- },
- },
- right = {
- help = "enter",
- messages = { "Enter" },
- },
- ["s"] = {
- help = "sort",
- messages = {
- "PopMode",
- { SwitchModeBuiltin = "sort" },
- },
- },
- space = {
- help = "toggle selection",
- messages = { "ToggleSelection", "FocusNext" },
- },
- up = {
- help = "up",
- messages = { "FocusPrevious" },
- },
- ["~"] = {
- help = "go home",
- messages = {
- {
- BashExecSilently = [===[
- echo ChangeDirectory: "'"${HOME:?}"'" >> "${XPLR_PIPE_MSG_IN:?}"
- ]===],
- },
- },
- },
- },
- on_alphabet = nil,
- on_number = {
- help = "input",
- messages = {
- "PopMode",
- { SwitchModeBuiltin = "number" },
- "BufferInputFromKey",
- },
- },
- on_special_character = nil,
- default = nil,
- },
-}
-
-xplr.config.modes.builtin.default.key_bindings.on_key["tab"] =
- xplr.config.modes.builtin.default.key_bindings.on_key["ctrl-i"]
-
-xplr.config.modes.builtin.default.key_bindings.on_key["v"] =
- xplr.config.modes.builtin.default.key_bindings.on_key.space
-
-xplr.config.modes.builtin.default.key_bindings.on_key["V"] =
- xplr.config.modes.builtin.default.key_bindings.on_key["ctrl-a"]
-
-xplr.config.modes.builtin.default.key_bindings.on_key["/"] =
- xplr.config.modes.builtin.default.key_bindings.on_key["ctrl-f"]
-
-xplr.config.modes.builtin.default.key_bindings.on_key["h"] =
- xplr.config.modes.builtin.default.key_bindings.on_key.left
-
-xplr.config.modes.builtin.default.key_bindings.on_key["j"] =
- xplr.config.modes.builtin.default.key_bindings.on_key.down
-
-xplr.config.modes.builtin.default.key_bindings.on_key["k"] =
- xplr.config.modes.builtin.default.key_bindings.on_key.up
-
-xplr.config.modes.builtin.default.key_bindings.on_key["l"] =
- xplr.config.modes.builtin.default.key_bindings.on_key.right
-
------- Recover
-xplr.config.modes.builtin.recover = {
- name = "recover",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- esc = {
- help = "escape",
- messages = { "PopMode" },
- },
- },
- on_alphabet = nil,
- on_number = nil,
- on_special_character = nil,
- default = {
- help = nil,
- messages = {},
- },
- },
-}
-
------- Selection ops
-xplr.config.modes.builtin.selection_ops = {
- name = "selection ops",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- ["c"] = {
- help = "copy here",
- messages = {
- {
- BashExec = [===[
- (while IFS= read -r line; do
- if cp -vr -- "${line:?}" ./; then
- echo LogSuccess: $line copied to $PWD >> "${XPLR_PIPE_MSG_IN:?}"
- else
- echo LogError: Failed to copy $line to $PWD >> "${XPLR_PIPE_MSG_IN:?}"
- fi
- done < "${XPLR_PIPE_SELECTION_OUT:?}")
- echo ExplorePwdAsync >> "${XPLR_PIPE_MSG_IN:?}"
- echo ClearSelection >> "${XPLR_PIPE_MSG_IN:?}"
- read -p "[enter to continue]"
- ]===],
- },
- "PopMode",
- },
- },
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- esc = {
- help = "cancel",
- messages = { "PopMode" },
- },
- ["m"] = {
- help = "move here",
- messages = {
- {
- BashExec = [===[
- (while IFS= read -r line; do
- if mv -v -- "${line:?}" ./; then
- echo LogSuccess: $line moved to $PWD >> "${XPLR_PIPE_MSG_IN:?}"
- else
- echo LogError: Failed to move $line to $PWD >> "${XPLR_PIPE_MSG_IN:?}"
- fi
- done < "${XPLR_PIPE_SELECTION_OUT:?}")
- echo ExplorePwdAsync >> "${XPLR_PIPE_MSG_IN:?}"
- read -p "[enter to continue]"
- ]===],
- },
- "PopMode",
- },
- },
- ["x"] = {
- help = "open in gui",
- messages = {
- {
- BashExecSilently = [===[
- if [ -z "$OPENER" ]; then
- if command -v xdg-open; then
- OPENER=xdg-open
- elif command -v open; then
- OPENER=open
- else
- echo 'LogError: $OPENER not found' >> "${XPLR_PIPE_MSG_IN:?}"
- exit 1
- fi
- fi
- (while IFS= read -r line; do
- $OPENER "${line:?}" > /dev/null 2>&1
- done < "${XPLR_PIPE_RESULT_OUT:?}")
- ]===],
- },
- "ClearScreen",
- "PopMode",
- },
- },
- },
- on_alphabet = nil,
- on_number = nil,
- on_special_character = nil,
- default = nil,
- },
-}
-
------- Create
-xplr.config.modes.builtin.create = {
- name = "create",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- ["d"] = {
- help = "create directory",
- messages = {
- "PopMode",
- {
- SwitchModeBuiltin = "create directory",
- },
- {
- SetInputBuffer = "",
- },
- },
- },
- esc = {
- help = "cancel",
- messages = { "PopMode" },
- },
- ["f"] = {
- help = "create file",
- messages = {
- "PopMode",
- {
- SwitchModeBuiltin = "create file",
- },
- {
- SetInputBuffer = "",
- },
- },
- },
- },
- on_alphabet = nil,
- on_number = nil,
- on_special_character = nil,
- default = nil,
- },
-}
-
------- Create directory
-xplr.config.modes.builtin.create_directory = {
- name = "create directory",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- backspace = {
- help = "remove last character",
- messages = { "RemoveInputBufferLastCharacter" },
- },
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- ["ctrl-u"] = {
- help = "remove line",
- messages = {
- {
- SetInputBuffer = "",
- },
- },
- },
- ["ctrl-w"] = {
- help = "remove last word",
- messages = { "RemoveInputBufferLastWord" },
- },
- enter = {
- help = "create directory",
- messages = {
- {
- BashExecSilently = [===[
- PTH="$XPLR_INPUT_BUFFER"
- if [ "${PTH}" ]; then
- mkdir -p -- "${PTH:?}" \
- && echo "SetInputBuffer: ''" >> "${XPLR_PIPE_MSG_IN:?}" \
- && echo ExplorePwd >> "${XPLR_PIPE_MSG_IN:?}" \
- && echo LogSuccess: $PTH created >> "${XPLR_PIPE_MSG_IN:?}" \
- && echo FocusByFileName: "'"$PTH"'" >> "${XPLR_PIPE_MSG_IN:?}"
- else
- echo PopMode >> "${XPLR_PIPE_MSG_IN:?}"
- fi
- ]===],
- },
- },
- },
- esc = {
- help = "cancel",
- messages = { "PopMode" },
- },
- },
- on_alphabet = nil,
- on_number = nil,
- on_special_character = nil,
- default = {
- help = nil,
- messages = { "BufferInputFromKey" },
- },
- },
-}
-
------- Create file
-xplr.config.modes.builtin.create_file = {
- name = "create file",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- backspace = {
- help = "remove last character",
- messages = { "RemoveInputBufferLastCharacter" },
- },
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- ["ctrl-u"] = {
- help = "remove line",
- messages = {
- {
- SetInputBuffer = "",
- },
- },
- },
- ["ctrl-w"] = {
- help = "remove last word",
- messages = { "RemoveInputBufferLastWord" },
- },
- enter = {
- help = "create file",
- messages = {
- {
- BashExecSilently = [===[
- PTH="$XPLR_INPUT_BUFFER"
- if [ "${PTH}" ]; then
- touch -- "${PTH:?}" \
- && echo "SetInputBuffer: ''" >> "${XPLR_PIPE_MSG_IN:?}" \
- && echo LogSuccess: $PTH created >> "${XPLR_PIPE_MSG_IN:?}" \
- && echo ExplorePwd >> "${XPLR_PIPE_MSG_IN:?}" \
- && echo FocusByFileName: "'"$PTH"'" >> "${XPLR_PIPE_MSG_IN:?}"
- else
- echo PopMode >> "${XPLR_PIPE_MSG_IN:?}"
- fi
- ]===],
- },
- },
- },
- esc = {
- help = "cancel",
- messages = { "PopMode" },
- },
- },
- on_alphabet = nil,
- on_number = nil,
- on_special_character = nil,
- default = {
- help = nil,
- messages = { "BufferInputFromKey" },
- },
- },
-}
-
------- Number
-xplr.config.modes.builtin.number = {
- name = "number",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- backspace = {
- help = "remove last character",
- messages = { "RemoveInputBufferLastCharacter" },
- },
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- ["ctrl-u"] = {
- help = "remove line",
- messages = {
- {
- SetInputBuffer = "",
- },
- },
- },
- ["ctrl-w"] = {
- help = "remove last word",
- messages = { "RemoveInputBufferLastWord" },
- },
- down = {
- help = "to down",
- messages = { "FocusNextByRelativeIndexFromInput", "PopMode" },
- },
- enter = {
- help = "to index",
- messages = { "FocusByIndexFromInput", "PopMode" },
- },
- esc = {
- help = "cancel",
- messages = { "PopMode" },
- },
- up = {
- help = "to up",
- messages = { "FocusPreviousByRelativeIndexFromInput", "PopMode" },
- },
- },
- on_alphabet = nil,
- on_number = {
- help = "input",
- messages = { "BufferInputFromKey" },
- },
- on_special_character = nil,
- default = nil,
- },
-}
-
-xplr.config.modes.builtin.number.key_bindings.on_key["j"] =
- xplr.config.modes.builtin.number.key_bindings.on_key.down
-xplr.config.modes.builtin.number.key_bindings.on_key["k"] =
- xplr.config.modes.builtin.number.key_bindings.on_key.up
-
------- Go to
-xplr.config.modes.builtin.go_to = {
- name = "go to",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- esc = {
- help = "cancel",
- messages = { "PopMode" },
- },
- ["f"] = {
- help = "follow symlink",
- messages = { "FollowSymlink", "PopMode" },
- },
- ["g"] = {
- help = "top",
- messages = { "FocusFirst", "PopMode" },
- },
- ["x"] = {
- help = "open in gui",
- messages = {
- {
- BashExecSilently = [===[
- if [ -z "$OPENER" ]; then
- if command -v xdg-open; then
- OPENER=xdg-open
- elif command -v open; then
- OPENER=open
- else
- echo 'LogError: $OPENER not found' >> "${XPLR_PIPE_MSG_IN:?}"
- exit 1
- fi
- fi
- $OPENER "${XPLR_FOCUS_PATH:?}" > /dev/null 2>&1
- ]===],
- },
- "ClearScreen",
- "PopMode",
- },
- },
- },
- on_alphabet = nil,
- on_number = nil,
- on_special_character = nil,
- default = nil,
- },
-}
-
------- Rename
-xplr.config.modes.builtin.rename = {
- name = "rename",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- backspace = {
- help = "remove last character",
- messages = { "RemoveInputBufferLastCharacter" },
- },
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- ["ctrl-u"] = {
- help = "remove line",
- messages = {
- {
- SetInputBuffer = "",
- },
- },
- },
- ["ctrl-w"] = {
- help = "remove last word",
- messages = { "RemoveInputBufferLastWord" },
- },
- enter = {
- help = "rename",
- messages = {
- {
- BashExecSilently = [===[
- SRC="${XPLR_FOCUS_PATH:?}"
- TARGET="${XPLR_INPUT_BUFFER:?}"
- mv -- "${SRC:?}" "${TARGET:?}" \
- && echo ExplorePwd >> "${XPLR_PIPE_MSG_IN:?}" \
- && echo FocusByFileName: "'"$TARGET"'" >> "${XPLR_PIPE_MSG_IN:?}" \
- && echo LogSuccess: $SRC renamed to $TARGET >> "${XPLR_PIPE_MSG_IN:?}"
- ]===],
- },
- "PopMode",
- },
- },
- esc = {
- help = "cancel",
- messages = { "PopMode" },
- },
- },
- on_alphabet = nil,
- on_number = nil,
- on_special_character = nil,
- default = {
- help = nil,
- messages = { "BufferInputFromKey" },
- },
- },
-}
-
------- Delete
-xplr.config.modes.builtin.delete = {
- name = "delete",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- ["D"] = {
- help = "force delete",
- messages = {
- {
- BashExec = [===[
- (while IFS= read -r line; do
- if rm -rfv -- "${line:?}"; then
- echo LogSuccess: $line deleted >> "${XPLR_PIPE_MSG_IN:?}"
- else
- echo LogError: Failed to delete $line >> "${XPLR_PIPE_MSG_IN:?}"
- fi
- done < "${XPLR_PIPE_RESULT_OUT:?}")
- echo ExplorePwdAsync >> "${XPLR_PIPE_MSG_IN:?}"
- read -p "[enter to continue]"
- ]===],
- },
- "PopMode",
- },
- },
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- ["d"] = {
- help = "delete",
- messages = {
- {
- BashExec = [===[
- (while IFS= read -r line; do
- if [ -d "$line" ] && [ ! -L "$line" ]; then
- if rmdir -v -- "${line:?}"; then
- echo LogSuccess: $line deleted >> "${XPLR_PIPE_MSG_IN:?}"
- else
- echo LogError: Failed to delete $line >> "${XPLR_PIPE_MSG_IN:?}"
- fi
- else
- if rm -v -- "${line:?}"; then
- echo LogSuccess: $line deleted >> "${XPLR_PIPE_MSG_IN:?}"
- else
- echo LogError: Failed to delete $line >> "${XPLR_PIPE_MSG_IN:?}"
- fi
- fi
- done < "${XPLR_PIPE_RESULT_OUT:?}")
- echo ExplorePwdAsync >> "${XPLR_PIPE_MSG_IN:?}"
- read -p "[enter to continue]"
- ]===],
- },
- "PopMode",
- },
- },
- esc = {
- help = "cancel",
- messages = { "PopMode" },
- },
- },
- on_alphabet = nil,
- on_number = nil,
- on_special_character = nil,
- default = nil,
- },
-}
-
------- Action
-xplr.config.modes.builtin.action = {
- name = "action to",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- ["!"] = {
- help = "shell",
- messages = {
- {
- Call = {
- command = "zsh",
- args = { "-i" },
- },
- },
- "ExplorePwdAsync",
- "PopMode",
- },
- },
- ["c"] = {
- help = "create",
- messages = {
- "PopMode",
- {
- SwitchModeBuiltin = "create",
- },
- },
- },
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- ["e"] = {
- help = "open in editor",
- messages = {
- {
- BashExec = [===[
- ${EDITOR:-vi} "${XPLR_FOCUS_PATH:?}"
- ]===],
- },
- "PopMode",
- },
- },
- esc = {
- help = "cancel",
- messages = { "PopMode" },
- },
- ["l"] = {
- help = "logs",
- messages = {
- {
- BashExec = [===[
- [ -z "$PAGER" ] && PAGER="less -+F"
- cat -- "${XPLR_PIPE_LOGS_OUT}" | ${PAGER:?}
- ]===],
- },
- "PopMode",
- },
- },
- ["s"] = {
- help = "selection operations",
- messages = {
- "PopMode",
- {
- SwitchModeBuiltin = "selection_ops",
- },
- },
- },
- ["m"] = {
- help = "toggle mouse",
- messages = {
- "PopMode",
- "ToggleMouse",
- },
- },
- ["q"] = {
- help = "quit options",
- messages = {
- "PopMode",
- { SwitchModeBuiltin = "quit" },
- },
- },
- },
- on_alphabet = nil,
- on_number = {
- help = "go to index",
- messages = {
- "PopMode",
- {
- SwitchModeBuiltin = "number",
- },
- "BufferInputFromKey",
- },
- },
- on_special_character = nil,
- default = nil,
- },
-}
-
------- Quit
-xplr.config.modes.builtin.quit = {
- name = "quit",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- enter = {
- help = "just quit",
- messages = {
- "Quit",
- },
- },
- p = {
- help = "quit printing pwd",
- messages = {
- "PrintPwdAndQuit",
- },
- },
- f = {
- help = "quit printing focus",
- messages = {
- "PrintFocusPathAndQuit",
- },
- },
- s = {
- help = "quit printing selection",
- messages = {
- "PrintSelectionAndQuit",
- },
- },
- r = {
- help = "quit printing result",
- messages = {
- "PrintResultAndQuit",
- },
- },
- esc = {
- help = "cancel",
- messages = {
- "PopMode",
- },
- },
- ["ctrl-c"] = {
- help = "terminate",
- messages = {
- "Terminate",
- },
- },
- },
- },
-}
-
------- Search
-xplr.config.modes.builtin.search = {
- name = "search",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- backspace = {
- help = "remove last character",
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "RemoveInputBufferLastCharacter",
- {
- AddNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "ExplorePwdAsync",
- },
- },
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- ["ctrl-u"] = {
- help = "remove line",
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesContain",
- },
- {
- SetInputBuffer = "",
- },
- {
- AddNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "ExplorePwdAsync",
- },
- },
- ["ctrl-w"] = {
- help = "remove last word",
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "RemoveInputBufferLastWord",
- {
- AddNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "ExplorePwdAsync",
- },
- },
- down = {
- help = "down",
- messages = { "FocusNext" },
- },
- enter = {
- help = "focus",
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "PopMode",
- "ExplorePwdAsync",
- },
- },
- left = {
- help = "back",
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "Back",
- {
- SetInputBuffer = "",
- },
- "ExplorePwdAsync",
- },
- },
- right = {
- help = "enter",
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "Enter",
- {
- SetInputBuffer = "",
- },
- "ExplorePwdAsync",
- },
- },
- tab = {
- help = "toggle selection",
- messages = { "ToggleSelection", "FocusNext" },
- },
- up = {
- help = "up",
- messages = { "FocusPrevious" },
- },
- },
- on_alphabet = nil,
- on_number = nil,
- on_special_character = nil,
- default = {
- help = nil,
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "BufferInputFromKey",
- {
- AddNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "ExplorePwdAsync",
- },
- },
- },
-}
-
-xplr.config.modes.builtin.search.key_bindings.on_key["esc"] =
- xplr.config.modes.builtin.search.key_bindings.on_key.enter
-xplr.config.modes.builtin.search.key_bindings.on_key["ctrl-n"] =
- xplr.config.modes.builtin.search.key_bindings.on_key.down
-xplr.config.modes.builtin.search.key_bindings.on_key["ctrl-p"] =
- xplr.config.modes.builtin.search.key_bindings.on_key.up
-
------- Filter
-xplr.config.modes.builtin.filter = {
- name = "filter",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- ["R"] = {
- help = "relative does not contain",
- messages = {
- {
- SwitchModeBuiltin = "relative_path_does_not_contain",
- },
- {
- SetInputBuffer = "",
- },
- {
- AddNodeFilterFromInput = "IRelativePathDoesNotContain",
- },
- "ExplorePwdAsync",
- },
- },
- backspace = {
- help = "remove last filter",
- messages = { "RemoveLastNodeFilter", "ExplorePwdAsync" },
- },
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- ["ctrl-r"] = {
- help = "reset filters",
- messages = { "ResetNodeFilters", "ExplorePwdAsync" },
- },
- ["ctrl-u"] = {
- help = "clear filters",
- messages = { "ClearNodeFilters", "ExplorePwdAsync" },
- },
- enter = {
- help = "done",
- messages = { "PopMode" },
- },
- ["r"] = {
- help = "relative does contain",
- messages = {
- {
- SwitchModeBuiltin = "relative_path_does_contain",
- },
- {
- SetInputBuffer = "",
- },
- {
- AddNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "ExplorePwdAsync",
- },
- },
- },
- on_alphabet = nil,
- on_number = nil,
- on_special_character = nil,
- default = nil,
- },
-}
-
-xplr.config.modes.builtin.filter.key_bindings.on_key["esc"] =
- xplr.config.modes.builtin.filter.key_bindings.on_key.enter
-
------- Relative path does contain
-xplr.config.modes.builtin.relative_path_does_contain = {
- name = "relative path does contain",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- backspace = {
- help = "remove last character",
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "RemoveInputBufferLastCharacter",
- {
- AddNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "ExplorePwdAsync",
- },
- },
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- ["ctrl-u"] = {
- help = "remove line",
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesContain",
- },
- {
- SetInputBuffer = "",
- },
- {
- AddNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "ExplorePwdAsync",
- },
- },
- ["ctrl-w"] = {
- help = "remove last word",
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "RemoveInputBufferLastWord",
- {
- AddNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "ExplorePwdAsync",
- },
- },
- enter = {
- help = "apply filter",
- messages = { "PopMode" },
- },
- esc = {
- help = "cancel",
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "PopMode",
- "ExplorePwdAsync",
- },
- },
- },
- on_alphabet = nil,
- on_number = nil,
- on_special_character = nil,
- default = {
- help = nil,
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "BufferInputFromKey",
- {
- AddNodeFilterFromInput = "IRelativePathDoesContain",
- },
- "ExplorePwdAsync",
- },
- },
- },
-}
-
------- Relative path does not contain
-xplr.config.modes.builtin.relative_path_does_not_contain = {
- name = "relative path does not contain",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- backspace = {
- help = "remove last character",
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesNotContain",
- },
- "RemoveInputBufferLastCharacter",
- {
- AddNodeFilterFromInput = "IRelativePathDoesNotContain",
- },
- "ExplorePwdAsync",
- },
- },
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- ["ctrl-u"] = {
- help = "remove line",
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesNotContain",
- },
- {
- SetInputBuffer = "",
- },
- {
- AddNodeFilterFromInput = "IRelativePathDoesNotContain",
- },
- "ExplorePwdAsync",
- },
- },
- ["ctrl-w"] = {
- help = "remove last word",
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesNotContain",
- },
- "RemoveInputBufferLastWord",
- {
- AddNodeFilterFromInput = "IRelativePathDoesNotContain",
- },
- "ExplorePwdAsync",
- },
- },
- enter = {
- help = "apply filter",
- messages = { "PopMode" },
- },
- esc = {
- help = "cancel",
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesNotContain",
- },
- "PopMode",
- "ExplorePwdAsync",
- },
- },
- },
- on_alphabet = nil,
- on_number = nil,
- on_special_character = nil,
- default = {
- help = nil,
- messages = {
- {
- RemoveNodeFilterFromInput = "IRelativePathDoesNotContain",
- },
- "BufferInputFromKey",
- {
- AddNodeFilterFromInput = "IRelativePathDoesNotContain",
- },
- "ExplorePwdAsync",
- },
- },
- },
-}
-
------- Sort
-xplr.config.modes.builtin.sort = {
- name = "sort",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- ["!"] = {
- help = "reverse sorters",
- messages = { "ReverseNodeSorters", "ExplorePwdAsync" },
- },
- ["E"] = {
- help = "by canonical extension reverse",
- messages = {
- {
- AddNodeSorter = {
- sorter = "ByCanonicalExtension",
- reverse = true,
- },
- },
- "ExplorePwdAsync",
- },
- },
- ["M"] = {
- help = "by canonical mime essence reverse",
- messages = {
- {
- AddNodeSorter = {
- sorter = "ByCanonicalMimeEssence",
- reverse = true,
- },
- },
- "ExplorePwdAsync",
- },
- },
- ["N"] = {
- help = "by node type reverse",
- messages = {
- {
- AddNodeSorter = {
- sorter = "ByCanonicalIsDir",
- reverse = true,
- },
- },
- {
- AddNodeSorter = {
- sorter = "ByCanonicalIsFile",
- reverse = true,
- },
- },
- {
- AddNodeSorter = {
- sorter = "ByIsSymlink",
- reverse = true,
- },
- },
- "ExplorePwdAsync",
- },
- },
- ["R"] = {
- help = "by relative path reverse",
- messages = {
- {
- AddNodeSorter = {
- sorter = "ByIRelativePath",
- reverse = true,
- },
- },
- "ExplorePwdAsync",
- },
- },
- ["S"] = {
- help = "by size reverse",
- messages = {
- {
- AddNodeSorter = {
- sorter = "BySize",
- reverse = true,
- },
- },
- "ExplorePwdAsync",
- },
- },
- backspace = {
- help = "remove last sorter",
- messages = { "RemoveLastNodeSorter", "ExplorePwdAsync" },
- },
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- ["ctrl-r"] = {
- help = "reset sorters",
- messages = { "ResetNodeSorters", "ExplorePwdAsync" },
- },
- ["ctrl-u"] = {
- help = "clear sorters",
- messages = { "ClearNodeSorters", "ExplorePwdAsync" },
- },
- ["e"] = {
- help = "by canonical extension",
- messages = {
- {
- AddNodeSorter = {
- sorter = "ByCanonicalExtension",
- reverse = false,
- },
- },
- "ExplorePwdAsync",
- },
- },
- enter = {
- help = "done",
- messages = { "PopMode" },
- },
- ["m"] = {
- help = "by canonical mime essence",
- messages = {
- {
- AddNodeSorter = {
- sorter = "ByCanonicalMimeEssence",
- reverse = false,
- },
- },
- "ExplorePwdAsync",
- },
- },
- ["n"] = {
- help = "by node type",
- messages = {
- {
- AddNodeSorter = {
- sorter = "ByCanonicalIsDir",
- reverse = false,
- },
- },
- {
- AddNodeSorter = {
- sorter = "ByCanonicalIsFile",
- reverse = false,
- },
- },
- {
- AddNodeSorter = {
- sorter = "ByIsSymlink",
- reverse = false,
- },
- },
- "ExplorePwdAsync",
- },
- },
- ["r"] = {
- help = "by relative path",
- messages = {
- {
- AddNodeSorter = {
- sorter = "ByIRelativePath",
- reverse = false,
- },
- },
- "ExplorePwdAsync",
- },
- },
- ["s"] = {
- help = "by size",
- messages = {
- {
- AddNodeSorter = {
- sorter = "BySize",
- reverse = false,
- },
- },
- "ExplorePwdAsync",
- },
- },
- },
- on_alphabet = nil,
- on_number = nil,
- on_special_character = nil,
- default = nil,
- },
-}
-
-xplr.config.modes.builtin.sort.key_bindings.on_key["esc"] =
- xplr.config.modes.builtin.sort.key_bindings.on_key.enter
-
------- Switch layout
-xplr.config.modes.builtin.switch_layout = {
- name = "switch layout",
- help = nil,
- extra_help = nil,
- key_bindings = {
- on_key = {
- ["1"] = {
- help = "default",
- messages = {
- {
- SwitchLayoutBuiltin = "default",
- },
- "PopMode",
- },
- },
- ["2"] = {
- help = "no help menu",
- messages = {
- {
- SwitchLayoutBuiltin = "no_help",
- },
- "PopMode",
- },
- },
- ["3"] = {
- help = "no selection panel",
- messages = {
- {
- SwitchLayoutBuiltin = "no_selection",
- },
- "PopMode",
- },
- },
- ["4"] = {
- help = "no help or selection",
- messages = {
- {
- SwitchLayoutBuiltin = "no_help_no_selection",
- },
- "PopMode",
- },
- },
- ["ctrl-c"] = {
- help = "terminate",
- messages = { "Terminate" },
- },
- esc = {
- help = "cancel",
- messages = { "PopMode" },
- },
- },
- on_alphabet = nil,
- on_number = nil,
- on_special_character = nil,
- default = nil,
- },
-}
-
----- Custom
-xplr.config.modes.custom = {}
-
--- Function
----- Builtin
------- Formaters
--------- Format index column
-xplr.fn.builtin.fmt_general_table_row_cols_0 = function(m)
- local r = ""
- if m.is_before_focus then
- r = r .. " -"
- else
- r = r .. " "
- end
-
- r = r .. m.relative_index .. "│" .. m.index
-
- return r
-end
-
--------- Format path column
-xplr.fn.builtin.fmt_general_table_row_cols_1 = function(m)
- local r = m.tree .. m.prefix
-
- if m.meta.icon == nil then
- r = r .. ""
- else
- r = r .. m.meta.icon .. " "
- end
-
- r = r .. m.relative_path
-
- if m.is_dir then
- r = r .. "/"
- end
-
- r = r .. m.suffix .. " "
-
- if m.is_symlink then
- r = r .. "-> "
-
- if m.is_broken then
- r = r .. "×"
- else
- r = r .. m.symlink.absolute_path
-
- if m.symlink.is_dir then
- r = r .. "/"
- end
- end
- end
-
- return r
-end
-
--------- Format permissions column
-xplr.fn.builtin.fmt_general_table_row_cols_2 = function(m)
- local no_color = os.getenv("NO_COLOR")
-
- local function green(x)
- if no_color == nil then
- return "\x1b[32m" .. x .. "\x1b[0m"
- else
- return x
- end
- end
-
- local function yellow(x)
- if no_color == nil then
- return "\x1b[33m" .. x .. "\x1b[0m"
- else
- return x
- end
- end
-
- local function red(x)
- if no_color == nil then
- return "\x1b[31m" .. x .. "\x1b[0m"
- else
- return x
- end
- end
-
- local function bit(x, color, cond)
- if cond then
- return color(x)
- else
- return color("-")
- end
- end
-
- local p = m.permissions
-
- local r = ""
-
- -- User
- r = r .. bit("r", green, p.user_read)
- r = r .. bit("w", yellow, p.user_write)
-
- if p.user_execute == false and p.setuid == false then
- r = r .. bit("-", red, p.user_execute)
- elseif p.user_execute == true and p.setuid == false then
- r = r .. bit("x", red, p.user_execute)
- elseif p.user_execute == false and p.setuid == true then
- r = r .. bit("S", red, p.user_execute)
- else
- r = r .. bit("s", red, p.user_execute)
- end
-
- -- Group
- r = r .. bit("r", green, p.group_read)
- r = r .. bit("w", yellow, p.group_write)
-
- if p.group_execute == false and p.setuid == false then
- r = r .. bit("-", red, p.group_execute)
- elseif p.group_execute == true and p.setuid == false then
- r = r .. bit("x", red, p.group_execute)
- elseif p.group_execute == false and p.setuid == true then
- r = r .. bit("S", red, p.group_execute)
- else
- r = r .. bit("s", red, p.group_execute)
- end
-
- -- Other
- r = r .. bit("r", green, p.other_read)
- r = r .. bit("w", yellow, p.other_write)
-
- if p.other_execute == false and p.setuid == false then
- r = r .. bit("-", red, p.other_execute)
- elseif p.other_execute == true and p.setuid == false then
- r = r .. bit("x", red, p.other_execute)
- elseif p.other_execute == false and p.setuid == true then
- r = r .. bit("T", red, p.other_execute)
- else
- r = r .. bit("t", red, p.other_execute)
- end
-
- return r
-end
-
--------- Format size column
-xplr.fn.builtin.fmt_general_table_row_cols_3 = function(m)
- if not m.is_dir then
- return m.human_size
- else
- return ""
- end
-end
-
--------- Format mime column
-xplr.fn.builtin.fmt_general_table_row_cols_4 = function(m)
- if m.is_symlink and not m.is_broken then
- return m.symlink.mime_essence
- else
- return m.mime_essence
- end
-end
-
----- Custom
-xplr.fn.custom = {}
diff --git a/xplr/plugins/dragon/LICENSE b/xplr/plugins/dragon/LICENSE
deleted file mode 100644
index 03b3d59..0000000
--- a/xplr/plugins/dragon/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2021 Arijit Basu
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/xplr/plugins/dragon/README.md b/xplr/plugins/dragon/README.md
deleted file mode 100644
index 8a74a12..0000000
--- a/xplr/plugins/dragon/README.md
+++ /dev/null
@@ -1,49 +0,0 @@
-[![xplr-dragon.gif](https://s6.gifyu.com/images/xplr-dragon.gif)](https://gifyu.com/image/A8N1)
-
-Drag and drop files using [dragon](https://github.com/mwh/dragon).
-
-
-Requirements
-------------
-
-- [dragon](https://github.com/mwh/dragon)
-- [curl](https://github.com/curl/curl)
-
-
-Installation
-------------
-
-### Install manually
-
-- Add the following line in `~/.config/xplr/init.lua`
-
- ```lua
- package.path = os.getenv("HOME") .. '/.config/xplr/plugins/?/src/init.lua'
- ```
-
-- Clone the plugin
-
- ```bash
- mkdir -p ~/.config/xplr/plugins
-
- git clone https://github.com/sayanarijit/dragon.xplr ~/.config/xplr/plugins/dragon
- ```
-
-- Require the module in `~/.config/xplr/init.lua`
-
- ```lua
- require("dragon").setup()
-
- -- Or
-
- require("dragon").setup{
- mode = "selection_ops",
- key = "D",
- drag_args = "",
- drop_args = "",
- keep_selection = false,
- }
-
- -- Select files and type `:sD` to drag
- -- Type `:sD` without selecting anything to drop
- ```
diff --git a/xplr/plugins/dragon/src/init.lua b/xplr/plugins/dragon/src/init.lua
deleted file mode 100644
index f0fdc9f..0000000
--- a/xplr/plugins/dragon/src/init.lua
+++ /dev/null
@@ -1,62 +0,0 @@
-local function setup(args)
- local xplr = xplr
-
- if args == nil then
- args = {}
- end
-
- if args.mode == nil then
- args.mode = "selection_ops"
- end
-
- if args.key == nil then
- args.key = "D"
- end
-
- if args.keep_selection == nil then
- args.keep_selection = false
- end
-
- if args.drag_args == nil then
- args.drag_args = ""
- end
-
- if args.drop_args == nil then
- args.drop_args = ""
- end
-
- xplr.fn.custom.dragon_drag_n_drop = function(app)
- local files = {}
- local count = 0
- local cmd = nil
-
- for i, node in ipairs(app.selection) do
- table.insert(files, node.absolute_path)
- count = i
- end
-
- if count == 0 then
- cmd = "(dragon --target " .. args.drop_args .. " 2> /dev/null | xargs -rl curl -sLO) &\ntrue"
- elseif count == 1 then
- cmd = "dragon --and-exit " .. args.drag_args .. " '" .. files[1] .. "' > /dev/null 2>&1 &\ntrue"
- else
- cmd = "dragon " .. args.drag_args .. " '" .. table.concat(files, "' '") .. "' > /dev/null 2>&1 &\ntrue"
- end
-
- os.execute(cmd)
-
- if not args.keep_selection then
- return { "ClearSelection" }
- end
- end
-
- xplr.config.modes.builtin[args.mode].key_bindings.on_key[args.key] = {
- help = "drag & drop",
- messages = {
- { CallLuaSilently = "custom.dragon_drag_n_drop" },
- "PopMode",
- },
- }
-end
-
-return { setup = setup }