diff --git a/.config/eww/scripts/sway.py b/.config/eww/scripts/sway.py index fd5c4ae..1fccee7 100755 --- a/.config/eww/scripts/sway.py +++ b/.config/eww/scripts/sway.py @@ -4,6 +4,7 @@ import asyncio import json import os import sys +from socket import gethostname from i3ipc.aio import Connection from i3ipc import Event from typing import List, Dict, Any, Union, Tuple @@ -103,7 +104,7 @@ data = { "ws": {}, "mode": "default", "current": {}, - "context": "work", + "context": "work" if gethostname() == "tycho" else "personal", "visible": {}, } diff --git a/.config/sway/local-config.d/10-gtk-theme.conf##hostname.rocinante b/.config/sway/local-config.d/10-gtk-theme.conf##hostname.rocinante new file mode 100644 index 0000000..2d04858 --- /dev/null +++ b/.config/sway/local-config.d/10-gtk-theme.conf##hostname.rocinante @@ -0,0 +1,3 @@ +#-*-conf-space-*- + +exec_always gsettings set $gnome-schema text-scaling-factor 1.25 diff --git a/.config/sway/workspaces.json##hostname.rocinante b/.config/sway/workspaces.json##hostname.rocinante new file mode 100644 index 0000000..8917c06 --- /dev/null +++ b/.config/sway/workspaces.json##hostname.rocinante @@ -0,0 +1,56 @@ +{ + "personal": { + "builtin": [ + { + "index": 1, + "name": "terminal", + "exec": "alacritty" + }, + { + "index": 2, + "name": "code", + "exec": "alacritty" + }, + { + "index": 3, + "name": "internet", + "exec": "firefox --new-window" + }, + { + "index": 4, + "name": "project", + "exec": "firefox --new-window" + }, + { + "index": 5, + "name": "servers", + "exec": "virt-manager" + }, + { + "index": 6, + "name": "steam", + "exec": "steam" + }, + { + "index": 7, + "name": "media", + "exec": "jellyfinmediaplayer" + }, + { + "index": 8, + "name": "real-time comms", + "exec": "discord" + }, + { + "index": 9, + "name": "messages", + "exec": "thunderbird" + }, + { + "index": 10, + "name": "config", + "exec": "pavucontrol" + } + ] + } +}