commit 25cf95ed6be1b1e3c41d01ea31f0d154e6f73da7
parent 8cb07592d364c83ce837bd9c1962976dd2b761dc
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sat, 5 Sep 2026 15:18:08 +0200
cleanup
Diffstat:
10 files changed, 4 insertions(+), 543 deletions(-)
diff --git a/install.sh b/install.sh
@@ -96,7 +96,7 @@ mkdir -p ~/.config
mkdir -p ~/.local/share/applications/
ln -s ~/config/mimeapps.list ~/.config
ln -s ~/config/mimeapps.list ~/.local/share/applications/defaults.list
-ln -s ~/config/firefox/sandboxed_browser.desktop ~/.local/share/applications/
+#ln -s ~/config/firefox/sandboxed_browser.desktop ~/.local/share/applications/
ln -s ~/config/xkb ~/.xkb
mkdir -p ~/git
diff --git a/mairixrc b/mairixrc
@@ -1,4 +0,0 @@
-base=/home/a3_nm/Mail
-database=/home/a3_nm/.cache/mairix
-mfolder=Search
-mbox=...
diff --git a/pentadactyl b/pentadactyl
@@ -1 +0,0 @@
-map <F2> :!;cd ~/useful; youtube-dl "$(xsel -o)" &<cr>
diff --git a/rofi b/rofi
@@ -54,7 +54,6 @@ configuration {
/* normalize-match: false;*/
/* steal-focus: false;*/
/* application-fallback-icon: ;*/
-/* pid: "/run/user/1337/rofi.pid";*/
/* display-window: ;*/
/* display-windowcd: ;*/
/* display-run: ;*/
diff --git a/sway/config b/sway/config
@@ -95,7 +95,7 @@ bindsym $mod+a workspace back_and_forth
# bindsym $mod+Shift+a move workspace to output right
# focus the child container
-#bindcode $mod+d fo****cus child
+#bindcode $mod+d focus child
# switch to workspace
bindsym $mod+1 workspace 1
diff --git a/w3m b/w3m
@@ -40,7 +40,6 @@ no_proxy
ftp_proxy
gopher_proxy
https_proxy
-http_proxy localhost:9955
use_proxy 0
max_news 50
nntpmode
diff --git a/wmii/wmii.sh b/wmii/wmii.sh
@@ -1,219 +0,0 @@
-
-[ -z "$scriptname" ] && scriptname="$wmiiscript"
-echo Start $wmiiscript | wmiir write /event 2>/dev/null ||
- exit 1
-
-wi_newline='
-'
-
-_wi_script() {
- # Awk script to mangle key/event/action definition spec
- # into switch-case functions and lists of the cases. Also
- # generates a simple key binding help text based on KeyGroup
- # clauses and comments that appear on key lines.
- #
- # Each clause (Key, Event, Action) generates a function of the
- # same name which executes the indented text after the matching
- # clause. Clauses are selected based on the first argument passed
- # to the mangled function. Additionally, a variable is created named
- # for the plouralized version of the clause name (Keys, Events,
- # Actions) which lists each case value. These are used for actions
- # menus and to write wmii's /keys file.
- cat <<'!'
- BEGIN {
- arg[1] = "Nop"
- narg = 1;
- body = "";
- keyhelp = ""
- }
- function quote(s) {
- gsub(/'/, "'\\''", s)
- return "'" s "'"
- }
- function addevent() {
- var = arg[1] "s"
- for(i=2; i <= narg; i++) {
- if(body == "")
- delete a[arg[1],arg[i]]
- else
- a[arg[1],arg[i]] = body
- if(i == 2) {
- # There's a bug here. Can you spot it?
- gsub("[^a-zA-Z_0-9]", "_", arg[2]);
- body = sprintf("%s %s \"$@\"", arg[1], arg[2])
- }
- }
- }
- /^(Key)Group[ \t]/ {
- sub(/^[^ \t]+[ \t]+/, "")
- keyhelp = keyhelp "\n " $0 "\n"
- }
- /^(Event|Key|Action|Menu)[ \t]/ {
- addevent()
- split($0, tmp, /[ \t]+#[ \t]*/)
- narg = split(tmp[1], arg)
- if(arg[1] == "Key" && tmp[2])
- for (i=2; i <= narg; i++)
- keyhelp = keyhelp sprintf(" %-20s %s\n",
- arg[i], tmp[2])
- body = ""
- }
- /^[ \t]/ {
- sub(/^( |\t)/, "")
- body = body"\n"$0
- }
-
- END {
- addevent()
- for(k in a) {
- split(k, b, SUBSEP)
- c[b[1]] = c[b[1]] b[2] "\n"
- if(body != "")
- d[b[1]] = d[b[1]] quote(b[2]) ")" a[k] "\n;;\n"
- }
- for(k in c)
- printf "%ss=%s\n", k, quote(c[k])
- for(k in d) {
- printf "%s() {\n", k
- printf " %s=$1; shift\n", tolower(k)
- printf "case $%s in\n%s\n*) return 1\nesac\n", tolower(k), d[k]
- printf "}\n"
- }
- print "KeysHelp=" quote(keyhelp)
- }
-!
-}
-
-_wi_text() {
- cat <<'!'
-Event Start
- if [ "$1" = "$wmiiscript" ]; then
- exit
- fi
-Event Key
- Key "$@"
-!
- eval "cat <<!
-$( (test ! -t 0 && cat; for a; do eval "$a"; done) | sed '/^[ ]/s/\([$`\\]\)/\\\1/g')
-!
-"
-}
-
-wi_events() {
- #cho "$(_wi_text "$@" | awk "$(_wi_script)")" | cat -n
- eval "$(_wi_text "$@" | awk "$(_wi_script)")"
-}
-
-wi_fatal() {
- echo $scriptname: Fatal: $*
- exit 1
-}
-
-wi_notice() {
- xmessage $scriptname: Notice: $*
-}
-
-wi_readctl() {
- wmiir read /ctl | sed -n 's/^'$1' //p'
-}
-
-wmiifont="$(wi_readctl font)"
-wmiinormcol="$(wi_readctl normcolors)"
-wmiifocuscol="$(wi_readctl focuscolors)"
-
-wi_fnmenu() {
- group="$1-$2"; shift 2
- _last="$(echo $group|tr - _)_last"
- eval "last=\"\$$_last\""
- res=$(set -- $(echo "$Menus" | awk -v "s=$group" 'BEGIN{n=length(s)}
- substr($1,1,n) == s{print substr($1,n+2)}')
- [ $# != 0 ] && wmii9menu -i "$last" "$@")
- if [ -n "$res" ]; then
- eval "$_last="'"$res"'
- Menu $group-$res "$@"
- fi
-}
-
-wi_proglist() {
- ls -lL $(echo $* | sed 'y/:/ /') 2>/dev/null \
- | awk '$1 ~ /^[^d].*x/ { print $NF }' \
- | sort | uniq
-}
-
-wi_actions() {
- { wi_proglist $WMII_CONFPATH
- echo -n "$Actions"
- } | sort | uniq
-}
-
-wi_runconf() {
- sflag=""; if [ "$1" = -s ]; then sflag=1; shift; fi
- which="$(which which)"
- prog=$(PATH="$WMII_CONFPATH" "$which" -- $1 2>/dev/null); shift
- if [ -n "$prog" ]; then
- if [ -z "$sflag" ]
- then "$prog" "$@"
- else . "$prog"
- fi
- else return 1
- fi
-}
-
-wi_script() {
- _noprog=true
- if [ "$1" = -f ]; then
- shift
- _noprog=/dev/null
- fi
- which=$(which which)
- _prog=$(PATH="$WMII_CONFPATH" $which $1 || echo $_noprog); shift
- shift; echo "$_prog $*"
-}
-
-wi_runcmd() {
- if [ "$1" = -t ]; then
- shift
- set -- wihack -tags $(wmiir read /tag/sel/ctl | sed 1q) "$*"
- fi
- eval exec "$*" &
-}
-
-wi_tags() {
- wmiir ls /tag | sed 's,/,,; /^sel$/d'
-}
-
-wi_seltag() {
- wmiir read /tag/sel/ctl | sed 1q | tr -d '\012'
-}
-
-wi_selclient() {
- wmiir read /client/sel/ctl | sed 1q | tr -d '\012'
-}
-
-wi_eventloop() {
- echo "$Keys" | wmiir write /keys
-
- if [ "$1" = -i ]
- then cat
- else wmiir read /event
- fi |
- while read wi_event; do
- IFS="$wi_newline"
- wi_arg=$(echo "$wi_event" | sed 's/^[^ ]* //')
- unset IFS
- set -- $wi_event
- event=$1; shift
- ( Event $event "$@" )
- done
- true
-}
-
-action() {
- action=$1; shift
- if [ -n "$action" ]; then
- set +x
- Action $action "$@" \
- || wi_runconf $action "$@"
- fi
-}
-
diff --git a/wmii/wmiirc b/wmii/wmiirc
@@ -1,314 +0,0 @@
-#!/bin/dash -f
-# Configure wmii
-wmiiscript=wmiirc # For wmii.sh
-. ~/config/wmii/wmii.sh
-
-
-# Configuration Variables
-MODKEY=Mod4
-UP=k
-DOWN=j
-LEFT=h
-RIGHT=l
-
-# Bars
-noticetimeout=5
-noticebar=/rbar/!notice
-
-# . ~/.zshrc.path
-
-# Colors tuples: "<text> <background> <border>"
-#export WMII_NORMCOLORS='#ffffff #000000 #888888'
-#export WMII_FOCUSCOLORS='#000000 #00ff00 #ffffff'
-#export WMII_BACKGROUND='#000000'
-export WMII_NORMCOLORS='#888888 #222222 #333333'
-#export WMII_FOCUSCOLORS='#000000 #28cc55 #4cee78'
-export WMII_FOCUSCOLORS='#ffffff #285577 #4c7899'
-export WMII_BACKGROUND='#333333'
-export WMII_FONT='fixed'
-
-set -- $(echo $WMII_NORMCOLORS $WMII_FOCUSCOLORS)
-export WMII_TERM="urxvtcd"
-
-if ! test -d "${WMII_CONFPATH%%:*}"; then
- mkdir "${WMII_CONFPATH%%:*}"
- res=$(wihack -type DIALOG xmessage -nearmouse -buttons Windows,Alt -print -fn $WMII_FONT \
- "Welcome to wmii,$wi_newline$wi_newline" \
- "Most of wmii's default key bindings make use of the$wi_newline" \
- "Windows key, or equivalent. For keyboards lacking such$wi_newline" \
- "a key, many users change this to the Alt key.$wi_newline$wi_newline" \
- "Which would you prefer?")
- [ "$res" = "Alt" ] && MODKEY=Mod1
- echo "MODKEY=$MODKEY" >"${WMII_CONFPATH%%:*}/wmiirc_local"
- chmod +x "${WMII_CONFPATH%%:*}/wmiirc_local"
-fi
-
-# Menu history
-hist="${WMII_CONFPATH%%:*}/history"
-histnum=5000
-
-# Column Rules
-wmiir write /colrules <<!
-/gimp/ -> 17+83+41
-/.*/ -> 62+38 # Golden Ratio
-!
-
-# Tagging Rules
-wmiir write /tagrules <<!
-/MPlayer|VLC/ -> ~
-!
-
-# Status Bar Info
-status() {
- echo -n $(acpi | cut -d ' ' -f 4) $(uptime | sed 's/.*://; s/,//g') '|' $(date)
-}
-
-status2() {
- echo -n $( acpi -tb | cut -d ',' -f 2 | cut -d ' ' -f 2 | tr '\n' '-')
-}
-
-local_events() { true;}
-wi_runconf -s wmiirc_local
-
-echo $WMII_NORMCOLORS | wmiir create $noticebar
-
-# Event processing
-events() {
- cat <<'!'
-# Events
-Event CreateTag
- echo "$WMII_NORMCOLORS" "$@" | wmiir create "/lbar/$@"
-Event DestroyTag
- wmiir remove "/lbar/$@"
-Event FocusTag
- wmiir xwrite "/lbar/$@" "$WMII_FOCUSCOLORS" "$@"
-Event UnfocusTag
- wmiir xwrite "/lbar/$@" "$WMII_NORMCOLORS" "$@"
-Event UrgentTag
- shift
- wmiir xwrite "/lbar/$@" "*$@"
-Event NotUrgentTag
- shift
- wmiir xwrite "/lbar/$@" "$@"
-Event LeftBarClick LeftBarDND
- shift
- wmiir xwrite /ctl view "$@"
-Event Unresponsive
- {
- client=$1; shift
- msg="The following client is not responding. What would you like to do?$wi_newline"
- resp=$(wihack -transient $client \
- xmessage -nearmouse -buttons Kill,Wait -print
- -fn "${WMII_FONT%%,*}" "$msg $(wmiir read /client/sel/label)")
- if [ "$resp" = Kill ]; then
- wmiir xwrite /client/$client/ctl slay &
- fi
- }&
-Event Notice
- wmiir xwrite $noticebar $wi_arg
-
- kill $xpid 2>/dev/null # Let's hope this isn't reused...
- { sleep $noticetimeout; wmiir xwrite $noticebar ' '; }&
- xpid = $!
-
-# Menus
-Menu Client-3-Delete
- wmiir xwrite /client/$1/ctl kill
-Menu Client-3-Kill
- wmiir xwrite /client/$1/ctl slay
-Menu Client-3-Fullscreen
- wmiir xwrite /client/$1/ctl Fullscreen on
-Event ClientMouseDown
- wi_fnmenu Client $2 $1 &
-
-Menu LBar-3-Delete
- tag=$1; clients=$(wmiir read "/tag/$tag/index" | awk '/[^#]/{print $2}')
- for c in $clients; do
- if [ "$tag" = "$(wmiir read /client/$c/tags)" ]; then
- wmiir xwrite /client/$c/ctl kill
- else
- wmiir xwrite /client/$c/tags -$tag
- fi
- if [ "$tag" = "$(wi_seltag)" ]; then
- newtag=$(wi_tags | awk -v't='$tag '
- $1 == t { if(!l) getline l
- print l
- exit }
- { l = $0 }')
- wmiir xwrite /ctl view $newtag
- fi
- done
-Event LeftBarMouseDown
- wi_fnmenu LBar "$@" &
-
-# Actions
-Action showkeys
- echo "$KeysHelp" | xmessage -file - -fn ${WMII_FONT%%,*}
-Action quit
- wmiir xwrite /ctl quit
-Action exec
- wmiir xwrite /ctl exec "$@"
-Action rehash
- wi_proglist $PATH >$progsfile
-Action status
- set +xv
- if wmiir remove /rbar/status 2>/dev/null; then
- sleep 2
- fi
- echo "$WMII_NORMCOLORS" | wmiir create /rbar/status
- while status | wmiir write /rbar/status; do
- sleep 1
- done
-Action a_none
- echo 'nil'
-Action status2
- set +xv
- if wmiir remove /rbar/statusd 2>/dev/null; then
- sleep 2
- fi
- echo "$WMII_NORMCOLORS" | wmiir create /rbar/statusd
- while status2 | wmiir write /rbar/statusd; do
- sleep 1
- done
-
-
-Key $MODKEY-e
- eval $WMII_TERM -e "zsh -c \"$(wimenu -h "${hist}.progs" -n $histnum <$progsfile)\"" &
-Key $MODKEY-u
- eval $WMII_TERM -e "zsh -c \"$(wimenu -h "${hist}.progs" -n $histnum <$progsfile); zsh -i\"" &
-Key $MODKEY-o
- eval $WMII_TERM -e "zsh -c alot" &
-
-Key $MODKEY-w
- eval "sensible-browser" &
-Key $MODKEY-x
- sh -c "xtrlock" &
-Key $MODKEY-w
- eval "xdotool click 2" &
-Key $MODKEY-z
- eval "xsel -x; xsel -b | xsel -i; xdotool click 2; xsel -x" &
-
-Key $MODKEY-c
- amixer -c 0 set Master 2dB-
-Key $MODKEY-r
- amixer -c 0 set Master 2dB+
-
-# Key Bindings
-KeyGroup Moving around
-Key $MODKEY-$LEFT # Select the client to the left
- wmiir xwrite /tag/sel/ctl select left
-Key $MODKEY-$RIGHT # Select the client to the right
- wmiir xwrite /tag/sel/ctl select right
-Key $MODKEY-$UP # Select the client above
- wmiir xwrite /tag/sel/ctl select up
-Key $MODKEY-$DOWN # Select the client below
- wmiir xwrite /tag/sel/ctl select down
-
-Key $MODKEY-space # Toggle between floating and managed layers
- wmiir xwrite /tag/sel/ctl select toggle
-
-KeyGroup Moving through stacks
-Key $MODKEY-Control-$UP # Select the stack above
- wmiir xwrite /tag/sel/ctl select up stack
-Key $MODKEY-Control-$DOWN # Select the stack below
- wmiir xwrite /tag/sel/ctl select down stack
-
-KeyGroup Moving clients around
-Key $MODKEY-Shift-$LEFT # Move selected client to the left
- wmiir xwrite /tag/sel/ctl send sel left
-Key $MODKEY-Shift-$RIGHT # Move selected client to the right
- wmiir xwrite /tag/sel/ctl send sel right
-Key $MODKEY-Shift-$UP # Move selected client up
- wmiir xwrite /tag/sel/ctl send sel up
-Key $MODKEY-Shift-$DOWN # Move selected client down
- wmiir xwrite /tag/sel/ctl send sel down
-
-Key $MODKEY-Shift-space # Toggle selected client between floating and managed layers
- wmiir xwrite /tag/sel/ctl send sel toggle
-
-KeyGroup Client actions
-Key $MODKEY-f # Toggle selected client's fullsceen state
- wmiir xwrite /client/sel/ctl Fullscreen toggle
-Key $MODKEY-Shift-c # Close client
- wmiir xwrite /client/sel/ctl kill
-Key $MODKEY-Shift-x # Slay client
- wmiir xwrite /client/sel/ctl slay
-
-KeyGroup Changing column modes
-Key $MODKEY-d # Set column to default mode
- wmiir xwrite /tag/sel/ctl colmode sel default-max
-Key $MODKEY-s # Set column to stack mode
- wmiir xwrite /tag/sel/ctl colmode sel stack-max
-Key $MODKEY-m # Set column to max mode
- wmiir xwrite /tag/sel/ctl colmode sel stack+max
-
-KeyGroup Running programs
-Key $MODKEY-a # Open wmii actions menu
- action $(wi_actions | wimenu -h "${hist}.actions" -n $histnum) &
-Key $MODKEY-p # Open program menu
- eval wmiir setsid "$(wimenu -h "${hist}.progs" -n $histnum <$progsfile)" &
-
-Key $MODKEY-Return # Launch a terminal
- eval wmiir setsid $WMII_TERM &
-
-KeyGroup Other
-Key $MODKEY-Control-t # Toggle all other key bindings
- case $(wmiir read /keys | wc -l | tr -d ' \t\n') in
- 0|1)
- echo -n "$Keys" | wmiir write /keys
- wmiir xwrite /ctl grabmod $MODKEY;;
- *)
- wmiir xwrite /keys $MODKEY-Control-t
- wmiir xwrite /ctl grabmod Mod3;;
- esac
-
-KeyGroup Tag actions
-Key $MODKEY-t # Change to another tag
- (tag=$(wi_tags | wimenu -h "${hist}.tags" -n 50) && wmiir xwrite /ctl view $tag) &
-Key $MODKEY-Shift-t # Retag the selected client
- c=$(wi_selclient)
- (tag=$(wi_tags | wimenu -h "${hist}.tags" -n 50) && wmiir xwrite /client/$c/tags $tag) &
-!
- for i in 0 1 2 3 4 5 6 7 8 9; do
- cat <<!
-Key $MODKEY-$i # Move to the numbered view
- wmiir xwrite /ctl view "$i"
-Key $MODKEY-Shift-$i # Retag selected client with the numbered tag
- wmiir xwrite /client/sel/tags "$i"
-!
- done
-}
-wi_events events local_events
-
-# WM Configuration
-wmiir write /ctl <<!
- font $WMII_FONT
- focuscolors $WMII_FOCUSCOLORS
- normcolors $WMII_NORMCOLORS
- grabmod $MODKEY
- border 1
-!
-xsetroot -solid "$WMII_BACKGROUND" &
-
-# Misc
-progsfile="$(wmiir namespace)/.proglist"
-action status &
-#action status2 &
-wi_proglist $PATH >$progsfile &
-
-# Setup Tag Bar
-IFS="$wi_newline"
-wmiir rm $(wmiir ls /lbar | sed 's,^,/lbar/,') >/dev/null
-seltag=$(wmiir read /tag/sel/ctl | sed 1q)
-unset IFS
-wi_tags | while read tag
-do
- if [ "$tag" = "$seltag" ]; then
- echo "$WMII_FOCUSCOLORS" "$tag"
- else
- echo "$WMII_NORMCOLORS" "$tag"
- fi | wmiir create "/lbar/$tag"
-done
-
-wi_eventloop
-
diff --git a/zsh/path b/zsh/path
@@ -13,5 +13,6 @@ export MANPATH
INFOPATH=~/local/share/info:~/.local/share/info:$INFOPATH
export INFOPATH
+#export PATH="$HOME/.cargo/bin:$HOME/.npm-global/bin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
diff --git a/zsh/zshrc b/zsh/zshrc
@@ -8,7 +8,7 @@ export $SHORTHOST
zstyle ':completion:*' completer _expand _complete _ignored _match _correct _approximate _prefix
zstyle ':completion:*' max-errors 2
-zstyle :compinstall filename '/home/a3_nm/.zshrc'
+zstyle :compinstall filename '/home/a3nm/.zshrc'
umask 077