mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
Added usb mount support to polybar
This commit is contained in:
parent
a9151051f5
commit
f16a1986b0
@ -36,22 +36,19 @@ A repository of my personal configuration files.
|
|||||||
** Applications
|
** Applications
|
||||||
- [[https://github.com/sharkdp/bat][bat]]
|
- [[https://github.com/sharkdp/bat][bat]]
|
||||||
- [[https://brave.com/][brave]]
|
- [[https://brave.com/][brave]]
|
||||||
- [[https://github.com/baskerville/bspwm][bspwm]]
|
|
||||||
- [[https://github.com/caffeine-ng/caffeine-ng][caffeine-ng]]
|
- [[https://github.com/caffeine-ng/caffeine-ng][caffeine-ng]]
|
||||||
- [[https://the.exa.website/][exa]]
|
- [[https://the.exa.website/][exa]]
|
||||||
- [[https://fishshell.com/][fish]]
|
|
||||||
- [[https://github.com/junegunn/fzf][fzf]]
|
- [[https://github.com/junegunn/fzf][fzf]]
|
||||||
- [[https://git-scm.com/][git]]
|
|
||||||
- [[https://github.com/cylgom/ly][Ly]]
|
|
||||||
- [[https://github.com/internalfx/mailcap][mailcap]]
|
- [[https://github.com/internalfx/mailcap][mailcap]]
|
||||||
- [[https://mpv.io/][mpv]]
|
- [[https://mpv.io/][mpv]]
|
||||||
|
- [[https://github.com/phuhl/notify-send.py][notify-send.py]]
|
||||||
- [[https://github.com/cdemoulins/pamixer][pamixer]]
|
- [[https://github.com/cdemoulins/pamixer][pamixer]]
|
||||||
- [[https://github.com/dylanaraps/pfetch][pfetch]]
|
- [[https://github.com/dylanaraps/pfetch][pfetch]]
|
||||||
- [[https://www.freedesktop.org/wiki/Software/PulseAudio/][Pulseaudio]]
|
- [[https://www.freedesktop.org/wiki/Software/PulseAudio/][Pulseaudio]]
|
||||||
- [[https://github.com/dylanaraps/pywal][pywal]]
|
- [[https://github.com/dylanaraps/pywal][pywal]]
|
||||||
- [[http://www.gnu.org/software/stow/][stow]]
|
- [[http://www.gnu.org/software/stow/][stow]]
|
||||||
- [[https://www.python.org/][Python]]
|
- [[https://www.python.org/][Python]]
|
||||||
- [[https://github.com/baskerville/sxhkd][sxhkd]]
|
- [[https://www.freedesktop.org/wiki/Software/udisks/][udisks]]
|
||||||
- [[https://github.com/stoeckmann/xwallpaper][xwallpaper]]
|
- [[https://github.com/stoeckmann/xwallpaper][xwallpaper]]
|
||||||
** LSP Backends
|
** LSP Backends
|
||||||
- [[https://github.com/mads-hartmann/bash-language-server][bash-language-server]]
|
- [[https://github.com/mads-hartmann/bash-language-server][bash-language-server]]
|
||||||
|
@ -44,6 +44,7 @@ bspc rule -a wttr state=floating
|
|||||||
bspc rule -a neomutt state=floating
|
bspc rule -a neomutt state=floating
|
||||||
bspc rule -a newsboat state=floating
|
bspc rule -a newsboat state=floating
|
||||||
bspc rule -a updatearch state=floating
|
bspc rule -a updatearch state=floating
|
||||||
|
bspc rule -a lf state=floating
|
||||||
bspc rule -a Spotify desktop='^4'
|
bspc rule -a Spotify desktop='^4'
|
||||||
bspc rule -a Spt desktop='^4'
|
bspc rule -a Spt desktop='^4'
|
||||||
bspc rule -a Emacs state=tiled
|
bspc rule -a Emacs state=tiled
|
||||||
|
@ -57,15 +57,9 @@ case "$1" in
|
|||||||
devices=$(lsblk -Jplno NAME,TYPE,RM,MOUNTPOINT)
|
devices=$(lsblk -Jplno NAME,TYPE,RM,MOUNTPOINT)
|
||||||
|
|
||||||
for mount in $(echo "$devices" | jq -r '.blockdevices[] | select(.type == "part") | select(.rm == true) | select(.mountpoint == null) | .name'); do
|
for mount in $(echo "$devices" | jq -r '.blockdevices[] | select(.type == "part") | select(.rm == true) | select(.mountpoint == null) | .name'); do
|
||||||
# udisksctl mount --no-user-interaction -b "$mount"
|
|
||||||
|
|
||||||
# mountpoint=$(udisksctl mount --no-user-interaction -b $mount)
|
|
||||||
# mountpoint=$(echo $mountpoint | cut -d " " -f 4 | tr -d ".")
|
|
||||||
# terminal -e "bash -lc 'filemanager $mountpoint'"
|
|
||||||
|
|
||||||
mountpoint=$(udisksctl mount --no-user-interaction -b "$mount")
|
mountpoint=$(udisksctl mount --no-user-interaction -b "$mount")
|
||||||
mountpoint=$(echo "$mountpoint" | cut -d " " -f 4 | tr -d ".")
|
mountpoint=$(echo "$mountpoint" | cut -d " " -f 4 | tr -d ".")
|
||||||
alacritty -e vifm "$mountpoint" &
|
alacritty --class lf,lf -e lf "$mountpoint" &
|
||||||
done
|
done
|
||||||
|
|
||||||
usb_update
|
usb_update
|
||||||
|
@ -41,6 +41,7 @@ inherit = bar/base-laptop
|
|||||||
bottom = true
|
bottom = true
|
||||||
monitor = ${env:MONITOR:eDP1}
|
monitor = ${env:MONITOR:eDP1}
|
||||||
|
|
||||||
|
modules-right = system-usb-udev filesystem
|
||||||
modules-center = mpd player-mpris-tail
|
modules-center = mpd player-mpris-tail
|
||||||
|
|
||||||
[bar/laptop-top]
|
[bar/laptop-top]
|
||||||
@ -49,7 +50,7 @@ monitor = ${env:MONITOR:eDP1}
|
|||||||
|
|
||||||
modules-left = bspwm
|
modules-left = bspwm
|
||||||
modules-center = battery0 battery1 wlan wg0 wg1 bluetooth
|
modules-center = battery0 battery1 wlan wg0 wg1 bluetooth
|
||||||
modules-right = xbacklight volume-laptop memory cpu temperature filesystem docker updates-arch-combined mail reddit github rss weather date
|
modules-right = xbacklight volume-laptop memory cpu temperature docker updates-arch-combined mail reddit github rss weather date
|
||||||
|
|
||||||
tray-position = right
|
tray-position = right
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user