- Shell 100%
|
|
||
|---|---|---|
| batteristatus.sh | ||
| bgshuffle.sh | ||
| bluetooth.sh | ||
| dagsrevyen.sh | ||
| emoji | ||
| emoji.sh | ||
| hjemmeside.sh | ||
| lastopp.sh | ||
| LICENSE | ||
| mussikk.sh | ||
| nestebg.sh | ||
| nyttpaanytt.sh | ||
| radio.sh | ||
| radiokanaler | ||
| README.org | ||
| ytfeed.sh | ||
Scripts by Einar Mostad
General overview
These are Bash-scripts I use mostly in combination with the Sway window manager on GNU/Linux. I do not use a bar or panel since it wastes space. Therefore, some of these scipts implement functionality that is commonly found in bars like a battery indicator or a script to turn bluetooth on. Other scripts are nice to have functionality like a radio player, an album-based music player and a way to get the latest TV news or satire program. I bind my scripts and other functionality I use often to keyboard shortcuts in Sway and often bind something to stop what the script does to the same keyboard shortcut plus shift.
The file for each script starts with a comment that explains everything you need to know about its use and dependencies which is why I do not go into further deails here. Since Sway is a Wayland-native window manager, I do not use X11-native dependencies. I used to use bemenu in many of my scripts as a Wayland-native dmenu replacement. However, I have opted to use fzf instead lately since this makes it possible to use the same scripts within Sway (launched with "exec foot scriptname.sh" by a keyboard shortcut to have a foot terminal window for fzf) as on the tty, in WSL2, in a terminal inside Emacs (GUI or terminal) etc. Since the lowest common denominator is the tty, it is nice to make scripts runnable there if the nature of their functionality allows it.
On replacing these scripts with Emacs Lisp functions or built-in functionality
I replaced my Bash Shell scripts with functions inside my Emacs configuration or built in functionality in Emacs. I launch my functions with keyboard shortcuts in Sway or Emacs. I no longer clone down this repo in my install scripts. See the table below for what I have replaced with what. I keep this repo as a record of my past Bash scripts. If you prefer Bash scripts over Emacs functions, then have a look and see if you can reuse or remix the code (with a GPLv3 license) or the ideas for your own scripts.
| Bash Shell script | Superseeded by |
|---|---|
| batteristatus.sh | Battery status in Emacs mode line |
| bgshuffle.sh | Emo-bgshuffle function inside my Emacs config |
| bluetooth.sh | Nothing. I never use bluetooth with my PCs now. |
| dagsrevyen.sh | Nothing. NRK changed their URLs too often and live streams no longer work. |
| emoji.sh | Emoji picker inside Emacs (C-x 8 e e) |
| hjemmeside.sh | Emo-hjemmeside function inside my Emacs configuration |
| lastopp.sh | I changed how I update my website so this script is irrelevant now. |
| mussikk.sh | Emo-play-album function inside Emacs and MPC mode inside Emacs |
| nestebg.sh | Emo-nestebg function inside my Emacs config |
| nyttpaanytt.sh | Nothing. NRK changed their URLs too often and live streams no longer work. |
| radio.sh | Emo-radio function that I run from the inside of Emacs |
| ytfeed.sh | Emo-ytfeed function in my Emacs config |
License and copyright
These scripts are shared under the license terms of the GNU General Public License version 3 or later (at your choice). See the License file for more information.
Copyright 2019 - 2025 Einar Mostad