mirror of
https://github.com/Ascyii/scripts.git
synced 2026-01-01 04:44:24 -05:00
auto up 01:08:17 up 6:30, 2 users, load average: 0.62, 0.57, 0.51
This commit is contained in:
24
shell/computer.sh
Executable file
24
shell/computer.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Detect machine by hostname
|
||||
HOST=$(hostname)
|
||||
|
||||
case "$HOST" in
|
||||
"minoxy")
|
||||
# Apps for workstation
|
||||
firefox --browser &
|
||||
sleep 2
|
||||
hyprctl dispatch workspace 1
|
||||
;;
|
||||
"thinix")
|
||||
# Apps for laptop
|
||||
#thunderbird &
|
||||
#nm-connection-editor &
|
||||
;;
|
||||
*)
|
||||
echo "Unknown host: $HOST"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Optional: background processes should detach from terminal
|
||||
disown
|
||||
Reference in New Issue
Block a user