mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Merge branch 'master' of https://github.com/Lantaros/voidrice
This commit is contained in:
commit
24b56f526f
@ -5,28 +5,33 @@
|
|||||||
<family>serif</family>
|
<family>serif</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
<family>Linux Libertine</family>
|
<family>Linux Libertine</family>
|
||||||
<family>Noto Color Emoji</family>
|
|
||||||
<family>Joy Pixels</family>
|
<family>Joy Pixels</family>
|
||||||
|
<family>Noto Color Emoji</family>
|
||||||
</prefer>
|
</prefer>
|
||||||
</alias>
|
</alias>
|
||||||
<alias>
|
<alias>
|
||||||
<family>sans-serif</family>
|
<family>sans-serif</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
<family>Linux Biolinum</family>
|
<family>Linux Biolinum</family>
|
||||||
<family>Noto Color Emoji</family>
|
|
||||||
<family>Joy Pixels</family>
|
<family>Joy Pixels</family>
|
||||||
|
<family>Noto Color Emoji</family>
|
||||||
</prefer>
|
</prefer>
|
||||||
</alias>
|
</alias>
|
||||||
<alias>
|
<alias>
|
||||||
<family>sans</family>
|
<family>sans</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
<family>Linux Biolinum</family>
|
<family>Linux Biolinum</family>
|
||||||
<family>Noto Color Emoji</family>
|
|
||||||
<family>Joy Pixels</family>
|
<family>Joy Pixels</family>
|
||||||
|
<family>Noto Color Emoji</family>
|
||||||
</prefer>
|
</prefer>
|
||||||
</alias>
|
</alias>
|
||||||
<alias>
|
<alias>
|
||||||
<family>monospace</family>
|
<family>monospace</family>
|
||||||
<prefer><family>Inconsolata</family></prefer>
|
<prefer>
|
||||||
|
<family>Liberation Mono</family>
|
||||||
|
<family>Inconsolata</family>
|
||||||
|
<family>Joy Pixels</family>
|
||||||
|
<family>Noto Color Emoji</family>
|
||||||
|
</prefer>
|
||||||
</alias>
|
</alias>
|
||||||
</fontconfig>
|
</fontconfig>
|
||||||
|
|||||||
@ -4,7 +4,6 @@
|
|||||||
# This config file will use environmental variables such as $BROWSER and $TERMINAL.
|
# This config file will use environmental variables such as $BROWSER and $TERMINAL.
|
||||||
# You can set these variables in ~/.profile or ~/.bash_profile if you have it as below:
|
# You can set these variables in ~/.profile or ~/.bash_profile if you have it as below:
|
||||||
#
|
#
|
||||||
# export FILE="ranger"
|
|
||||||
# export TERMINAL="st"
|
# export TERMINAL="st"
|
||||||
|
|
||||||
# #---Basic Definitions---# #
|
# #---Basic Definitions---# #
|
||||||
@ -47,7 +46,7 @@ bindsym $mod+Shift+space floating toggle
|
|||||||
bindsym $mod+space focus mode_toggle
|
bindsym $mod+space focus mode_toggle
|
||||||
|
|
||||||
bindsym $mod+Escape workspace prev
|
bindsym $mod+Escape workspace prev
|
||||||
bindsym $mod+Shift+Escape exec prompt "Log out of i3?" "i3 exit"
|
bindsym $mod+Shift+Escape exec --no-startup-id prompt "Exit i3?" "i3 exit"
|
||||||
|
|
||||||
# bindsym $mod+BackSpace
|
# bindsym $mod+BackSpace
|
||||||
bindsym $mod+Shift+BackSpace exec --no-startup-id prompt "Reboot computer?" "$reboot"
|
bindsym $mod+Shift+BackSpace exec --no-startup-id prompt "Reboot computer?" "$reboot"
|
||||||
@ -56,7 +55,7 @@ bindsym $mod+grave exec --no-startup-id dmenuunicode
|
|||||||
##bindsym $mod+asciitilde
|
##bindsym $mod+asciitilde
|
||||||
|
|
||||||
#STOP/HIDE EVERYTHING:
|
#STOP/HIDE EVERYTHING:
|
||||||
bindsym $mod+Shift+Delete exec --no-startup-id amixer sset Master mute ; exec --no-startup-id mpc pause && pkill -RTMIN+10 i3blocks ; exec --no-startup-id pauseallmpv; workspace 0; exec $term -e htop ; exec $term -e $FILE
|
bindsym $mod+Shift+Delete exec --no-startup-id lmc mute ; exec --no-startup-id mpc pause && pkill -RTMIN+10 i3blocks ; exec --no-startup-id pauseallmpv; workspace 0; exec $term -e htop ; exec $term -e lf
|
||||||
|
|
||||||
# Show selection:
|
# Show selection:
|
||||||
bindsym $mod+Insert exec --no-startup-id showclip
|
bindsym $mod+Insert exec --no-startup-id showclip
|
||||||
@ -66,13 +65,13 @@ bindsym $mod+Insert exec --no-startup-id showclip
|
|||||||
bindsym $mod+q [con_id="__focused__" instance="^(?!dropdown_).*$"] kill
|
bindsym $mod+q [con_id="__focused__" instance="^(?!dropdown_).*$"] kill
|
||||||
bindsym $mod+Shift+q [con_id="__focused__" instance="^(?!dropdown_).*$"] exec --no-startup-id kill -9 `xdotool getwindowfocus getwindowpid`
|
bindsym $mod+Shift+q [con_id="__focused__" instance="^(?!dropdown_).*$"] exec --no-startup-id kill -9 `xdotool getwindowfocus getwindowpid`
|
||||||
|
|
||||||
bindsym $mod+w exec $term -e nmtui
|
bindsym $mod+w exec --no-startup-id $BROWSER
|
||||||
bindsym $mod+Shift+w exec --no-startup-id $BROWSER
|
bindsym $mod+Shift+w exec $term -e nmtui
|
||||||
|
|
||||||
bindsym $mod+e exec $term -e neomutt && pkill -RTMIN+12 i3blocks
|
bindsym $mod+e exec $term -e neomutt && pkill -RTMIN+12 i3blocks
|
||||||
bindsym $mod+Shift+e exec --no-startup-id tutorialvids
|
bindsym $mod+Shift+e exec --no-startup-id tutorialvids
|
||||||
|
|
||||||
bindsym $mod+r exec $term -e $FILE
|
bindsym $mod+r exec $term -e lf
|
||||||
bindsym $mod+Shift+r exec --no-startup-id winresize
|
bindsym $mod+Shift+r exec --no-startup-id winresize
|
||||||
|
|
||||||
bindsym $mod+t split toggle
|
bindsym $mod+t split toggle
|
||||||
@ -147,7 +146,7 @@ bindsym $mod+n exec $term -e newsboat && pkill -RTMIN+6 i3blocks
|
|||||||
bindsym $mod+Shift+n floating toggle; sticky toggle; exec --no-startup-id hover right
|
bindsym $mod+Shift+n floating toggle; sticky toggle; exec --no-startup-id hover right
|
||||||
|
|
||||||
bindsym $mod+m exec --no-startup-id $term -e ncmpcpp
|
bindsym $mod+m exec --no-startup-id $term -e ncmpcpp
|
||||||
bindsym $mod+Shift+m exec --no-startup-id amixer sset Master toggle && pkill -RTMIN+10 i3blocks
|
bindsym $mod+Shift+m exec --no-startup-id lmc toggle
|
||||||
|
|
||||||
# #---Workspace Bindings---# #
|
# #---Workspace Bindings---# #
|
||||||
bindsym $mod+Home workspace $ws1
|
bindsym $mod+Home workspace $ws1
|
||||||
@ -231,6 +230,7 @@ bindsym $mod+F9 exec --no-startup-id dmenumount
|
|||||||
bindsym $mod+F10 exec --no-startup-id dmenuumount
|
bindsym $mod+F10 exec --no-startup-id dmenuumount
|
||||||
bindsym $mod+F11 exec --no-startup-id ducksearch
|
bindsym $mod+F11 exec --no-startup-id ducksearch
|
||||||
bindsym $mod+F12 exec $term -e nmtui
|
bindsym $mod+F12 exec $term -e nmtui
|
||||||
|
bindsym $mod+Shift+F1 exec --no-startup-id toggle-welcome
|
||||||
|
|
||||||
# #---Arrow Keys---# #
|
# #---Arrow Keys---# #
|
||||||
bindsym $mod+Left focus left
|
bindsym $mod+Left focus left
|
||||||
@ -248,10 +248,10 @@ bindsym $mod+Ctrl+Right move workspace to output right
|
|||||||
|
|
||||||
# #---Media Keys---# #
|
# #---Media Keys---# #
|
||||||
# Volume keys
|
# Volume keys
|
||||||
bindsym $mod+plus exec --no-startup-id amixer sset Master 5%+ && pkill -RTMIN+10 i3blocks
|
bindsym $mod+plus exec --no-startup-id lmc up
|
||||||
bindsym $mod+Shift+plus exec --no-startup-id amixer sset Master 15%+ && pkill -RTMIN+10 i3blocks
|
bindsym $mod+Shift+plus exec --no-startup-id lmc up 15
|
||||||
bindsym $mod+minus exec --no-startup-id amixer sset Master 5%- && pkill -RTMIN+10 i3blocks
|
bindsym $mod+minus exec --no-startup-id lmc down
|
||||||
bindsym $mod+Shift+minus exec --no-startup-id amixer sset Master 15%- && pkill -RTMIN+10 i3blocks
|
bindsym $mod+Shift+minus exec --no-startup-id lmc down 15
|
||||||
bindsym $mod+less exec --no-startup-id mpc prev
|
bindsym $mod+less exec --no-startup-id mpc prev
|
||||||
bindsym $mod+Shift+less exec --no-startup-id mpc seek 0%
|
bindsym $mod+Shift+less exec --no-startup-id mpc seek 0%
|
||||||
bindsym $mod+greater exec --no-startup-id mpc next
|
bindsym $mod+greater exec --no-startup-id mpc next
|
||||||
@ -272,13 +272,13 @@ bindsym $mod+Delete exec $stoprec
|
|||||||
bindsym XF86Launch1 exec --no-startup-id xset dpms force off
|
bindsym XF86Launch1 exec --no-startup-id xset dpms force off
|
||||||
|
|
||||||
# #---Extra XF86 Keys---# #
|
# #---Extra XF86 Keys---# #
|
||||||
bindsym XF86AudioMute exec --no-startup-id amixer sset Master toggle && pkill -RTMIN+10 i3blocks
|
bindsym XF86AudioMute exec --no-startup-id lmc toggle
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id amixer sset Master 5%- && pkill -RTMIN+10 i3blocks
|
bindsym XF86AudioLowerVolume exec --no-startup-id lmc down
|
||||||
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id amixer sset Master 10%- && pkill -RTMIN+10 i3blocks
|
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id lmc down 10
|
||||||
bindsym Control+XF86AudioLowerVolume exec --no-startup-id amixer sset Master 1%- && pkill -RTMIN+10 i3blocks
|
bindsym Control+XF86AudioLowerVolume exec --no-startup-id lmc down 1
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 5%+ && pkill -RTMIN+10 i3blocks
|
bindsym XF86AudioRaiseVolume exec --no-startup-id lmc up
|
||||||
bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 10%+ && pkill -RTMIN+10 i3blocks
|
bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id lmc up 10
|
||||||
bindsym Control+XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 1%+ && pkill -RTMIN+10 i3blocks
|
bindsym Control+XF86AudioRaiseVolume exec --no-startup-id lmc up 1
|
||||||
bindsym XF86PowerOff exec --no-startup-id prompt "Shutdown computer?" "$shutdown"
|
bindsym XF86PowerOff exec --no-startup-id prompt "Shutdown computer?" "$shutdown"
|
||||||
##bindsym XF86Copy exec
|
##bindsym XF86Copy exec
|
||||||
##bindsym XF86Open exec
|
##bindsym XF86Open exec
|
||||||
@ -288,7 +288,7 @@ bindsym XF86PowerOff exec --no-startup-id prompt "Shutdown computer?" "$shutdow
|
|||||||
bindsym XF86Calculator exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24
|
bindsym XF86Calculator exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24
|
||||||
##bindsym XF86Sleep This binding is typically mapped by systemd automatically.
|
##bindsym XF86Sleep This binding is typically mapped by systemd automatically.
|
||||||
##bindsym XF86WakeUp exec
|
##bindsym XF86WakeUp exec
|
||||||
bindsym XF86Explorer exec $term -e $FILE
|
bindsym XF86Explorer exec $term -e lf
|
||||||
##bindsym XF86Send exec
|
##bindsym XF86Send exec
|
||||||
##bindsym XF86Xfer exec
|
##bindsym XF86Xfer exec
|
||||||
bindsym XF86WWW exec --no-startup-id $BROWSER
|
bindsym XF86WWW exec --no-startup-id $BROWSER
|
||||||
@ -297,7 +297,7 @@ bindsym XF86ScreenSaver exec exec --no-startup-id lockscreen
|
|||||||
##bindsym XF86RotateWindows exec
|
##bindsym XF86RotateWindows exec
|
||||||
##bindsym XF86TaskPane exec
|
##bindsym XF86TaskPane exec
|
||||||
##bindsym XF86Favorites exec
|
##bindsym XF86Favorites exec
|
||||||
bindsym XF86MyComputer exec $term -e $FILE
|
bindsym XF86MyComputer exec $term -e lf
|
||||||
##bindsym XF86Back exec
|
##bindsym XF86Back exec
|
||||||
##bindsym XF86Forward exec
|
##bindsym XF86Forward exec
|
||||||
bindsym XF86Eject exec --no-startup-id dmenuumount
|
bindsym XF86Eject exec --no-startup-id dmenuumount
|
||||||
@ -349,7 +349,7 @@ bindsym XF86Display exec --no-startup-id displayselect
|
|||||||
##bindsym XF86Reply exec
|
##bindsym XF86Reply exec
|
||||||
##bindsym XF86MailForward exec
|
##bindsym XF86MailForward exec
|
||||||
##bindsym XF86Save exec
|
##bindsym XF86Save exec
|
||||||
bindsym XF86Documents exec $term -e $FILE ~/Documents
|
bindsym XF86Documents exec $term -e lf ~/Documents
|
||||||
##bindsym XF86Battery exec
|
##bindsym XF86Battery exec
|
||||||
##bindsym XF86Bluetooth exec
|
##bindsym XF86Bluetooth exec
|
||||||
bindsym XF86WLAN exec $netrefresh
|
bindsym XF86WLAN exec $netrefresh
|
||||||
|
|||||||
@ -20,7 +20,6 @@ signal=6
|
|||||||
#interval=30
|
#interval=30
|
||||||
|
|
||||||
[pacpackages]
|
[pacpackages]
|
||||||
label=📦
|
|
||||||
interval=once
|
interval=once
|
||||||
signal=8
|
signal=8
|
||||||
|
|
||||||
|
|||||||
@ -55,18 +55,21 @@ filetype *.csv,*.xlsx sc-im %c
|
|||||||
fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - / /g" | cut -c -%pw
|
fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - / /g" | cut -c -%pw
|
||||||
|
|
||||||
filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus mpv --no-audio-display --input-ipc-server=/tmp/mpvsoc$(date +%%s) %c
|
filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus mpv --no-audio-display --input-ipc-server=/tmp/mpvsoc$(date +%%s) %c
|
||||||
filextype *.pdf,*.ps,*.eps,*.ps.gz,*.djvu,*.epub zathura %f 2>/dev/null &,
|
filextype *.pdf,*.ps,*.eps,*.ps.gz,*.djvu,*.epub,*.cbz,*.cbr,*.cb7 zathura %f 2>/dev/null &,
|
||||||
fileviewer *.pdf pdftotext -l 1 -nopgbrk %c -
|
fileviewer *.pdf pdftotext -l 1 -nopgbrk %c -
|
||||||
fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.qt,*.divx,*.as[fx],*mp3,*.flac file
|
fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.qt,*.divx,*.as[fx],*mp3,*.flac file
|
||||||
filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,*.as[fx] mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) %f 2>/dev/null &,
|
filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,*.as[fx] mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) %f 2>/dev/null &,
|
||||||
|
|
||||||
fileview *.zip,*.rar,*.tar.gz atool -l %f
|
fileview *.tar.gz atool -l --format=tar %f 2>/dev/null | awk '{$1=$2=$3=$4=$5=""; print $0}'
|
||||||
filetype *.zip,*.rar,*.tar.gz ext %f
|
fileview *.zip,*.cbz atool -l --format=zip %f 2>/dev/null | tail +4 | awk '{$1=$2=$3=""; print $0}'
|
||||||
|
fileview *.rar,*.cbr atool -l --format=rar %f 2>/dev/null | tail +9 | awk '{$1=$2=$3=$4=""; print $0}'
|
||||||
|
fileview *.7z,*.cb7 atool -l --format=7z %f 2>/dev/null | tail +20 | awk '{$1=$2=$3=$4=$5=""; print $0}'
|
||||||
|
filetype *.zip,*.7z,*.rar,*.tar.gz,*.tar.xz ext %f
|
||||||
|
|
||||||
fileviewer *.[1-8] man ./%c | col -b
|
fileviewer *.[1-8] man ./%c | col -b
|
||||||
filetype *.[1-8] man ./%c
|
filetype *.[1-8] man ./%c
|
||||||
|
|
||||||
fileviewer *.jpg,*.jpeg,*.png,*.ico vifmimg draw %px %py %pw %ph %c %pc vifmimg clear
|
fileviewer *.jpg,*.jpeg,*.png,*.ico,*.gif vifmimg draw %px %py %pw %ph %c %pc vifmimg clear
|
||||||
filextype *.bmp,*.jpg,*.jpeg,*.png,*.ico,*.gif,*.xpm rotdir %f 2>/dev/null | sxiv -ia 2>/dev/null &
|
filextype *.bmp,*.jpg,*.jpeg,*.png,*.ico,*.gif,*.xpm rotdir %f 2>/dev/null | sxiv -ia 2>/dev/null &
|
||||||
|
|
||||||
filextype *.svg inkscape %f 2>/dev/null &
|
filextype *.svg inkscape %f 2>/dev/null &
|
||||||
|
|||||||
10
.local/bin/i3cmds/toggle-welcome
Executable file
10
.local/bin/i3cmds/toggle-welcome
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Toggles the LARBS welcome message.
|
||||||
|
|
||||||
|
PIC="$HOME/.local/share/larbs/larbs.png"
|
||||||
|
|
||||||
|
grep LARBSWELCOME "$HOME/.xprofile" &&
|
||||||
|
( sed -i "/LARBSWELCOME/d" ~/.xprofile && notify-send -i "$PIC" "LARBS welcome message" "Welcome message disabled. Press Super+Shift+F1 again to reverse." ) ||
|
||||||
|
( echo "notify-send -i \"$PIC\" \"Welcome to LARBS\" \"Press super+F1 for the help menu.\" # LARBSWELCOME" >> ~/.xprofile &&
|
||||||
|
notify-send -i "$PIC" "LARBS welcome message" "Welcome message re-enabled." )
|
||||||
27
.local/bin/lmc
Executable file
27
.local/bin/lmc
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
NUM="${2:-5}"
|
||||||
|
|
||||||
|
# Uncomment the following line to use Pulseaudio.
|
||||||
|
# PULSE=true
|
||||||
|
|
||||||
|
if [ "$PULSE" ]; then
|
||||||
|
toggle() { pulsemixer --toggle-mute ;}
|
||||||
|
mute() { pulsemixer --mute ;}
|
||||||
|
up() { pulsemixer --change-volume +"$NUM" ;}
|
||||||
|
down() { pulsemixer --change-volume -"$NUM" ;}
|
||||||
|
else
|
||||||
|
toggle() { amixer sset Master toggle ;}
|
||||||
|
mute() { amixer sset Master mute ;}
|
||||||
|
up() { amixer sset Master "$NUM"%+ ;}
|
||||||
|
down() { amixer sset Master "$NUM"%- ;}
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
toggle) toggle ;;
|
||||||
|
mute) mute ;;
|
||||||
|
up) up ;;
|
||||||
|
down) down ;;
|
||||||
|
esac >/dev/null
|
||||||
|
|
||||||
|
pkill -RTMIN+10 "${STATUSBAR:?}" &
|
||||||
@ -13,10 +13,10 @@
|
|||||||
[ -d "$1" ] && mv "$(find "$1"/*.{jpg,jpeg,png} -type f | shuf -n 1)" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Random Wallpaper chosen."
|
[ -d "$1" ] && mv "$(find "$1"/*.{jpg,jpeg,png} -type f | shuf -n 1)" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Random Wallpaper chosen."
|
||||||
|
|
||||||
# If pywal is installed, use it.
|
# If pywal is installed, use it.
|
||||||
type wal >/dev/null 2>&1 && { wal -c ;
|
type wal >/dev/null 2>&1 && { wal -c
|
||||||
wal -s -i ~/.config/wall.png -o ~/.config/wal/postrun;
|
wal -s -i ~/.config/wall.png -o ~/.config/wal/postrun
|
||||||
xsetroot -name "fsignal:xrdb";
|
xsetroot -name "fsignal:xrdb"
|
||||||
killall dwmblocks;
|
killall dwmblocks
|
||||||
setsid dwmblocks >/dev/null 2>&1 & }
|
setsid dwmblocks >/dev/null & } >/dev/null 2>&1
|
||||||
|
|
||||||
xwallpaper --zoom ~/.config/wall.png
|
xwallpaper --zoom ~/.config/wall.png
|
||||||
|
|||||||
@ -10,8 +10,7 @@ case $BLOCK_BUTTON in
|
|||||||
" ;;
|
" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="📡"
|
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="📡" ||
|
||||||
|
wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "📶", int($3 * 100 / 70) "%" }')
|
||||||
|
|
||||||
[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "📶", int($3 * 100 / 70) "%" }')
|
printf "%s %s\n" "$wifiicon" "$(sed "s/down/❎/;s/up/🌐/" /sys/class/net/e*/operstate)"
|
||||||
|
|
||||||
printf "%s %s\n" "$wifiicon" "$(cat /sys/class/net/e*/operstate | sed "s/down/❎/;s/up/🌐/")"
|
|
||||||
|
|||||||
0
.local/bin/statusbar/moonphase
Normal file → Executable file
0
.local/bin/statusbar/moonphase
Normal file → Executable file
@ -14,7 +14,7 @@ volstat="$(amixer get Master)"
|
|||||||
|
|
||||||
echo "$volstat" | grep "\[off\]" >/dev/null && printf "🔇\\n" && exit
|
echo "$volstat" | grep "\[off\]" >/dev/null && printf "🔇\\n" && exit
|
||||||
|
|
||||||
vol=$(echo "$volstat" | grep -o "\[[0-9]\+%\]" | sed 's/[^0-9]*//g')
|
vol=$(echo "$volstat" | grep -o "\[[0-9]\+%\]" | sed "s/[^0-9]*//g;1q")
|
||||||
|
|
||||||
if [ "$vol" -gt "70" ]; then
|
if [ "$vol" -gt "70" ]; then
|
||||||
icon="🔊"
|
icon="🔊"
|
||||||
|
|||||||
3
.profile
3
.profile
@ -12,7 +12,6 @@ export EDITOR="nvim"
|
|||||||
export TERMINAL="st"
|
export TERMINAL="st"
|
||||||
export BROWSER="brave"
|
export BROWSER="brave"
|
||||||
export READER="zathura"
|
export READER="zathura"
|
||||||
export FILE="lf"
|
|
||||||
export STATUSBAR="${LARBSWM}blocks"
|
export STATUSBAR="${LARBSWM}blocks"
|
||||||
|
|
||||||
# ~/ Clean-up:
|
# ~/ Clean-up:
|
||||||
@ -45,5 +44,3 @@ export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
|
|||||||
|
|
||||||
# Switch escape and caps if tty and no passwd required:
|
# Switch escape and caps if tty and no passwd required:
|
||||||
sudo -n loadkeys ~/.local/share/larbs/ttymaps.kmap 2>/dev/null
|
sudo -n loadkeys ~/.local/share/larbs/ttymaps.kmap 2>/dev/null
|
||||||
|
|
||||||
export LF_ICONS="di=:fi=:ln=:or=:ex=:*.c=:*.cc=:*.clj=:*.coffee=:*.cpp=:*.css=:*.d=:*.dart=:*.erl=:*.exs=:*.fs=:*.go=:*.h=:*.hh=:*.hpp=:*.hs=:*.html=:*.java=:*.jl=:*.js=:*.json=:*.lua=:*.md=:*.php=:*.pl=:*.pro=:*.py=:*.rb=:*.rs=:*.scala=:*.ts=:*.vim=:*.cmd=:*.ps1=:*.sh=:*.bash=:*.zsh=:*.fish=:*.tar=:*.tgz=:*.arc=:*.arj=:*.taz=:*.lha=:*.lz4=:*.lzh=:*.lzma=:*.tlz=:*.txz=:*.tzo=:*.t7z=:*.zip=:*.z=:*.dz=:*.gz=:*.lrz=:*.lz=:*.lzo=:*.xz=:*.zst=:*.tzst=:*.bz2=:*.bz=:*.tbz=:*.tbz2=:*.tz=:*.deb=:*.rpm=:*.jar=:*.war=:*.ear=:*.sar=:*.rar=:*.alz=:*.ace=:*.zoo=:*.cpio=:*.7z=:*.rz=:*.cab=:*.wim=:*.swm=:*.dwm=:*.esd=:*.jpg=:*.jpeg=:*.mjpg=:*.mjpeg=:*.gif=:*.bmp=:*.pbm=:*.pgm=:*.ppm=:*.tga=:*.xbm=:*.xpm=:*.tif=:*.tiff=:*.png=:*.svg=:*.svgz=:*.mng=:*.pcx=:*.mov=:*.mpg=:*.mpeg=:*.m2v=:*.mkv=:*.webm=:*.ogm=:*.mp4=:*.m4v=:*.mp4v=:*.vob=:*.qt=:*.nuv=:*.wmv=:*.asf=:*.rm=:*.rmvb=:*.flc=:*.avi=:*.fli=:*.flv=:*.gl=:*.dl=:*.xcf=:*.xwd=:*.yuv=:*.cgm=:*.emf=:*.ogv=:*.ogx=:*.aac=:*.au=:*.flac=:*.m4a=:*.mid=:*.midi=:*.mka=:*.mp3=:*.mpc=:*.ogg=:*.ra=:*.wav=:*.oga=:*.opus=:*.spx=:*.xspf=:*.pdf="
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user