diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-10-17 18:59:57 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-10-17 18:59:57 +0200 |
| commit | f6191ba8584cff249a2fbdb3371d207927a04d5c (patch) | |
| tree | 91e161aa7060e850979e4db3718beab5a624e6c5 /common/home | |
| parent | efe3676a8d1c8fefd1aef74599d55965648a52c9 (diff) | |
add flags to openproject script
Diffstat (limited to 'common/home')
| -rw-r--r-- | common/home/hyprland/default.nix | 224 | ||||
| -rw-r--r-- | common/home/scripts/openproject | 2 |
2 files changed, 114 insertions, 112 deletions
diff --git a/common/home/hyprland/default.nix b/common/home/hyprland/default.nix index fdab85c..ce11e5d 100644 --- a/common/home/hyprland/default.nix +++ b/common/home/hyprland/default.nix @@ -1,132 +1,134 @@ { - enable = true; - systemd = { - enable = true; - variables = [ "--all" ]; - }; - xwayland.enable = true; - settings = { - "$mod" = "SUPER"; - bind = [ - "$mod+Shift, Q, exit" - "$mod, C, killactive," + enable = true; + systemd = { + enable = true; + variables = [ "--all" ]; + }; + xwayland.enable = true; + settings = { + "$mod" = "SUPER"; + bind = [ + "$mod+Shift, Q, exit" + "$mod, C, killactive," - "$mod, Escape, exec, hyprlock" - "$mod, Space, exec, wofi --show run" + "$mod, Escape, exec, hyprlock" + "$mod, Space, exec, wofi --show run" + "$mod, O, exec, openproject" + "$mod, v, exec, openproject -e nvim" - "$mod+Shift, Return, exec, alacritty" - "$mod+Shift, B, exec, firefox" - "$mod+Shift, P, exec, wofi-pass" - "$mod+Shift, O, exec, wofi-pass otp" + "$mod+Shift, Return, exec, alacritty" + "$mod+Shift, B, exec, firefox" + "$mod+Shift, P, exec, wofi-pass" + "$mod+Shift, O, exec, wofi-pass otp" - ", Print, exec, grimshot copy area" + ", Print, exec, grimshot copy area" - "$mod, h, movefocus, l" - "$mod, l, movefocus, r" - "$mod, k, movefocus, u" - "$mod, j, movefocus, d" + "$mod, h, movefocus, l" + "$mod, l, movefocus, r" + "$mod, k, movefocus, u" + "$mod, j, movefocus, d" - "$mod+Shift, h, movewindow, l" - "$mod+Shift, l, movewindow, r" - "$mod+Shift, k, movewindow, u" - "$mod+Shift, j, movewindow, d" + "$mod+Shift, h, movewindow, l" + "$mod+Shift, l, movewindow, r" + "$mod+Shift, k, movewindow, u" + "$mod+Shift, j, movewindow, d" - "$mod, 1, workspace, 1" - "$mod, 2, workspace, 2" - "$mod, 3, workspace, 3" - "$mod, 4, workspace, 4" - "$mod, 5, workspace, 5" - "$mod, 6, workspace, 6" - "$mod, 7, workspace, 7" - "$mod, 8, workspace, 8" - "$mod, 9, workspace, 9" - "$mod, 0, workspace, 10" + "$mod, 1, workspace, 1" + "$mod, 2, workspace, 2" + "$mod, 3, workspace, 3" + "$mod, 4, workspace, 4" + "$mod, 5, workspace, 5" + "$mod, 6, workspace, 6" + "$mod, 7, workspace, 7" + "$mod, 8, workspace, 8" + "$mod, 9, workspace, 9" + "$mod, 0, workspace, 10" - "$mod, F1, movecurrentworkspacetomonitor, 0" - "$mod, F2, movecurrentworkspacetomonitor, 1" - "$mod, F3, movecurrentworkspacetomonitor, 2" + "$mod, F1, movecurrentworkspacetomonitor, 0" + "$mod, F2, movecurrentworkspacetomonitor, 1" + "$mod, F3, movecurrentworkspacetomonitor, 2" - "$mod+Shift, 1, movetoworkspace, 1" - "$mod+Shift, 2, movetoworkspace, 2" - "$mod+Shift, 3, movetoworkspace, 3" - "$mod+Shift, 4, movetoworkspace, 4" - "$mod+Shift, 5, movetoworkspace, 5" - "$mod+Shift, 6, movetoworkspace, 6" - "$mod+Shift, 7, movetoworkspace, 7" - "$mod+Shift, 8, movetoworkspace, 8" - "$mod+Shift, 9, movetoworkspace, 9" - "$mod+Shift, 0, movetoworkspace, 10" - ]; + "$mod+Shift, 1, movetoworkspace, 1" + "$mod+Shift, 2, movetoworkspace, 2" + "$mod+Shift, 3, movetoworkspace, 3" + "$mod+Shift, 4, movetoworkspace, 4" + "$mod+Shift, 5, movetoworkspace, 5" + "$mod+Shift, 6, movetoworkspace, 6" + "$mod+Shift, 7, movetoworkspace, 7" + "$mod+Shift, 8, movetoworkspace, 8" + "$mod+Shift, 9, movetoworkspace, 9" + "$mod+Shift, 0, movetoworkspace, 10" + ]; - binde = [ - "$mod, period, resizeactive, 20 0" - "$mod, comma, resizeactive, -20 0" - "$mod+Shift, period, resizeactive, 0 20" - "$mod+Shift, comma, resizeactive, 0 -20" + binde = [ + "$mod, period, resizeactive, 20 0" + "$mod, comma, resizeactive, -20 0" + "$mod+Shift, period, resizeactive, 0 20" + "$mod+Shift, comma, resizeactive, 0 -20" - ", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" - ", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+" - ", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-" - ", XF86AudioPlay, exec, playerctl play-pause" + ", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" + ", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+" + ", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-" + ", XF86AudioPlay, exec, playerctl play-pause" - ", XF86MonBrightnessDown, exec, brightnessctl set 10%-" - ", XF86MonBrightnessUp, exec, brightnessctl set +10%" - ]; + ", XF86MonBrightnessDown, exec, brightnessctl set 10%-" + ", XF86MonBrightnessUp, exec, brightnessctl set +10%" + ]; - general = { - gaps_in = 10; - gaps_out = 10; - layout = "dwindle"; - border_size = 3; - "col.active_border" = "rgba(b16286ff)"; - "col.inactive_border" = "rgba(3c3836ff)"; - }; + general = { + gaps_in = 10; + gaps_out = 10; + layout = "dwindle"; + border_size = 3; + "col.active_border" = "rgba(b16286ff)"; + "col.inactive_border" = "rgba(3c3836ff)"; + }; - decoration = { - rounding = 5; - drop_shadow = true; - shadow_range = 4; - shadow_render_power = 3; - }; + decoration = { + rounding = 5; + drop_shadow = true; + shadow_range = 4; + shadow_render_power = 3; + }; - animations = { - enabled = true; - bezier = "myBezier, 0.05, 0.9, 0.1, 1.05"; - animation = [ - "windows, 1, 3, myBezier" - "windowsOut, 1, 3, default, popin 80%" - "border, 1, 10, default" - "borderangle, 1, 8, default" - "fade, 1, 3, default" - "workspaces, 1, 3, default" - ]; - }; + animations = { + enabled = true; + bezier = "myBezier, 0.05, 0.9, 0.1, 1.05"; + animation = [ + "windows, 1, 3, myBezier" + "windowsOut, 1, 3, default, popin 80%" + "border, 1, 10, default" + "borderangle, 1, 8, default" + "fade, 1, 3, default" + "workspaces, 1, 3, default" + ]; + }; - dwindle = { - pseudotile = true; - preserve_split = true; - }; + dwindle = { + pseudotile = true; + preserve_split = true; + }; - input = { - kb_options = "caps:escape"; + input = { + kb_options = "caps:escape"; - touchpad = { - natural_scroll = true; - clickfinger_behavior = true; - }; - }; + touchpad = { + natural_scroll = true; + clickfinger_behavior = true; + }; + }; - gestures = { - workspace_swipe = true; - workspace_swipe_fingers = 4; - }; + gestures = { + workspace_swipe = true; + workspace_swipe_fingers = 4; + }; - misc = { - disable_hyprland_logo = true; - disable_splash_rendering = true; - enable_swallow = false; - swallow_regex = "^(Alacritty)$"; - animate_manual_resizes = true; - }; - }; + misc = { + disable_hyprland_logo = true; + disable_splash_rendering = true; + enable_swallow = false; + swallow_regex = "^(Alacritty)$"; + animate_manual_resizes = true; + }; + }; } diff --git a/common/home/scripts/openproject b/common/home/scripts/openproject index 5b42432..1c9ca48 100644 --- a/common/home/scripts/openproject +++ b/common/home/scripts/openproject @@ -5,4 +5,4 @@ path=$(find ~ -name '.git' -type d -maxdepth 6 | sed 's/\.git$//' | wofi -d -p ' [ -z "$path" ] && exit cd $path -alacritty +alacritty $@ |