From 7b5d6d5f2e9be95cd1acdc5eb07f4487da8a1f64 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 27 Jan 2013 14:43:14 -0500 Subject: mv .wmii .config/wmii; ln -s .config/wmii .wmii --- .config/wmii/help-keys | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 .config/wmii/help-keys (limited to '.config/wmii/help-keys') diff --git a/.config/wmii/help-keys b/.config/wmii/help-keys new file mode 100755 index 0000000..c6e7038 --- /dev/null +++ b/.config/wmii/help-keys @@ -0,0 +1,3 @@ +#!/bin/bash +. "$HOME/.wmii/include.sh" +scansection Key | xmessage -file - -- cgit v1.2.3-54-g00ecf From 1d71fab074e22e830554b0b5a73ec9a092643d07 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 14 Aug 2013 16:12:23 -0400 Subject: wmii: play with PATH better --- .config/wmii/autostart | 2 +- .config/wmii/config.sh | 4 ++-- .config/wmii/help-events | 2 +- .config/wmii/help-keys | 2 +- .config/wmii/include.sh | 4 ++-- .config/wmii/quit | 2 +- .config/wmii/rbar_battery | 2 +- .config/wmii/rbar_clock | 2 +- .config/wmii/rbar_cpu | 2 +- .config/wmii/rbar_wifi | 2 +- .config/wmii/theme-solarized-dark | 2 +- .config/wmii/util.sh | 2 +- .config/wmii/wmiirc | 5 ++++- 13 files changed, 18 insertions(+), 15 deletions(-) (limited to '.config/wmii/help-keys') diff --git a/.config/wmii/autostart b/.config/wmii/autostart index d95ce34..dc37f40 100755 --- a/.config/wmii/autostart +++ b/.config/wmii/autostart @@ -1,5 +1,5 @@ #!/bin/bash -. "$HOME/.wmii/include.sh" +. include.sh daemon lxpanel &> /dev/null daemon nm-applet &> /dev/null diff --git a/.config/wmii/config.sh b/.config/wmii/config.sh index 1dac0ad..b87ae5c 100644 --- a/.config/wmii/config.sh +++ b/.config/wmii/config.sh @@ -219,9 +219,9 @@ Key() { $MODKEY-a) ## Open wmii actions menu Action $(path_ls $WMII_CONFPATH | wimenu -h "${HIST}.actions" -n 5000) & ;; $MODKEY-x) ## Open program menu - setsid $(path_ls $PATH | wimenu -h "${HIST}.progs" -n 5000) & ;; + PATH=$_PATH setsid $(path_ls $PATH | wimenu -h "${HIST}.progs" -n 5000) & ;; $MODKEY-Return) ## Launch a terminal - setsid x-terminal-emulator & ;; + PATH=$_PATH setsid x-terminal-emulator & ;; ## Tag actions $MODKEY-t) ## Change to another tag diff --git a/.config/wmii/help-events b/.config/wmii/help-events index 25b7d41..08abd18 100755 --- a/.config/wmii/help-events +++ b/.config/wmii/help-events @@ -1,3 +1,3 @@ #!/bin/bash -. "$HOME/.wmii/include.sh" +. include.sh scansection Event | xmessage -file - diff --git a/.config/wmii/help-keys b/.config/wmii/help-keys index c6e7038..6f4bd1c 100755 --- a/.config/wmii/help-keys +++ b/.config/wmii/help-keys @@ -1,3 +1,3 @@ #!/bin/bash -. "$HOME/.wmii/include.sh" +. include.sh scansection Key | xmessage -file - diff --git a/.config/wmii/include.sh b/.config/wmii/include.sh index d4e58c3..0d639a2 100644 --- a/.config/wmii/include.sh +++ b/.config/wmii/include.sh @@ -7,5 +7,5 @@ if [ -z "$WMII_DIR" ]; then export WMII_DIR="$HOME/n/wmii" fi -. "$HOME/.wmii/util.sh" -. "$HOME/.wmii/config.sh" +. util.sh +. config.sh diff --git a/.config/wmii/quit b/.config/wmii/quit index 876a60e..27d9052 100755 --- a/.config/wmii/quit +++ b/.config/wmii/quit @@ -1,3 +1,3 @@ #!/bin/bash -. "$HOME/.wmii/include.sh" +. include.sh echo quit >> $WMII_DIR/ctl diff --git a/.config/wmii/rbar_battery b/.config/wmii/rbar_battery index ae8980a..76723dc 100755 --- a/.config/wmii/rbar_battery +++ b/.config/wmii/rbar_battery @@ -1,5 +1,5 @@ #!/bin/bash -. "$HOME/.wmii/include.sh" +. include.sh priority=$1 diff --git a/.config/wmii/rbar_clock b/.config/wmii/rbar_clock index 18c4493..2307979 100755 --- a/.config/wmii/rbar_clock +++ b/.config/wmii/rbar_clock @@ -1,5 +1,5 @@ #!/bin/bash -. "$HOME/.wmii/include.sh" +. include.sh priority=$1 diff --git a/.config/wmii/rbar_cpu b/.config/wmii/rbar_cpu index 22da985..d5b70d3 100755 --- a/.config/wmii/rbar_cpu +++ b/.config/wmii/rbar_cpu @@ -1,5 +1,5 @@ #!/bin/bash -. "$HOME/.wmii/include.sh" +. include.sh priority=$1 diff --git a/.config/wmii/rbar_wifi b/.config/wmii/rbar_wifi index 2ada834..b78dce3 100755 --- a/.config/wmii/rbar_wifi +++ b/.config/wmii/rbar_wifi @@ -1,5 +1,5 @@ #!/bin/bash -. "$HOME/.wmii/include.sh" +. include.sh priority=$1 diff --git a/.config/wmii/theme-solarized-dark b/.config/wmii/theme-solarized-dark index 83285ba..fde361b 100644 --- a/.config/wmii/theme-solarized-dark +++ b/.config/wmii/theme-solarized-dark @@ -1,7 +1,7 @@ #!/bin/sh # Solarized-dark -. $HOME/.wmii/theme-solarized +. theme-solarized WMII_BACKGROUND="$SOL_BASE02" diff --git a/.config/wmii/util.sh b/.config/wmii/util.sh index 43d7d4a..61fb2c9 100644 --- a/.config/wmii/util.sh +++ b/.config/wmii/util.sh @@ -1,7 +1,7 @@ #!/bin/bash # I moved "fixes" into a separate file because it isn't so much configuration... -. "$HOME/.wmii/fixes.sh" +. fixes.sh ################################################################################ # Added shell features # diff --git a/.config/wmii/wmiirc b/.config/wmii/wmiirc index 1f1ea18..a6bc4b4 100755 --- a/.config/wmii/wmiirc +++ b/.config/wmii/wmiirc @@ -1,5 +1,8 @@ #!/bin/bash -. "$HOME/.wmii/include.sh" +export _PATH="$PATH" +export PATH="$WMII_CONFPATH:$PATH" + +. include.sh wmiir xwrite /event WmiircQuit # close any existing wmiirc's -- cgit v1.2.3-54-g00ecf From b9f46fb46c990fdef955b72dbdd4363da17ffc59 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 18 Sep 2013 13:50:52 -0400 Subject: remove .config/wmii; it was confusing to have it and .config/wmii-hg --- .config/symlinks | 4 +- .config/wmii/autostart | 11 -- .config/wmii/config.sh | 250 -------------------------------------- .config/wmii/ctl-init | 5 - .config/wmii/fixes.sh | 24 ---- .config/wmii/help-events | 3 - .config/wmii/help-keys | 3 - .config/wmii/include.sh | 11 -- .config/wmii/quit | 3 - .config/wmii/rbar_battery | 9 -- .config/wmii/rbar_clock | 9 -- .config/wmii/rbar_cpu | 12 -- .config/wmii/rbar_wifi | 9 -- .config/wmii/tagrules | 3 - .config/wmii/theme-solarized | 16 --- .config/wmii/theme-solarized-dark | 12 -- .config/wmii/util.sh | 128 ------------------- .config/wmii/wmiirc | 15 --- 18 files changed, 2 insertions(+), 525 deletions(-) delete mode 100755 .config/wmii/autostart delete mode 100644 .config/wmii/config.sh delete mode 100644 .config/wmii/ctl-init delete mode 100644 .config/wmii/fixes.sh delete mode 100755 .config/wmii/help-events delete mode 100755 .config/wmii/help-keys delete mode 100644 .config/wmii/include.sh delete mode 100755 .config/wmii/quit delete mode 100755 .config/wmii/rbar_battery delete mode 100755 .config/wmii/rbar_clock delete mode 100755 .config/wmii/rbar_cpu delete mode 100755 .config/wmii/rbar_wifi delete mode 100644 .config/wmii/tagrules delete mode 100644 .config/wmii/theme-solarized delete mode 100644 .config/wmii/theme-solarized-dark delete mode 100644 .config/wmii/util.sh delete mode 100755 .config/wmii/wmiirc (limited to '.config/wmii/help-keys') diff --git a/.config/symlinks b/.config/symlinks index c7d3404..dfd06d4 100644 --- a/.config/symlinks +++ b/.config/symlinks @@ -36,12 +36,12 @@ .config/bazaar/ .bazaar .config/cpan/ .cpan .config/emacs/ .emacs.d -.config/mozilla/ .mozilla # +.config/mozilla/ .mozilla # .config/mplayer/ .mplayer .config/nanorc .nanorc .config/purple/ .purple .config/subversion/ .subversion -.config/wmii/ .wmii +.config/wmii/ .wmii # .config/wmii-hg/ .wmii-hg # KDE diff --git a/.config/wmii/autostart b/.config/wmii/autostart deleted file mode 100755 index dc37f40..0000000 --- a/.config/wmii/autostart +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -. include.sh - -daemon lxpanel &> /dev/null -daemon nm-applet &> /dev/null -daemon notifyd &> /dev/null - -#Action rbar_cpu 01 & -#Action rbar_wifi 97 & -Action rbar_battery 98 & -Action rbar_clock 99 & diff --git a/.config/wmii/config.sh b/.config/wmii/config.sh deleted file mode 100644 index 8d40474..0000000 --- a/.config/wmii/config.sh +++ /dev/null @@ -1,250 +0,0 @@ -#!/bin/bash - -MODKEY=Mod4 # "super" -UP=p -DOWN=n -LEFT=b -RIGHT=f - -HIST="$XDG_CACHE_HOME/wmii/history" -mkdir -p "${HIST%/*}" - -# Colors tuples: " " -. `conffile theme-solarized-dark` - -Event() { - event=$1; shift; - case "$event" in - ## Mouse event meanings: - ## MouseDown = mouse down - ## Click = mouse up - ## DND = hover, while dragging something (Drag 'n' Drop) - ## The associated mouse button is always "1" - ## - ## Mouse-button IDs: - ## 1 = left - ## 2 = middle - ## 3 = right - - ## Custom (non-WMII-generated) events - WmiircStart) ## No args - echo ' ==> Starting wmiirc' - is_mounted $WMII_DIR && Event WmiircUnmount - Event WmiircMount - - # Configure wmii - < "`conffile tagrules`" expand_variables >> $WMII_DIR/tagrules - < "`conffile ctl-init`" expand_variables >> $WMII_DIR/ctl - scansection Key | cut -sf2 >> $WMII_DIR/keys - # Configure X11 - xsetroot -solid "$WMII_BACKGROUND" - - # Clear the LBar and RBar - find $WMII_DIR/{l,r}bar -type f -delete - # Populate the LBar by emulating [Create|Focus]Tag events - seltag=`sed 1q $WMII_DIR/tag/sel/ctl` - lstags | while read tag; do - Event CreateTag "$tag" - if [ "$tag" = "$seltag" ]; then - Event FocusTag "$tag" - fi - done - - # Run the autostart action - Action autostart 2>/dev/null & - ;; - WmiircQuit) ## No args - echo ' ==> Stopping wmiirc' - exit;; - WmiircMount) ## No args - echo " -> Creating mountpoint WMII_DIR=$WMII_DIR..." - mkdir -p "$WMII_DIR" - echo " -> Mounting WMII_DIR=$WMII_DIR..." - 9mount -i "unix!$WMII_NAMESPACE/wmii" "$WMII_DIR";; - WmiircUnmount) ## No args - echo " -> Unmounting WMII_DIR=$WMII_DIR..." - 9umount "$WMII_DIR" - echo " -> Removing mountpoint WMII_DIR=$WMII_DIR..." - rmdir "$WMII_DIR";; - ## WMII-meta events - Quit) ## No args - echo ' ==> wmii quit: unmounting' - trap - EXIT - Event WmiircUnmount - Event WmiircQuit;; - Warning) ## $@=string - notify-send "wmii warning: $*";; - Key) ## $1=keystroke - Key "$@";; - - ## WMII Window management events - FocusFloating) ## No args - ;; - AreaFocus) ## $1=area - ;; - DestroyArea) ## $1=area - ;; - ColumnFocus) ## $1=column - ;; - CreateColumn) ## $1=column - ;; - - ## Client events - CreateClient) ## $1=client - ;; - DestroyClient) ## $1=client - ;; - Urgent) ## $1=client $2=[Manager|Client] - ;; - NotUrgent) ## $1=client $2=[Manager|Client] - ;; - ClientMouseDown) ## $1=client $2=button - client=$1 - button=$2 - case $button in - 1) ;; - 2) ;; - 3) - { - case `wmii9menu Delete Fullscreen` in - Delete) - echo kill >> $WMII_DIR/client/$client/ctl;; - Fullscreen) - echo Fullscreen on >> $WMII_DIR/client/$1/ctl;; - esac - }& ;; - esac;; - ClientClick) ## $1=client $2=button - ;; - Unresponsive) ## $1=client - client=$1 - client_name=`cat $WMII_DIR/client/$client/label` - msg="The client \`${client_name}' is not responding." - msg+=" What would you like to do?" - { - resp=$(wihack -transient $client \ - xmessage -nearmouse -buttons Kill,Wait -print "$msg") - if [ "$resp" = Kill ]; then - echo slay >> $WMII_DIR/client/$client/ctl - fi - }& ;; - Fullscreen) ## $1=client $2=[on|off] - # TODO: hide any clients with the 'panel' class - ;; - - ## Tag events - CreateTag) ## $1=tag - echo "$WMII_NORMCOLORS" $@ >> $WMII_DIR/lbar/$1;; - DestroyTag) ## $1=tag - rm $WMII_DIR/lbar/$1;; - FocusTag) ## $1=tag - echo "$WMII_FOCUSCOLORS" $1 >> $WMII_DIR/lbar/$1;; - UnfocusTag) ## $1=tag - echo "$WMII_NORMCOLORS" $1 >> $WMII_DIR/lbar/$1;; - UrgentTag) ## $1=tag $2=[Manager|Client] - echo "$WMII_URGENTCOLORS" $1 >> $WMII_DIR/lbar/$1;; - NotUrgentTag) ## $1=tag $2=[Manager|Client] - echo "$WMII_NORMCOLORS" $1 >> $WMII_DIR/lbar/$1;; - - ## LeftBar events (usually tag buttons) - LeftBarMouseDown) ## $1=button $2=bar_item - ;; - LeftBarClick) ## $1=button $2=bar_item - shift # ignore the button - echo view "$@" >> $WMII_DIR/ctl;; - LeftMouseDND) ## $1=button $2=bar_item - Event LeftBarClick "$@";; - - ## RightBar events - RightBarMouseDown) ## $1=button $2=bar_item - ;; - RightBarClick) ## $1=button $2=bar_item - ;; - RightMouseDND) ## $1=button $2=bar_item - Event RightBarClick "$@";; - esac -} ## End Event - -# Key Bindings -Key() { - key=$1 - case "$key" in - ## Moving around - - $MODKEY-$LEFT) ## Select the client to the left - echo select left >> $WMII_DIR/tag/sel/ctl;; - $MODKEY-$RIGHT) ## Select the client to the right - echo select right >> $WMII_DIR/tag/sel/ctl;; - $MODKEY-$UP) ## Select the client above - echo select up >> $WMII_DIR/tag/sel/ctl;; - $MODKEY-$DOWN) ## Select the client below - echo select down >> $WMII_DIR/tag/sel/ctl;; - - $MODKEY-space) ## Toggle between floating and managed layers - echo select toggle >> $WMII_DIR/tag/sel/ctl;; - - ## Moving clients around - - $MODKEY-Shift-$LEFT) ## Move selected client to the left - echo send sel left >> $WMII_DIR/tag/sel/ctl;; - $MODKEY-Shift-$RIGHT) ## Move selected client to the right - echo send sel right >> $WMII_DIR/tag/sel/ctl;; - $MODKEY-Shift-$UP) ## Move selected client up - echo send sel up >> $WMII_DIR/tag/sel/ctl;; - $MODKEY-Shift-$DOWN) ## Move selected client down - echo send sel down >> $WMII_DIR/tag/sel/ctl;; - $MODKEY-Shift-space) ## Toggle selected client between floating and managed layers - echo send sel toggle >> $WMII_DIR/tag/sel/ctl;; - - ## Moving through stacks - $MODKEY-Control-$UP) ## Select the stack above - echo select up stack >> $WMII_DIR/tag/sel/ctl;; - $MODKEY-Control-$DOWN) ## Select the stack below - echo select down stack >> $WMII_DIR/tag/sel/ctl;; - - ## Client actions - $MODKEY-shift-1) ## Toggle selected client's fullsceen state - echo Fullscreen toggle >> $WMII_DIR/client/sel/ctl;; - $MODKEY-shift-0) ## Close client - echo kill >> $WMII_DIR/client/sel/ctl;; - - ## Changing column modes - $MODKEY-d) ## Set column to default mode - echo colmode sel default-max >> $WMII_DIR/tag/sel/ctl;; - $MODKEY-s) ## Set column to stack mode - echo colmode sel stack-max >> $WMII_DIR/tag/sel/ctl;; - $MODKEY-m) ## Set column to max mode - echo colmode sel stack+max >> $WMII_DIR/tag/sel/ctl;; - - ## Running programs - $MODKEY-a) ## Open wmii actions menu - Action $(path_ls $WMII_CONFPATH | wimenu -h "${HIST}.actions" -n 5000) & ;; - $MODKEY-x) ## Open program menu - PATH=$_PATH setsid $(path_ls $PATH | wimenu -h "${HIST}.progs" -n 5000) & ;; - $MODKEY-Return) ## Launch a terminal - PATH=$_PATH setsid x-terminal-emulator & ;; - - ## Tag actions - $MODKEY-t) ## Change to another tag - { - tag=$(lstags | wimenu -h "${HIST}.tags" -n 50) || return - echo view $tag >> $WMII_DIR/ctl - }& ;; - $MODKEY-Shift-t) ## Retag the selected client - sel=$(sed 1q $WMII_DIR/client/sel/ctl) - { - tag=$(lstags | wimenu -h "${HIST}.tags" -n 50) || return - echo "$tag" >> $WMII_DIR/client/$sel/tags - }& ;; - esac -} ## End Key - -Action() { - prog=`path_which "$WMII_CONFPATH" $1`; shift - if [ -n "$prog" ]; then - "$prog" "$@" - return $? - else - return 1 - fi -} ## End Action diff --git a/.config/wmii/ctl-init b/.config/wmii/ctl-init deleted file mode 100644 index 026c0d5..0000000 --- a/.config/wmii/ctl-init +++ /dev/null @@ -1,5 +0,0 @@ -font xft:Monospace-8 -focuscolors $WMII_FOCUSCOLORS -normcolors $WMII_NORMCOLORS -grabmod $MODKEY -border 1 diff --git a/.config/wmii/fixes.sh b/.config/wmii/fixes.sh deleted file mode 100644 index aa09157..0000000 --- a/.config/wmii/fixes.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -# Fix various deficiencies in either the shell or the filesystem - -## -# Usage: ls DIRECTORY -# Linux's 9p kernel module sometimes omits entries in directory listings -## -unalias ls &>/dev/null -ls() { - real_ls="`which ls` -1F" - [ $# = 0 ] && set -- "`pwd`" - f="${1/#${WMII_DIR}/}" - if [ "$f" = "$1" ]; then - $real_ls "$f" - else - wmiir ls "$f" - fi -} - -## -# Usage: setsid cmd [arguments...] -# I like wmiir's setsid better than linux-utils' -## -setsid() { wmiir setsid "$@"; } diff --git a/.config/wmii/help-events b/.config/wmii/help-events deleted file mode 100755 index 08abd18..0000000 --- a/.config/wmii/help-events +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -. include.sh -scansection Event | xmessage -file - diff --git a/.config/wmii/help-keys b/.config/wmii/help-keys deleted file mode 100755 index 6f4bd1c..0000000 --- a/.config/wmii/help-keys +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -. include.sh -scansection Key | xmessage -file - diff --git a/.config/wmii/include.sh b/.config/wmii/include.sh deleted file mode 100644 index 38551aa..0000000 --- a/.config/wmii/include.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -if [[ -z "$WMII_NAMESPACE" ]]; then - export WMII_NAMESPACE="`wmiir namespace`" -fi -if [[ -z "$WMII_DIR" ]]; then - export WMII_DIR="$HOME/n/wmii" -fi - -. util.sh -. config.sh diff --git a/.config/wmii/quit b/.config/wmii/quit deleted file mode 100755 index 27d9052..0000000 --- a/.config/wmii/quit +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -. include.sh -echo quit >> $WMII_DIR/ctl diff --git a/.config/wmii/rbar_battery b/.config/wmii/rbar_battery deleted file mode 100755 index 76723dc..0000000 --- a/.config/wmii/rbar_battery +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -. include.sh - -priority=$1 - -while connected_to_x_server; do - acpi -b >> "$WMII_DIR/rbar/${priority}_battery" - sleep 1 -done diff --git a/.config/wmii/rbar_clock b/.config/wmii/rbar_clock deleted file mode 100755 index 2307979..0000000 --- a/.config/wmii/rbar_clock +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -. include.sh - -priority=$1 - -while connected_to_x_server; do - date >> "$WMII_DIR/rbar/${priority}_clock" - sleep .5 -done diff --git a/.config/wmii/rbar_cpu b/.config/wmii/rbar_cpu deleted file mode 100755 index d5b70d3..0000000 --- a/.config/wmii/rbar_cpu +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -. include.sh - -priority=$1 - -while connected_to_x_server; do - # This doesn't work for me, it shows capacity - #echo -n 'Core MHz:' $(cat /proc/cpuinfo | grep 'cpu MHz' | sed 's/.*: //g; s/\..*//g;') >> "$WMII_DIR/rbar/${priority}_cpu" - # This actually displays %idle - echo 'CPU: [ '$(tail -n3 ~/tmp/cputime|sed -ur 's/\s\s+/\t/g'|cut -f2,11|sed 's/\t\(.*\)/(\1)/')' ]' >> "$WMII_DIR/rbar/${priority}_cpu" - sleep 1 -done diff --git a/.config/wmii/rbar_wifi b/.config/wmii/rbar_wifi deleted file mode 100755 index b78dce3..0000000 --- a/.config/wmii/rbar_wifi +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -. include.sh - -priority=$1 - -while connected_to_x_server; do - echo 'Wlan0:' $(iwconfig wlan0 | sed 's/ /\n/g' | grep Quality) >> "$WMII_DIR/rbar/${priority}_wifi" - sleep 1 -done diff --git a/.config/wmii/tagrules b/.config/wmii/tagrules deleted file mode 100644 index 990151f..0000000 --- a/.config/wmii/tagrules +++ /dev/null @@ -1,3 +0,0 @@ -/Emacs|Navigator/ -> +sel -/Eclipse/ -> +sel -/panel/ -> /.*/ diff --git a/.config/wmii/theme-solarized b/.config/wmii/theme-solarized deleted file mode 100644 index 5dc830d..0000000 --- a/.config/wmii/theme-solarized +++ /dev/null @@ -1,16 +0,0 @@ -SOL_BASE03='#002b36' -SOL_BASE02='#073642' -SOL_BASE01='#586e75' -SOL_BASE00='#657b83' -SOL_BASE0='#839496' -SOL_BASE1='#93a1a1' -SOL_BASE2='#eee8d5' -SOL_BASE3='#fdf6e3' -SOL_YELLOW='#b58900' -SOL_ORANGE='#cb4b16' -SOL_RED='#dc322f' -SOL_MAGENTA='#d33682' -SOL_VIOLET='#6c71c4' -SOL_BLUE='#268bd2' -SOL_CYAN='#2aa198' -SOL_GREEN='#859900' diff --git a/.config/wmii/theme-solarized-dark b/.config/wmii/theme-solarized-dark deleted file mode 100644 index fde361b..0000000 --- a/.config/wmii/theme-solarized-dark +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -# Solarized-dark - -. theme-solarized - -WMII_BACKGROUND="$SOL_BASE02" - -# =" " -WMII_NORMCOLORS="$SOL_BASE0 $SOL_BASE03 $SOL_BASE02" -WMII_FOCUSCOLORS="$SOL_BASE0 $SOL_BASE02 $SOL_BASE0" -WMII_URGENTCOLORS="$SOL_RED $SOL_BASE03 $SOL_RED" - diff --git a/.config/wmii/util.sh b/.config/wmii/util.sh deleted file mode 100644 index 61fb2c9..0000000 --- a/.config/wmii/util.sh +++ /dev/null @@ -1,128 +0,0 @@ -#!/bin/bash - -# I moved "fixes" into a separate file because it isn't so much configuration... -. fixes.sh - -################################################################################ -# Added shell features # -################################################################################ - -## -# Usage: dquote STRING -# Safely double-quotes a string. -# It escapes ways to execute code, but not variables. -## -dquote() { - str=$1 - str="${str//\\/\\\\}" # backslash - str="${str//\"/\\\"}" # dquote - str="${str//\$(/\\\$(}" # $(...) - str="${str//\`/\\\`}" # backtick - printf '"%s"\n' "$str" -} - -## -# Usage: expand_variables -# Expands variables read from /dev/stdin -## -expand_variables() { - while read; do - eval printf "'%s\n'" "$(dquote "$REPLY")" - done -} - -is_mounted() { - dir="$(readlink -m $1)" - mntpnt="$(cut -d' ' -f2 /proc/mounts|grep -- "$dir")" - [[ $dir = "$mntpnt" ]] - return $? -} - -################################################################################ -# PATH manipulation # -################################################################################ - -## -# Usage: path_ls PATH -# List executables in PATH (PATH is delimited by `:') -## -path_ls() { - dirs="`echo "$@"|sed 'y/:/ /'`" - find -L $dirs -maxdepth 1 -type f -executable -printf '%f\n' 2>/dev/null | sort -u -} - -## -# Usage: path_which PATH PROGRAM -# Find the full path of PROGRAM by searching PATH -## -path_which() { - mypath=$1 - prog=$2 - which=`which which` - PATH="$mypath" "$which" -- "$prog" 2>/dev/null -} - -################################################################################ -# wmii convenience functions # -################################################################################ - -## -# Usage: lstags -# Lists wmii tags -## -lstags() { - ls $WMII_DIR/tag | sed -e 's@/@@' -e '/^sel$/d' -} - -################################################################################ -# X11 functions # -################################################################################ - -## -# Usage: connected_to_x_server -# Return status indicates whether there is an X server at $DISPLAY -## -connected_to_x_server() { - xdpyinfo &>/dev/null - return $? -} - -################################################################################ -# My wmii configuration # -################################################################################ - -## -# Usage: scansection [SECTION] -# Reads the doc comments from a section of wmiirc. -# If SECTION is not given, it reads all doc comments. -## -scansection() { - file=`conffile config.sh` - sec=$1 - tmp=`mktemp` - # Isolate the sections we want. - if [ -n "$sec" ]; then - # Find the section - < "$file" sed -n "/^\s*$sec\s*()/,/##\s*End $sec/p" | sed '1d;$d'> $tmp - else - # Remove extra lines that mark the end of a section - < "$file" sed "/\s*}\s*##\s*End\s/d" > $tmp - fi - < $tmp sed -n '/##/p' | while read; do - var="$(echo "$REPLY" | sed -nr 's/^\s*(.*)\)\s*##.*/\1/p')" - comment="$(echo "$REPLY" | sed -r 's/.*## ?//')" - if [ -z "$var" ]; then - printf '%s\n' "$comment" - else - printf '\t%s\t%s\n' "$(echo "$var"|expand_variables)" "$comment" - fi - done - rm $tmp -} - -## -# Usage: conffile FILE -## -conffile() { - echo "$HOME/.wmii/$@" -} diff --git a/.config/wmii/wmiirc b/.config/wmii/wmiirc deleted file mode 100755 index a6bc4b4..0000000 --- a/.config/wmii/wmiirc +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -export _PATH="$PATH" -export PATH="$WMII_CONFPATH:$PATH" - -. include.sh - -wmiir xwrite /event WmiircQuit # close any existing wmiirc's - -Event WmiircStart - -trap "Event Quit" EXIT - -wmiir read /event 2>/dev/null | while read event; do - Event $event -done -- cgit v1.2.3-54-g00ecf