1

Generate containers file for rofi

This commit is contained in:
2023-05-25 00:14:39 +02:00
parent f5c25b7a0b
commit bb8d06ee7f
5 changed files with 12 additions and 9 deletions

View File

@ -1,6 +0,0 @@
jellyfin
sonarr
radarr
hydra
sabnzbd
homeassistant

View File

@ -1,7 +1,7 @@
#!/usr/bin/env fish
# User chooses service, running services are marked in green
set SERVICES (cat ~/NixFlake/config/rofi/menus/containers.txt) # TODO: This file should probably be generated by nix?
set SERVICES (cat /etc/rofi-containers)
set PROMPT ""
for SERVICE in $SERVICES
set SERVICE_RUNNING "$(systemctl list-units podman-$SERVICE.service | grep podman-$SERVICE.service)"

View File

@ -1,7 +1,7 @@
#!/usr/bin/env fish
# User chooses VPN server, running servers are marked in green
set SERVERS (cat /etc/rofi-vpns) # TODO: This file should probably be generated by nix?
set SERVERS (cat /etc/rofi-vpns)
set PROMPT ""
for SERVER in $SERVERS
set SERVER_RUNNING "$(systemctl list-units $SERVER.service | grep $SERVER.service)"