summaryrefslogtreecommitdiff
path: root/home/ebisu/fortune/desktop
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-01 20:19:11 -0700
committerFuwn <[email protected]>2024-09-01 20:19:11 -0700
commit0d0c04f4e9c169630688d06defa14570a3cfbb32 (patch)
tree74e5c4c4587360580894f9c8eded0088d9af5d88 /home/ebisu/fortune/desktop
parenthi (diff)
downloadnixos-config-0d0c04f4e9c169630688d06defa14570a3cfbb32.tar.xz
nixos-config-0d0c04f4e9c169630688d06defa14570a3cfbb32.zip
format
Diffstat (limited to 'home/ebisu/fortune/desktop')
-rw-r--r--home/ebisu/fortune/desktop/wayland/clipboard.nix8
-rw-r--r--home/ebisu/fortune/desktop/wayland/hyprland/hyprland/binds.nix236
-rw-r--r--home/ebisu/fortune/desktop/wayland/hyprland/hyprland/general.nix3
-rw-r--r--home/ebisu/fortune/desktop/wayland/hyprland/hyprland/plugins.nix4
-rw-r--r--home/ebisu/fortune/desktop/wayland/screenshot.nix3
-rw-r--r--home/ebisu/fortune/desktop/xorg.nix3
6 files changed, 130 insertions, 127 deletions
diff --git a/home/ebisu/fortune/desktop/wayland/clipboard.nix b/home/ebisu/fortune/desktop/wayland/clipboard.nix
index 05784b9..e063ca5 100644
--- a/home/ebisu/fortune/desktop/wayland/clipboard.nix
+++ b/home/ebisu/fortune/desktop/wayland/clipboard.nix
@@ -1,6 +1,8 @@
-{ pkgs
-, ...
-}: {
+{
+ pkgs,
+ ...
+}:
+{
home.packages = with pkgs; [
wl-clipboard
cliphist
diff --git a/home/ebisu/fortune/desktop/wayland/hyprland/hyprland/binds.nix b/home/ebisu/fortune/desktop/wayland/hyprland/hyprland/binds.nix
index 048cfa9..cb96ef0 100644
--- a/home/ebisu/fortune/desktop/wayland/hyprland/hyprland/binds.nix
+++ b/home/ebisu/fortune/desktop/wayland/hyprland/hyprland/binds.nix
@@ -6,9 +6,9 @@ _: {
"$script_path" = "$HOME/.config/hypr/hyprland/scripts";
"$term" = "kitty";
- bind = builtins.concatLists
- (builtins.genList
- (
+ bind =
+ builtins.concatLists (
+ builtins.genList (
x:
let
ws =
@@ -26,115 +26,114 @@ _: {
"$mod SHIFT, ${ws}, exec, $script_path/move_window_to_workspace ${toString (x + 1)}"
# "$mod SHIFT, ${ws}, split-movetoworkspacesilent, ${toString (x + 1)}"
]
- )
- 10)
- ++
- [
- # Scratchpads
- "$mod, apostrophe, exec, hyprctl dispatch togglespecialworkspace simple_calculator"
- "$mod SHIFT, RETURN, exec, hyprctl dispatch togglespecialworkspace simple_terminal"
- "$mod SHIFT, c, exec, hyprctl dispatch togglespecialworkspace chatgpt"
- "$mod SHIFT, s, exec, hyprctl dispatch togglespecialworkspace spotify"
- "$mod SHIFT, apostrophe, exec, hyprctl dispatch togglespecialworkspace calculator"
-
- # Focus
- "$mod, k, movefocus, u"
- "$mod, j, movefocus, d"
- "$mod, l, movefocus, r"
- "$mod, h, movefocus, l"
-
- # "$mod, j, layoutmsg, cyclenext"
- # "$mod, j, layoutmsg, cycleprev"
-
- # "$mod, tab, hycov:toggleoverview"
- # "$mod SHIFT, tab, overview:toggle"
-
- # Emoji picker
- "$mod, GRAVE, exec, rofi -modi emoji -show emoji"
-
- # Volume control
- "$mod, MINUS, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
- "$mod SHIFT, MINUS, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%-"
- "$mod, EQUAL, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
- "$mod SHIFT, EQUAL, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%+"
-
- # Session control
- "$mod SHIFT, Q, exec, wlogout"
- "$mod SHIFT, R, exec, hyprctl reload"
-
- # Window control
- "$mod, F, fullscreen"
- # "$mod SHIFT, F, fullscreen, 2"
- "$mod SHIFT, F, exec, hyprctl dispatch fakefullscreen && $script_path/fake_fullscreen_status"
- "$mod, G, togglefloating"
- "$mod, P, pseudo"
- "$mod SHIFT, P, pin"
- "$mod, T, togglesplit"
- "$mod, U, focusurgentorlast"
- "$mod, Q, killactive"
- "$mod, S, exec, hyprctl keyword window:sticky 1"
- "$mod, b, exec, pkill -SIGUSR1 waybar"
- "$mod, SPACE, layoutmsg, swapwithmaster"
- "$mod, V, exec, $script_path/toggle_layout"
-
- # Application binds
- "$mod, W, exec, $BROWSER"
- "$mod SHIFT, W, exec, $term -e sudo nmtui"
- "$mod, E, exec, $mail"
- "$mod SHIFT, R, exec, $term -e htop"
- "$mod, R, exec, rofi -show run"
- "$mod SHIFT, D, exec, bitwarden-desktop"
- "$mod, RETURN, exec, $term"
- "$mod SHIFT, N, exec, $BROWSER https://sumi.news"
- "$mod, M, exec, spotify"
- "$mod SHIFT, M, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
- "$mod ALT, A, exec, hyprpicker -a"
-
- # Launchers
- "$mod, D, exec, rofi -show combi"
- "$mod, C, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy"
-
- # Spotify control
- "$mod, P, exec, spt pb --toggle"
- "$mod SHIFT, P, exec, mpc pause; pauseallmpv"
- "$mod, BRACKETLEFT, exec, spt pb --seek -10"
- "$mod SHIFT, BRACKETLEFT, exec, spt pb --seek -60"
- "$mod, BRACKETRIGHT, exec, spt pb --seek +10"
- "$mod SHIFT, BRACKETRIGHT, exec, spt pb --seek +60"
- "$mod, COMMA, exec, spt pb --pp"
- "$mod, PERIOD, exec, spt pb --next"
- "$mod SHIFT, PERIOD, exec, spt pb --previous"
-
- # Gaps control
- "$mod, a, exec, $script_path/toggle_gaps"
- "$mod SHIFT, a, exec, bash -c 'hyprctl keyword general:gaps_in 5; hyprctl keyword general:gaps_out 10'"
-
- # Increment gaps
- "$mod, mouse_up, exec, hyprctl keyword general:gaps_out `expr $(hyprctl getoption general:gaps_out | awk '{ print $3 }') + 3`"
- "$mod, mouse_up, exec, hyprctl keyword general:gaps_in `expr $(hyprctl getoption general:gaps_in | awk '{ print $3 }') + 2`"
-
- # Decrement gaps
- "$mod, mouse_down, exec, hyprctl keyword general:gaps_out `expr $(hyprctl getoption general:gaps_out | awk '{ print $3 }') - 3`"
- "$mod, mouse_down, exec, hyprctl keyword general:gaps_in `expr $(hyprctl getoption general:gaps_in | awk '{ print $3 }') - 2`"
-
- # Move focus to monitor
- "$mod, LEFT, exec, $script_path/move_focus_to_monitor left"
- "$mod, RIGHT, exec, $script_path/move_focus_to_monitor right"
-
- # Move window to monitor
- "$mod SHIFT, h, exec, $script_path/move_window_to_monitor left"
- "$mod SHIFT, l, exec, $script_path/move_window_to_monitor right"
-
- # Screenshot
- ", Print, exec, screenshot --area"
- "$mod SHIFT, Print, exec, screenshot --window"
- "$mod CTRL, Print, exec, screenshot --monitor"
- "$mod, Print, exec, screenshot --now"
- "$mod SHIFT, v, exec, screenshot --now --clipboard && hyprctl dispatch togglespecialworkspace chatgpt && ydotool key 42:1 1:1 1:0 42:0 29:1 47:1 29:0 47:0"
-
- # Media keys
- # ...
- ];
+ ) 10
+ )
+ ++ [
+ # Scratchpads
+ "$mod, apostrophe, exec, hyprctl dispatch togglespecialworkspace simple_calculator"
+ "$mod SHIFT, RETURN, exec, hyprctl dispatch togglespecialworkspace simple_terminal"
+ "$mod SHIFT, c, exec, hyprctl dispatch togglespecialworkspace chatgpt"
+ "$mod SHIFT, s, exec, hyprctl dispatch togglespecialworkspace spotify"
+ "$mod SHIFT, apostrophe, exec, hyprctl dispatch togglespecialworkspace calculator"
+
+ # Focus
+ "$mod, k, movefocus, u"
+ "$mod, j, movefocus, d"
+ "$mod, l, movefocus, r"
+ "$mod, h, movefocus, l"
+
+ # "$mod, j, layoutmsg, cyclenext"
+ # "$mod, j, layoutmsg, cycleprev"
+
+ # "$mod, tab, hycov:toggleoverview"
+ # "$mod SHIFT, tab, overview:toggle"
+
+ # Emoji picker
+ "$mod, GRAVE, exec, rofi -modi emoji -show emoji"
+
+ # Volume control
+ "$mod, MINUS, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
+ "$mod SHIFT, MINUS, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%-"
+ "$mod, EQUAL, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
+ "$mod SHIFT, EQUAL, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%+"
+
+ # Session control
+ "$mod SHIFT, Q, exec, wlogout"
+ "$mod SHIFT, R, exec, hyprctl reload"
+
+ # Window control
+ "$mod, F, fullscreen"
+ # "$mod SHIFT, F, fullscreen, 2"
+ "$mod SHIFT, F, exec, hyprctl dispatch fakefullscreen && $script_path/fake_fullscreen_status"
+ "$mod, G, togglefloating"
+ "$mod, P, pseudo"
+ "$mod SHIFT, P, pin"
+ "$mod, T, togglesplit"
+ "$mod, U, focusurgentorlast"
+ "$mod, Q, killactive"
+ "$mod, S, exec, hyprctl keyword window:sticky 1"
+ "$mod, b, exec, pkill -SIGUSR1 waybar"
+ "$mod, SPACE, layoutmsg, swapwithmaster"
+ "$mod, V, exec, $script_path/toggle_layout"
+
+ # Application binds
+ "$mod, W, exec, $BROWSER"
+ "$mod SHIFT, W, exec, $term -e sudo nmtui"
+ "$mod, E, exec, $mail"
+ "$mod SHIFT, R, exec, $term -e htop"
+ "$mod, R, exec, rofi -show run"
+ "$mod SHIFT, D, exec, bitwarden-desktop"
+ "$mod, RETURN, exec, $term"
+ "$mod SHIFT, N, exec, $BROWSER https://sumi.news"
+ "$mod, M, exec, spotify"
+ "$mod SHIFT, M, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
+ "$mod ALT, A, exec, hyprpicker -a"
+
+ # Launchers
+ "$mod, D, exec, rofi -show combi"
+ "$mod, C, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy"
+
+ # Spotify control
+ "$mod, P, exec, spt pb --toggle"
+ "$mod SHIFT, P, exec, mpc pause; pauseallmpv"
+ "$mod, BRACKETLEFT, exec, spt pb --seek -10"
+ "$mod SHIFT, BRACKETLEFT, exec, spt pb --seek -60"
+ "$mod, BRACKETRIGHT, exec, spt pb --seek +10"
+ "$mod SHIFT, BRACKETRIGHT, exec, spt pb --seek +60"
+ "$mod, COMMA, exec, spt pb --pp"
+ "$mod, PERIOD, exec, spt pb --next"
+ "$mod SHIFT, PERIOD, exec, spt pb --previous"
+
+ # Gaps control
+ "$mod, a, exec, $script_path/toggle_gaps"
+ "$mod SHIFT, a, exec, bash -c 'hyprctl keyword general:gaps_in 5; hyprctl keyword general:gaps_out 10'"
+
+ # Increment gaps
+ "$mod, mouse_up, exec, hyprctl keyword general:gaps_out `expr $(hyprctl getoption general:gaps_out | awk '{ print $3 }') + 3`"
+ "$mod, mouse_up, exec, hyprctl keyword general:gaps_in `expr $(hyprctl getoption general:gaps_in | awk '{ print $3 }') + 2`"
+
+ # Decrement gaps
+ "$mod, mouse_down, exec, hyprctl keyword general:gaps_out `expr $(hyprctl getoption general:gaps_out | awk '{ print $3 }') - 3`"
+ "$mod, mouse_down, exec, hyprctl keyword general:gaps_in `expr $(hyprctl getoption general:gaps_in | awk '{ print $3 }') - 2`"
+
+ # Move focus to monitor
+ "$mod, LEFT, exec, $script_path/move_focus_to_monitor left"
+ "$mod, RIGHT, exec, $script_path/move_focus_to_monitor right"
+
+ # Move window to monitor
+ "$mod SHIFT, h, exec, $script_path/move_window_to_monitor left"
+ "$mod SHIFT, l, exec, $script_path/move_window_to_monitor right"
+
+ # Screenshot
+ ", Print, exec, screenshot --area"
+ "$mod SHIFT, Print, exec, screenshot --window"
+ "$mod CTRL, Print, exec, screenshot --monitor"
+ "$mod, Print, exec, screenshot --now"
+ "$mod SHIFT, v, exec, screenshot --now --clipboard && hyprctl dispatch togglespecialworkspace chatgpt && ydotool key 42:1 1:1 1:0 42:0 29:1 47:1 29:0 47:0"
+
+ # Media keys
+ # ...
+ ];
binde = [
# Increment gaps
@@ -156,13 +155,12 @@ _: {
"$mod ALT, h, moveactive, -100 0"
];
- bindm =
- [
- # Move window with mouse
- "$mod, mouse:272, movewindow"
- "$mod, mouse:273, resizewindow"
- "$mod SHIFT, mouse:273, resizewindow 1"
- ];
+ bindm = [
+ # Move window with mouse
+ "$mod, mouse:272, movewindow"
+ "$mod, mouse:273, resizewindow"
+ "$mod SHIFT, mouse:273, resizewindow 1"
+ ];
};
extraConfig = ''
diff --git a/home/ebisu/fortune/desktop/wayland/hyprland/hyprland/general.nix b/home/ebisu/fortune/desktop/wayland/hyprland/hyprland/general.nix
index 92d7c67..088c7da 100644
--- a/home/ebisu/fortune/desktop/wayland/hyprland/hyprland/general.nix
+++ b/home/ebisu/fortune/desktop/wayland/hyprland/hyprland/general.nix
@@ -1,4 +1,5 @@
-{ config, ... }: {
+{ config, ... }:
+{
wayland.windowManager.hyprland = {
settings = {
monitor = [
diff --git a/home/ebisu/fortune/desktop/wayland/hyprland/hyprland/plugins.nix b/home/ebisu/fortune/desktop/wayland/hyprland/hyprland/plugins.nix
index 61d73e3..dc36858 100644
--- a/home/ebisu/fortune/desktop/wayland/hyprland/hyprland/plugins.nix
+++ b/home/ebisu/fortune/desktop/wayland/hyprland/hyprland/plugins.nix
@@ -45,13 +45,13 @@ _: {
hycov = {
overview_gappo = 10; # gaps width from screen edge
overview_gappi = 10; # gaps width from clients
- enable_hotarea = 0; # enable mouse cursor hotarea, when cursor enter hotarea, it will toggle overview
+ enable_hotarea = 0; # enable mouse cursor hotarea, when cursor enter hotarea, it will toggle overview
enable_click_action = 1; # enable mouse left button jump and right button kill in overview mode
hotarea_monitor = "all"; # monitor name which hotarea is in, default is all
hotarea_pos = 1; # position of hotarea (1: bottom left, 2: bottom right, 3: top left, 4: top right)
hotarea_size = 10; # hotarea size, 10x10
swipe_fingers = 4; # finger number of gesture,move any directory
- move_focus_distance = 100; # distance for movefocus,only can use 3 finger to move
+ move_focus_distance = 100; # distance for movefocus,only can use 3 finger to move
enable_gesture = 0; # enable gesture
auto_exit = 1; # enable auto exit when no client in overview
auto_fullscreen = 0; # auto make active window maximize after exit overview
diff --git a/home/ebisu/fortune/desktop/wayland/screenshot.nix b/home/ebisu/fortune/desktop/wayland/screenshot.nix
index 5900ee2..481ffb5 100644
--- a/home/ebisu/fortune/desktop/wayland/screenshot.nix
+++ b/home/ebisu/fortune/desktop/wayland/screenshot.nix
@@ -1,4 +1,5 @@
-{ pkgs, ... }: {
+{ pkgs, ... }:
+{
home.packages = with pkgs; [
grim
slurp
diff --git a/home/ebisu/fortune/desktop/xorg.nix b/home/ebisu/fortune/desktop/xorg.nix
index 801a736..1019327 100644
--- a/home/ebisu/fortune/desktop/xorg.nix
+++ b/home/ebisu/fortune/desktop/xorg.nix
@@ -1,4 +1,5 @@
-{ pkgs, ... }: {
+{ pkgs, ... }:
+{
home.packages = with pkgs; [
gifsicle
main