aboutsummaryrefslogtreecommitdiff
path: root/users/fcuny/desktop/wm/default.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-09 09:42:03 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-09 09:42:03 -0700
commit1125aaa49aec6a220fd3b9d03076fec398b35a14 (patch)
tree5570b0c094ead9d7879ca3d360ff3de7f45d4516 /users/fcuny/desktop/wm/default.nix
parentdelete all CLI modules (diff)
downloadinfra-1125aaa49aec6a220fd3b9d03076fec398b35a14.tar.gz
add a few more modules to home/ and delete stuff
Diffstat (limited to 'users/fcuny/desktop/wm/default.nix')
-rw-r--r--users/fcuny/desktop/wm/default.nix86
1 files changed, 0 insertions, 86 deletions
diff --git a/users/fcuny/desktop/wm/default.nix b/users/fcuny/desktop/wm/default.nix
deleted file mode 100644
index 24c7f8e..0000000
--- a/users/fcuny/desktop/wm/default.nix
+++ /dev/null
@@ -1,86 +0,0 @@
-{ config, lib, pkgs, ... }: {
- imports = [
- ./bar.nix
- ./gammastep.nix
- ./launcher.nix
- ./notification.nix
- ./screenlock.nix
- ./screenshot.nix
- ];
-
- home.packages = [ pkgs.wev pkgs.wf-recorder pkgs.wofi pkgs.wlogout ];
-
- home.sessionVariables = {
- MOZ_ENABLE_WAYLAND = true;
- XDG_CURRENT_DESKTOP = "sway";
- XDG_SESSION_TYPE = "wayland";
- };
-
- wayland.windowManager.sway = {
- enable = true;
- systemdIntegration = true;
- extraSessionCommands = ''
- export XDG_SESSION_TYPE=wayland
- export XDG_CURRENT_DESKTOP=sway
- export MOZ_ENABLE_WAYLAND=1
- '';
- config = rec {
- modifier = "Mod4";
- terminal = "${config.programs.alacritty.package}/bin/alacritty";
- menu = ''${pkgs.wofi}/bin/wofi -S drun -p "app:" -L 10'';
- bars = [ ];
- fonts = {
- names = [ "Source Code Pro" ];
- size = 10.0;
- };
- keybindings = lib.mkOptionDefault {
- "XF86AudioRaiseVolume" =
- "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ +5%";
- "XF86AudioLowerVolume" =
- "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ -5%";
- "XF86AudioMute" =
- "exec ${pkgs.pulseaudio}/bin/pactl set-sink-mute @DEFAULT_SINK@ toggle";
- "XF86AudioMicMute" =
- "exec ${pkgs.pulseaudio}/bin/pactl set-source-mute @DEFAULT_SOURCE@ toggle";
- "XF86MonBrightnessDown" =
- "exec ${pkgs.brightnessctl}/bin/brightnessctl set 5%-";
- "XF86MonBrightnessUp" =
- "exec ${pkgs.brightnessctl}/bin/brightnessctl set +5%";
- "${modifier}+Escape" = "exec ${pkgs.wlogout}/bin/wlogout";
- "${modifier}+s" =
- "exec ${pkgs.grim}/bin/grim $(xdg-user-dir DOCUMENTS)/screenshots/$(date +'%Y-%m-%d-%H%M%S_screenshot.png')";
- "${modifier}+Shift+s" =
- "exec ${pkgs.slurp}/bin/slurp | ${pkgs.grim}/bin/grim -g - $(xdg-user-dir DOCUMENTS)/screenshots/$(date +'%Y-%m-%d-%H%M%S_screenshot.png')";
- };
- window.commands = [{
- command = "floating enable";
- criteria.app_id = "pavucontrol";
- }];
- input = {
- "*" = {
- "xkb_layout" = "us,fr";
- # map capslock to ctrl, and switch layout using shift+caps
- "xkb_options" = "ctrl:nocaps,grp:shift_caps_toggle";
- };
- };
- assigns = {
- "1" = [{ app_id = "emacs"; }];
- "2" = [{ app_id = "Alacritty"; }];
- "3" = [{ app_id = "firefox"; }];
- "4" = [{ class = "Element"; }];
- };
- output = {
- "*" = {
- scale = "1.5";
- bg = "#2E3440 solid_color";
- };
- # This is for aptos
- "eDP-1" = { scale = "1.3"; };
- };
- startup = [{
- command = ''
- exec "systemctl --user import-environment; systemctl --user start sway-session.target"'';
- }];
- };
- };
-}