This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

machines.xerxes: use our sway config

+13 -48
+1 -1
machines/xerxes/config.nix
··· 6 6 ../../2configs/pipewire.nix 7 7 ../../2configs/yubikey.nix 8 8 ../../2configs/tpm2.nix 9 + ../../2configs/desktops/sway/default.nix 9 10 ]; 10 11 system.stateVersion = "25.05"; 11 12 12 13 krebs.build.host = self.inputs.stockholm.kartei.hosts.xerxes; 13 14 14 - programs.sway.enable = true; 15 15 programs.firefox.enable = true; 16 16 environment.systemPackages = [ 17 17 pkgs.bitwarden-desktop
+1 -15
2configs/desktops/lib/wayland.nix
··· 99 99 # polkit agent 100 100 polkit_gnome 101 101 102 - self.packages.${pkgs.system}.wifi-qr 102 + self.packages.${pkgs.system}.menu 103 103 104 104 # gtk3 themes 105 105 gsettings-desktop-schemas 106 - (pkgs.writers.writeDashBin "pass_menu" '' 107 - set -efux 108 - password=$( 109 - (cd $HOME/.password-store; find -type f -name '*.gpg') | 110 - sed -e 's/\.gpg$//' | 111 - rofi -dmenu -p 'Password: ' | 112 - xargs -I{} pass show {} | 113 - tr -d '\n' 114 - ) 115 - echo -n "$password" | ${pkgs.wtype}/bin/wtype -d 10 -s 400 - 116 - '') 117 106 (pkgs.writers.writeDashBin "screenshot" '' 118 107 ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" - | ${pkgs.wl-clipboard}/bin/wl-copy 119 108 '') ··· 128 117 ]; 129 118 130 119 qt.platformTheme = "qt5ct"; 131 - 132 - security.pam.services.swaylock = { }; 133 - security.pam.services.swaylock.fprintAuth = true; 134 120 135 121 # from nixpkgs/nixos/modules/services/system/systemd-lock-handler.md 136 122 services.systemd-lock-handler.enable = true;
+11 -32
2configs/desktops/sway/default.nix
··· 34 34 # Your preferred application launcher 35 35 # Note: pass the final command to swaymsg so that the resulting window can be opened 36 36 # on the original workspace that the command was run on. 37 - set $menu ${pkgs.dmenu}/bin/dmenu_path | fzfmenu | xargs swaymsg exec -- 37 + set $menu ${pkgs.dmenu}/bin/dmenu_path | menu | xargs swaymsg exec -- 38 38 39 39 ### Output configuration 40 40 # ··· 64 64 # 65 65 # Example configuration: 66 66 # 67 - # input "2:14:SynPS/2_Synaptics_TouchPad" { 68 - # dwt enabled 69 - # tap enabled 70 - # natural_scroll enabled 71 - # middle_emulation enabled 72 - # } 67 + input "2321:21128:HTIX5288:00_0911:5288_Touchpad" { 68 + tap enabled 69 + } 73 70 # 74 71 # You can get the names of your inputs by running: swaymsg -t get_inputs 75 72 # Read `man 5 sway-input` for more information about this section. ··· 198 195 199 196 bindsym $mod+q exec ${pkgs.writers.writeDash "goto_workspace" '' 200 197 set -efux 201 - unset TERM # we want fzfmenu to start a new terminal 202 198 CURRENT_OUTPUT=$(swaymsg -r -t get_outputs | jq '.[] | select(.focused == true).name') 203 - FZFMENU_FZF_DEFAULT_OPTS="--select-1" 204 199 WS=$(swaymsg -r -t get_workspaces | 205 200 jq -r '.[].name' | 206 - fzfmenu -p 'Workspace name: ' 201 + menu -p 'Workspace name: ' 207 202 ) 208 203 if [ -n "$WS" ]; then 209 204 swaymsg workspace "$WS" ··· 213 208 214 209 bindsym $mod+Shift+q exec ${pkgs.writers.writeDash "moveto_workspace" '' 215 210 set -efux 216 - unset TERM # we want fzfmenu to start a new terminal 217 - FZFMENU_FZF_DEFAULT_OPTS="--select-1" 218 211 WS=$(swaymsg -r -t get_workspaces | 219 212 jq -r '.[].name' | 220 - fzfmenu -p 'Workspace name: ' 213 + menu -p 'Workspace name: ' 221 214 ) 222 215 if [ -n "$WS" ]; then 223 216 swaymsg move container to workspace "$WS" 224 217 fi 225 218 ''} 226 219 227 - bindsym $mod+x exec ${./starter} floating enable -- ${pkgs.alacritty}/bin/alacritty --config-file /var/theme/config/alacritty.yaml 228 220 bindsym $mod+y exec /run/current-system/sw/bin/switch-theme toggle 229 221 230 - for_window [title="fzfmenu"] floating enable 231 222 bindsym $mod+Tab focus next 232 223 bindsym $mod+Escape workspace back_and_forth 233 - 234 - bindsym $mod+p exec ${pkgs.writers.writeDash "passmenu" '' 235 - set -efux 236 - unset TERM # we want fzfmenu to start a new terminal 237 - (cd $HOME/.password-store; find -type f -name '*.gpg') | 238 - sed -e 's/\.gpg$//' | 239 - fzfmenu -p 'Password: ' | 240 - xargs -I{} pass show {} | 241 - tr -d '\n' | 242 - ${pkgs.wtype}/bin/wtype -s 1 - 243 - ''} 244 - 245 224 246 225 # screenlock 247 226 bindsym $mod+F11 exec ${pkgs.swaylock}/bin/swaylock -f -c 000000 ··· 250 229 bindsym XF86AudioMute exec ${pkgs.pulseaudio.out}/bin/pactl -- set-sink-mute @DEFAULT_SINK@ toggle 251 230 bindsym XF86AudioRaiseVolume exec ${pkgs.pulseaudio.out}/bin/pactl -- set-sink-volume @DEFAULT_SINK@ +4% 252 231 bindsym XF86AudioLowerVolume exec ${pkgs.pulseaudio.out}/bin/pactl -- set-sink-volume @DEFAULT_SINK@ -4% 253 - bindsym XF86MonBrightnessDown exec ${pkgs.acpilight}/bin/xbacklight -time 0 -dec 1 254 - bindsym XF86MonBrightnessUp exec ${pkgs.acpilight}/bin/xbacklight -time 0 -inc 1 255 232 256 233 # background programs 257 234 exec ydotoold ··· 260 237 # theme and env specific stuff 261 238 exec_always ${pkgs.writers.writeDash "dbus-sway-environment" '' 262 239 set -efux 263 - dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway 264 - systemctl --user stop xdg-desktop-portal xdg-desktop-portal-wlr 265 - systemctl --user start xdg-desktop-portal xdg-desktop-portal-wlr 240 + dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway 241 + systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP 242 + systemctl --user start --no-block sway-session.target 243 + systemctl --user stop xdg-desktop-portal xdg-desktop-portal-wlr 244 + systemctl --user start xdg-desktop-portal xdg-desktop-portal-wlr 266 245 ''} 267 246 268 247 exec_always ${pkgs.writers.writeDash "gsettings" ''