diff --git a/misc/asound.conf b/misc/asound.conf new file mode 100644 index 0000000..ba4ab35 --- /dev/null +++ b/misc/asound.conf @@ -0,0 +1,49 @@ +defaults.pcm.card 1 +defaults.ctl.card 1 + +defaults.pcm.rate_converter "speexrate_best" + +pcm.!default { + type asym + + + playback.pcm "plug:Output" +} + +pcm.Output { + type dmix + + ipc_key 1024 + ipc_perm 0666 + slave { + pcm "hw:1,0" + + rate 48000 + periods 128 + period_time 0 + period_size 2048 + buffer_size 32768 + + } +} + +pcm.Input { + type dsnoop + + ipc_key 1025 + ipc_perm 0666 + slave { + pcm "hw:1,0" + + rate 48000 + periods 128 + period_time 0 + period_size 2048 + buffer_size 32768 + } +} + +ctl.dmixer { + type hw + card 0 +} diff --git a/misc/bar.es b/misc/bar.es deleted file mode 100755 index f81ef86..0000000 --- a/misc/bar.es +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/es - -fn interval{ - n=`{date|sed -ne 's^.*[0-9][0-9]:[0-9][0-9]:\([0-9][0-9]\).*^\1^p'} - sleep `{expr - 60 `{expr % $n 60}} - } - -# Display Time using 24h notation. -fn clock{ - date|sed -ne 's^.*\([0-9][0-9]\):\([0-9][0-9]\):[0-9][0-9].*^\1\2^p' - } -# Acquire the name of the current machine's primary interface. -fn iface_get{ - if{~ $HOSTNAME speculatores} - {printf wlp2s0}\ - {printf eno1} - } - -# Acquire the IP of the current connection. Needs to be made portable. -fn ip{ - x=`{ifconfig wlp2s0|sed -ne 's^.*addr:\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\).*^\1^p'} - if{~ `{route|sed 3!d|cut -b1-7} 'default'} - {if {!~ $x ''} - {printf %s $x}\ - {printf %s 'G/W'} - }\ - {printf N/A} - } -# Display the current battery capacity and status -fn pwr{ - if{~ `{cat /sys/class/power_supply/BAT1/status} 'Discharging'}\ - {printf --%s%% `{cat /sys/class/power_supply/BAT1/capacity}}\ - {printf ++%s%% `{cat /sys/class/power_supply/BAT1/capacity}} - } - - - -fn tmp_helper{ - snarf 'http://wttr.in/?format=3' -|sed -ne \ - 's^.*\(.[0-9][0-9]*.C\)^\1^p' > $FXDE_DIR/fxde-core/info/temp - touch $FXDE_DIR/fxde-core/info/timepiece - } -fn tmp{ - ival=120 - - # If we've rolled over into a second minute and timepiece does not exist... - if {`{expr % `{expr - $ival `{expr \* `{date|cut -d':' -f2} 60}} 60}&&\ - ! test -e $FXDE_DIR/fxde-core/info/timepiece} - {printf UPD - tmp_helper}\ - {test -e $FXDE_DIR/fxde-core/info/timepiece && ! `{expr % `{expr - 120 `{expr \* `{date|cut -d':' -f2} 60}} 1200}} - {rm $FXDE_DIR/fxde-core/info/timepiece}\ - {test -s $FXDE_DIR/fxde-core/info/temp} - {cat $FXDE_DIR/fxde-core/info/temp}\ - {printf CND} - } - -fn curdesk iter {if{~ $wm shod}{if {~ `{lsd|sed $iter!d|cut -b1} '*'}{printf %i $iter}{curdesk `{expr + 1 $iter}}}{printf %s N/A}} - -while {true}{ - printf '%%{l}[ %s | %%{A:xcalendar:}%s%%{A} | %s | %s ]\n' `{pwr} `{clock} `{ip} `{curdesk 1} - sleep 1 -} diff --git a/misc/bar.sh b/misc/bar.sh deleted file mode 100755 index 907339e..0000000 --- a/misc/bar.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/sh -e - -FXDE_DIR=/home/midfavila/.config/fxde - -tme() #Display current time in 24h notation -{ - date|sed -ne 's/ */ /gp'|cut -d ' ' -f4|sed -ne 's/\([0-9][0-9]\):\([0-9][0-9]\).*/\1\2/p' -} - -pwr() #Display current battery capacity and whether we're discharging or not. -{ - if [ "$(cat /sys/class/power_supply/BAT1/status)" = "Discharging" ] - then printf "%s%%--" "$(cat /sys/class/power_supply/BAT1/capacity)" - else printf "%s%%++" "$(cat /sys/class/power_supply/BAT1/capacity)" - fi -} - -ip() #Acquire the IP of our current connection. This is awful. I'm so sorry. -{ - x=$(ifconfig wlp2s0|sed -ne 's/.*addr:\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\).*/\1/p') - if [ "$(route|sed 3!d|cut -b1-7)" != "default" ] - then printf "GW!" - ssu route add default gw 192.168.1.1 - elif [ "${x}" ] - then printf "%s" "${x}" - else - printf "N/A" - fi -} - -tmp_helper() -{ - curl -s http://wttr.in/?format=1|\ - sed -ne 's/.*\(.[0-9][0-9]*.C\)/\1/p' > "${FXDE_DIR}/fxde-core/info/temp" - touch "${FXDE_DIR}/fxde-core/info/timepiece" -} - -tmp() #Acquire ambient temperature from wttr.in every ival seconds -{ - ival=120 #How often do we check? - - if [ $(expr % $(expr - "${ival}" $(expr \* $(date|cut -d ':' -f2) 60)) "${ival}" ) ] && \ - [ ! -e "${FXDE_DIR}/fxde-core/info/timepiece" ] - then printf "UPD" - tmp_helper - elif [ -e "${FXDE_DIR}/fxde-core/info/timepiece" ] && \ - [ ! $(expr % $(expr - 120 $(expr \* $(date|cut -d ':' -f2) 60)) 1200) ] - then rm "${FXDE_DIR}/fxde-core/info/timepiece" - elif [ -s "${FXDE_DIR}/fxde-core/info/temp" ] - then cat "${FXDE_DIR}/fxde-core/info/temp" - else - printf "COND" - fi - -} - -curdesk() -{ - x=0 - target=' ' - while [ "$target" != "*" ] - do - x=$(expr + 1 $x) - target=$(lsd|sed "${x}!d"|cut -b1) - done - printf "%s" "${x}" -} - -while true;do sleep 1; printf "%%{l}[ %s | %%{A:xcalendar:}%s%%{A} | %s | %s | %%{A:rm "${FXDE_DIR}/fxde-core/info/timepiece":}%s%%{A} ]\n" "$(curdesk)" "$(tme)" "$(pwr)" "$(ip)" "$(tmp)";done diff --git a/misc/endsession.sh b/misc/endsession.sh index 99c75bd..f8ee07f 100755 --- a/misc/endsession.sh +++ b/misc/endsession.sh @@ -1,6 +1,6 @@ #!/bin/sh -for service in stalonetray sxhkd picom aepanel $wm +for service in repsawn xclock xload stalonetray sxhkd picom $wm do pkill $service done diff --git a/misc/flycheck_init.elc b/misc/flycheck_init.elc deleted file mode 100644 index bde7866..0000000 Binary files a/misc/flycheck_init.elc and /dev/null differ diff --git a/misc/legacy/bar.old b/misc/legacy/bar.old deleted file mode 100755 index 9d2f84f..0000000 --- a/misc/legacy/bar.old +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/sh -e - -FXDE_DIR=/home/midfavila/.config/fxde - -tme() #Display current time in 24h notation -{ - date|sed -ne 's/ */ /gp'|cut -d ' ' -f4|sed -ne 's/\([0-9][0-9]\):\([0-9][0-9]\).*/\1\2/p' -} - -pwr() #Display current battery capacity and whether we're discharging or not. -{ - if [ "$(cat /sys/class/power_supply/BAT1/status)" = "Discharging" ] - then printf "%s%%--" "$(cat /sys/class/power_supply/BAT1/capacity)" - else printf "%s%%++" "$(cat /sys/class/power_supply/BAT1/capacity)" - fi -} - -ip() #Acquire the IP of our current connection. This is awful. I'm so sorry. -{ - x=$(ifconfig wlp2s0|sed -ne 's/.*addr:\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\).*/\1/p') - if [ "$(route|sed 3!d|cut -b1-7)" != "default" ] - then printf "ERR" - elif [ "${x}" ] - then printf "%s" "${x}" - else - printf "N/A" - fi -} - -tmp_helper() -{ - curl -s http://wttr.in/?format=1|\ - sed -ne 's/.*\(.[0-9][0-9]*.C\)/\1/p' > "${FXDE_DIR}/fxde-core/info/temp" - touch "${FXDE_DIR}/fxde-core/info/timepiece" -} - -tmp() #Acquire ambient temperature from wttr.in every ival seconds -{ - ival=120 #How often do we check? - - if [ $(expr % $(expr - "${ival}" $(expr \* $(date|cut -d ':' -f2) 60)) "${ival}" ) ] && \ - [ ! -e "${FXDE_DIR}/fxde-core/info/timepiece" ] - then printf "UPD" - tmp_helper - elif [ -e "${FXDE_DIR}/fxde-core/info/timepiece" ] && \ - [ ! $(expr % $(expr - 120 $(expr \* $(date|cut -d ':' -f2) 60)) 1200) ] - then rm "${FXDE_DIR}/fxde-core/info/timepiece" - elif [ -s "${FXDE_DIR}/fxde-core/info/temp" ] - then cat "${FXDE_DIR}/fxde-core/info/temp" - else - printf "COND" - fi - -} - -curdesk() -{ - x=0 - target=' ' - while [ "$target" != "*" ] - do - x=$(expr + 1 $x) - target=$(lsd|sed "${x}!d"|cut -b1) - done - printf "%s" "${x}" -} - -while true;do sleep 1; printf "%%{l}[ %s | %%{A:xcalendar:}%s%%{A} | %s | %s | %%{A:rm "${FXDE_DIR}/fxde-core/info/timepiece":}%s%%{A} ]\n" "$(curdesk)" "$(tme)" "$(pwr)" "$(ip)" "$(tmp)";done diff --git a/misc/menu b/misc/menu index fdc8b1f..0dd613d 100755 --- a/misc/menu +++ b/misc/menu @@ -13,7 +13,7 @@ Inet Browser Links IM Pidgin Media - Paint mtpaint + Paint classic-colors Systools Editor emacsclient -cunq Terminal xterm diff --git a/misc/sxhkdrc b/misc/sxhkdrc index 1fddbfc..0110e3c 100644 --- a/misc/sxhkdrc +++ b/misc/sxhkdrc @@ -8,11 +8,11 @@ ctrl + Pause ; ctrl + r #Prompt the user for a Scheme expression ctrl + Pause ; shift + colon - gsi -e "$(printf "\n"|xprompt 'gsi>')"|xmessage -file - + gsi -e "$(printf "\n"|dmenu 'gsi>')"|xmessage -file - #Prompt the user for a shell command ctrl + Pause ; shift + exclam - printf "\n"|xprompt "sh:"|sh - + printf "\n"|dmenu "sh:"|sh - #Start our IM client ctrl + Pause ; p ; i @@ -44,7 +44,7 @@ ctrl + Pause ; w ; t #Switch between windows ctrl + Pause ; shift + W - wmctrl -ia "$(${FXDE_DIR}/fxde-core/scripts/winlist.sh|sort -rfn|xprompt -dsi '?: '|sed 's/\(^ *\)//')" + wmctrl -ia "$(${FXDE_DIR}/fxde-core/scripts/winlist.sh|sort -rfn|dmenu '?: '|sed 's/\(^ *\)//')" #Kill the current window ctrl + Pause ; w ; shift + K diff --git a/misc/utils.es b/misc/utils.es deleted file mode 100644 index 0159f34..0000000 --- a/misc/utils.es +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/es - -fn swap_win{ - $FXDE_DIR/fxde-core/scripts/winlist.sh|sort -rfn|xprompt -dfi \?:|sed 's/\(^ *\)//'|wtf `{cat /dev/stdin};chwso -r `pfw - } diff --git a/misc/xsession b/misc/xsession index 02c66ad..ca317c5 100755 --- a/misc/xsession +++ b/misc/xsession @@ -18,7 +18,7 @@ fn setup_daemons{ picom -cCzfGD3 -i.85 --shadow-exclude bounding_shaped --vsync --no-use-damage --backend $backend& # Manage clicks on the root window. - # xclickroot -1 aemenu & + # xclickroot -1 xmenu & # Manage hotkeys. sxhkd -c $FXDE_DIR/fxde-core/config/sxhkdrc &