e33io,

i'm working on my baraction script.. ..is using ping an expensive/excessive way to check if (and which) network interface is connected?

https://gitlab.com/e33io/dotfiles/-/blob/5ff2e527decec573d0b336b37aa1914c2c5e550a/.config/spectrwm/baraction.sh

e33io,

ok, i think i found a cleaner solution within ip a to check if (and which) network interface is connected..
..using grep state UP in the function seems to work (tested by physically unplugging/re-plugging the network cable)

https://gitlab.com/e33io/dotfiles/-/blob/main/.config/spectrwm/baraction.sh#L11

dekkzz76,
@dekkzz76@emacs.ch avatar

@e33io

how you surviving the dynamic windowing?

e33io,

@dekkzz76 only using on my secondary workstation at the moment, but so far it's not too bad.. ..once i dialed in some of the keybindings to control the workspaces it got a lot better

dekkzz76,
@dekkzz76@emacs.ch avatar

@e33io

its very lightweight u can use lemon bar if you want

e33io,

@dekkzz76 i think i want to figure out the default bar if i can.. ..it's kinda fun to work through the functions.. ..plus i only need workspace indicators, active window name, date/time, audio volume level and network connection status

dekkzz76,
@dekkzz76@emacs.ch avatar

@e33io

then slowly but surely your in full yak shaving mode & before you know it everything is in comic sans

e33io,
dekkzz76,
@dekkzz76@emacs.ch avatar

@e33io

not illegible enough ;)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • JUstTest
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • megavids
  • lostlight
  • All magazines