Add screenshots
15
README.md
|
@ -8,6 +8,8 @@ GUI scripts for popular cli tools, based on dialog and fzf
|
||||||
- `s` - for managing systemd services
|
- `s` - for managing systemd services
|
||||||
- `r` - for running named commands from ~/.aliases.txt file
|
- `r` - for running named commands from ~/.aliases.txt file
|
||||||
|
|
||||||
|
See [Screenshots](#screenshots) section
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
### Ubuntu/Debian-based
|
### Ubuntu/Debian-based
|
||||||
Download .deb package from [Releases](https://git.digitalstudium.com/digitalstudium/run/releases), then install it
|
Download .deb package from [Releases](https://git.digitalstudium.com/digitalstudium/run/releases), then install it
|
||||||
|
@ -23,4 +25,15 @@ git clone https://git.digitalstudium.com/digitalstudium/gui-scripts.git
|
||||||
sudo cp gui-scripts/{a,g,s,r} /usr/local/bin/
|
sudo cp gui-scripts/{a,g,s,r} /usr/local/bin/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Screenshots
|
||||||
|
### s
|
||||||
|
![Choose service](./screenshots/2024-03-16-191251_1897x1003_scrot.png)
|
||||||
|
![Choose action](./screenshots/2024-03-16-192537_749x517_scrot.png)
|
||||||
|
### g
|
||||||
|
![Choose action](./screenshots/2024-03-16-191200_847x602_scrot.png)
|
||||||
|
![Add commit message](./screenshots/2024-03-16-191212_753x423_scrot.png)
|
||||||
|
### a
|
||||||
|
![Choose action](./screenshots/2024-03-16-191235_719x514_scrot.png)
|
||||||
|
![Choose package](./screenshots/2024-03-16-191251_1897x1003_scrot.png)
|
||||||
|
### r
|
||||||
|
![Choose command && run](./screenshots/2024-03-16-192622_1882x215_scrot.png)
|
||||||
|
|
4
s
|
@ -4,9 +4,9 @@ cat > /tmp/.dialogrc << EOL
|
||||||
# Item color
|
# Item color
|
||||||
tag_color = (BLACK,WHITE,ON)
|
tag_color = (BLACK,WHITE,ON)
|
||||||
EOL
|
EOL
|
||||||
service=$(systemctl list-units --type service --all --plain --quiet | awk '{ print $1 }' | fzf)
|
service=$(systemctl list-units --type service --all --plain --quiet | awk '{ print $1 }' | fzf --multi --cycle --reverse --preview 'systemctl status {1}')
|
||||||
set +ex
|
set +ex
|
||||||
action=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --menu "Choose the action for $service" 10 40 0 "Status" 1 "Start" 2 "Stop" 3 "Disable" 4 "Enable" 5)
|
action=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --menu "Choose the action for $service" 10 40 0 "Start" 1 "Stop" 2 "Disable" 3 "Enable" 4)
|
||||||
|
|
||||||
|
|
||||||
if [ ! -z $action ]; then
|
if [ ! -z $action ]; then
|
||||||
|
|
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 1.5 MiB |
After Width: | Height: | Size: 1.3 MiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 249 KiB |