mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 13:11:55 -05:00
cleanup sway
This commit is contained in:
parent
47838ec141
commit
37214ffb4c
59
.github/workflows/nix-drybuild.yml
vendored
59
.github/workflows/nix-drybuild.yml
vendored
|
@ -1,59 +0,0 @@
|
||||||
name: "nix-drybuild"
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths-ignore:
|
|
||||||
- '*.md'
|
|
||||||
- '.github/**'
|
|
||||||
- '_img/**'
|
|
||||||
workflow_dispatch:
|
|
||||||
jobs:
|
|
||||||
fallarbor-drybuild:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@main
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
- name: Drybuild fallarbor
|
|
||||||
run: nix build --dry-run .#nixosConfigurations.fallarbor.config.system.build.toplevel
|
|
||||||
lavaridge-drybuild:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@main
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
- name: Drybuild lavaridge
|
|
||||||
run: nix build --dry-run .#nixosConfigurations.lavaridge.config.system.build.toplevel
|
|
||||||
mauville-drybuild:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@main
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
- name: Drybuild mauville
|
|
||||||
run: nix build --dry-run .#nixosConfigurations.mauville.config.system.build.toplevel
|
|
||||||
petalburg-drybuild:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@main
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
- name: Drybuild petalburg
|
|
||||||
run: nix build --dry-run .#nixosConfigurations.petalburg.config.system.build.toplevel
|
|
||||||
rustboro-drybuild:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@main
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
- name: Drybuild rustboro
|
|
||||||
run: nix build --dry-run .#nixosConfigurations.rustboro.config.system.build.toplevel
|
|
|
@ -5,7 +5,6 @@ variables:
|
||||||
GIT_STRATEGY: clone
|
GIT_STRATEGY: clone
|
||||||
GIT_DEPTH: 1
|
GIT_DEPTH: 1
|
||||||
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- "Update"
|
- "Update"
|
||||||
- "Checks"
|
- "Checks"
|
||||||
|
|
|
@ -26,18 +26,7 @@
|
||||||
editor = lib.getExe config.ar.home.defaultApps.editor;
|
editor = lib.getExe config.ar.home.defaultApps.editor;
|
||||||
terminal = lib.getExe config.ar.home.defaultApps.terminal;
|
terminal = lib.getExe config.ar.home.defaultApps.terminal;
|
||||||
|
|
||||||
brightness = lib.getExe' pkgs.swayosd "swayosd-client";
|
|
||||||
brightness_up = "${brightness} --brightness=raise";
|
|
||||||
brightness_down = "${brightness} --brightness=lower";
|
|
||||||
volume = brightness;
|
|
||||||
volume_up = "${volume} --output-volume=raise";
|
|
||||||
volume_down = "${volume} --output-volume=lower";
|
|
||||||
volume_mute = "${volume} --output-volume=mute-toggle";
|
|
||||||
mic_mute = "${volume} --input-volume=mute-toggle";
|
|
||||||
media = lib.getExe pkgs.playerctl;
|
media = lib.getExe pkgs.playerctl;
|
||||||
media_play = "${media} play-pause";
|
|
||||||
media_next = "${media} next";
|
|
||||||
media_prev = "${media} previous";
|
|
||||||
|
|
||||||
# Sway desktop utilities
|
# Sway desktop utilities
|
||||||
bar = lib.getExe pkgs.waybar;
|
bar = lib.getExe pkgs.waybar;
|
||||||
|
@ -66,9 +55,6 @@
|
||||||
screenshot_screen = "${screenshot} --capture output";
|
screenshot_screen = "${screenshot} --capture output";
|
||||||
screenshot_region = "${screenshot} --capture region";
|
screenshot_region = "${screenshot} --capture region";
|
||||||
|
|
||||||
qt_platform_theme = "qt6ct";
|
|
||||||
gdk_scale = "1.5";
|
|
||||||
|
|
||||||
cycleSwayDisplayModes = pkgs.writeShellScriptBin "cycleSwayDisplayModes" ''
|
cycleSwayDisplayModes = pkgs.writeShellScriptBin "cycleSwayDisplayModes" ''
|
||||||
# TODO: remove petalburg hardcodes
|
# TODO: remove petalburg hardcodes
|
||||||
current_mode=$(${lib.getExe' config.wayland.windowManager.sway.package "swaymsg"} -t get_outputs -p | grep "Current mode" | grep -Eo '[0-9]+x[0-9]+ @ [0-9.]+ Hz' | tr -d " " | grep 2880)
|
current_mode=$(${lib.getExe' config.wayland.windowManager.sway.package "swaymsg"} -t get_outputs -p | grep "Current mode" | grep -Eo '[0-9]+x[0-9]+ @ [0-9.]+ Hz' | tr -d " " | grep 2880)
|
||||||
|
|
Loading…
Reference in a new issue