Standardize networking, add more Librewolf configs, standardize synatxing for Waybar, generalize app usage

This commit is contained in:
Jimbo 2024-12-01 01:44:12 -05:00
parent f4acc6c10d
commit 0042da23be
17 changed files with 90 additions and 114 deletions

View file

@ -26,6 +26,7 @@
{ command = "librewolf -P Misc --name=MiscBrowser"; }
{ command = "vesktop"; }
{ command = "fractal"; }
{ command = "telegram-desktop"; }
{ command = "thunderbird"; }
];
};

View file

@ -11,8 +11,6 @@
libnotify
grim
slurp
swappy
lm_sensors
wl-clipboard
wdisplays
jq

View file

@ -2,7 +2,6 @@
{
home.packages = with pkgs; [
(pkgs.writeScriptBin "swayshot" ''
# Swappy
handle_swappy() {
# Create an imv window to act as a static screen
grim -t jpeg -q 90 - | imv -w "GlobalShot" - & imv_pid=$!
@ -15,11 +14,10 @@
kill $imv_pid
# Copy the screenshot to the clipboard and clear the temp
swappy -f - < "$temp_file"
${pkgs.swappy}/bin/swappy -f - < "$temp_file"
rm "$temp_file"
}
# Screen
handle_screen() {
temp_file=$(mktemp -u).png
grim -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') "$temp_file"

View file

@ -109,7 +109,7 @@
];
};
assigns = {
# Broconfig.wsers
# Browsers
"${config.ws.w1}" = [{ app_id = "MainBrowser"; }];
"${config.ws.w1a}" = [{ app_id = "AltBrowser"; }];
@ -120,13 +120,16 @@
{ app_id = "vesktop"; }
{ class = "vesktop"; }
];
"${config.ws.w8}" = [{ app_id = "org.gnome.Fractal"; }];
"${config.ws.w8}" = [
{ app_id = "org.gnome.Fractal"; }
{ app_id = "org.telegram.desktop"; }
];
"${config.ws.w9}" = [{ app_id = "thunderbird"; }];
# Etc
"${config.ws.w2}" = [
{ class = "steam"; }
{app_id = "heroic";}
{ app_id = "heroic"; }
];
"${config.ws.w2a}" = [{ app_id = "looking-glass-client"; }];
"${config.ws.w4a}" = [{ app_id = "com.obsproject.Studio"; }];