2023-06-26 18:02:44 +02:00
|
|
|
{ pkgs, config, lib, ... }:
|
2023-06-17 02:01:27 +02:00
|
|
|
|
2023-06-26 18:02:44 +02:00
|
|
|
let
|
|
|
|
opacity = lib.strings.floatToString config.stylix.opacity.terminal;
|
2023-07-01 20:06:34 +02:00
|
|
|
modifier = "SUPER";
|
2023-06-26 18:02:44 +02:00
|
|
|
in
|
2023-06-22 16:42:23 +02:00
|
|
|
{
|
2024-03-08 04:14:48 +01:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
hyprnome
|
|
|
|
hypridle
|
|
|
|
hyprlock
|
|
|
|
];
|
2023-08-30 22:13:44 +02:00
|
|
|
|
2024-03-29 19:46:11 +01:00
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
plugins = [
|
|
|
|
(pkgs.callPackage ../packages/hycov.nix { })
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-07-01 20:21:12 +02:00
|
|
|
xdg.configFile."hypr/gaps.sh" = {
|
|
|
|
executable = true;
|
|
|
|
text = /* bash */ ''
|
2023-12-30 12:17:36 +01:00
|
|
|
#!/usr/bin/env bash
|
2024-03-09 03:46:06 +01:00
|
|
|
hyprctl keyword general:gaps_out $((10 - $(hyprctl getoption general:gaps_out -j | jq -r ".custom" | choose 1)))
|
|
|
|
hyprctl keyword general:gaps_in $((5 - $(hyprctl getoption general:gaps_in -j | jq -r ".custom" | choose 1)))
|
2024-03-25 19:24:11 +01:00
|
|
|
hyprctl keyword general:border_size $((4 - $(hyprctl getoption general:border_size -j | jq -r ".int")))
|
2023-07-03 20:52:59 +02:00
|
|
|
hyprctl keyword decoration:rounding $((8 - $(hyprctl getoption decoration:rounding -j | jq -r ".int")))
|
2023-07-01 20:21:12 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-01-28 16:30:06 +01:00
|
|
|
xdg.configFile."hypr/raise-volume.fish" = {
|
|
|
|
executable = true;
|
|
|
|
text = /* fish */ ''
|
|
|
|
#!/usr/bin/env fish
|
|
|
|
|
2024-01-29 23:17:56 +01:00
|
|
|
wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
|
|
|
|
|
2024-01-28 16:30:06 +01:00
|
|
|
set VOL $(math "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | choose 1) * 100")
|
|
|
|
|
2024-01-29 23:17:56 +01:00
|
|
|
notify-send -t 2000 "Raised volume to" "$VOL%"
|
2024-01-28 16:30:06 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
xdg.configFile."hypr/lower-volume.fish" = {
|
|
|
|
executable = true;
|
|
|
|
text = /* fish */ ''
|
|
|
|
#!/usr/bin/env fish
|
|
|
|
|
2024-01-29 23:17:56 +01:00
|
|
|
wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
|
|
|
|
2024-01-28 16:30:06 +01:00
|
|
|
set VOL $(math "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | choose 1) * 100")
|
|
|
|
|
2024-01-29 23:17:56 +01:00
|
|
|
notify-send -t 2000 "Lowered volume to" "$VOL%"
|
2024-01-28 16:30:06 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-08-01 18:01:18 +02:00
|
|
|
xdg.configFile."hypr/set-bg.fish" = {
|
|
|
|
executable = true;
|
|
|
|
text = /* fish */ ''
|
|
|
|
#!/usr/bin/env fish
|
|
|
|
|
|
|
|
if [ (hyprctl getoption animations:enabled -j | jq -r ".int") = "1" ]
|
|
|
|
swww img \
|
|
|
|
--transition-type $(random choice grow wave outer) \
|
|
|
|
--transition-wave 80,40 \
|
|
|
|
--transition-angle $(random choice 45 90 135 225 270 315) \
|
|
|
|
--transition-pos $(random choice center top left right bottom top-left top-right bottom-left bottom-right) \
|
|
|
|
--transition-step 200 \
|
|
|
|
--transition-duration 1.5 \
|
|
|
|
--transition-fps 240 \
|
2023-11-19 12:37:21 +01:00
|
|
|
--outputs "$argv[1]" \
|
|
|
|
"$argv[2]"
|
2023-08-01 18:01:18 +02:00
|
|
|
else
|
|
|
|
swww img \
|
|
|
|
--transition-type simple \
|
|
|
|
--transition-step 255 \
|
2023-11-19 12:37:21 +01:00
|
|
|
--outputs "$argv[1]" \
|
|
|
|
"$argv[2]"
|
2023-08-01 18:01:18 +02:00
|
|
|
end
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-08-01 18:01:57 +02:00
|
|
|
xdg.configFile."hypr/random-bg.fish" = {
|
|
|
|
executable = true;
|
|
|
|
text = /* fish */ ''
|
|
|
|
#!/usr/bin/env fish
|
|
|
|
|
|
|
|
cd ~/.config/hypr
|
2023-11-19 12:37:21 +01:00
|
|
|
|
|
|
|
for monitor in (hyprctl monitors -j | jq -r '.[].name')
|
2024-01-06 01:07:21 +01:00
|
|
|
./set-bg.fish "$monitor" "$(random choice $(fd . /run/current-system/sw/share/backgrounds --follow -e jpg -e png))"
|
2023-11-19 12:37:21 +01:00
|
|
|
end
|
2023-08-01 18:01:57 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-03-08 06:04:48 +01:00
|
|
|
xdg.configFile."hypr/swap-bg.fish" = {
|
|
|
|
executable = true;
|
|
|
|
text = /* fish */ ''
|
|
|
|
#!/usr/bin/env fish
|
|
|
|
|
|
|
|
set M "$(swww query | choose -1)"
|
|
|
|
set M1 "$(echo "$M" | head -n 1)"
|
|
|
|
set M2 "$(echo "$M" | tail -n 1)"
|
|
|
|
|
|
|
|
cd ~/.config/hypr
|
|
|
|
|
|
|
|
./set-bg.fish "$(swww query | choose 0 | choose -c 0..-1 | tail -n 1)" $M1
|
|
|
|
./set-bg.fish "$(swww query | choose 0 | choose -c 0..-1 | head -n 1)" $M2
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-03-08 11:34:22 +01:00
|
|
|
xdg.configFile."hypr/hyprlock.conf".text = /* bash */ ''
|
|
|
|
general {
|
|
|
|
hide_cursor = true
|
|
|
|
grace = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
background {
|
|
|
|
color = rgba(25, 20, 20, 1.0)
|
|
|
|
path = screenshot
|
|
|
|
blur_passes = 2
|
|
|
|
brightness = 0.5
|
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
|
|
|
text = パスワードをご入力ください
|
|
|
|
color = rgba(222, 222, 222, 1.0)
|
|
|
|
font_size = 50
|
|
|
|
font_family = Noto Sans CJK JP
|
|
|
|
position = 0, 70
|
|
|
|
halign = center
|
|
|
|
valign = center
|
|
|
|
}
|
|
|
|
|
|
|
|
input-field {
|
|
|
|
size = 50, 50
|
|
|
|
dots_size = 0.33
|
|
|
|
dots_spacing = 0.15
|
|
|
|
outer_color = rgba(25, 20, 20, 0)
|
|
|
|
inner_color = rgba(25, 20, 20, 0)
|
|
|
|
font_color = rgba(222, 222, 222, 1.0)
|
|
|
|
placeholder_text = パスワード
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
|
|
|
|
xdg.configFile."hypr/hypridle.conf".text = /* bash */ ''
|
|
|
|
general {
|
|
|
|
lock_cmd = pidof hyprlock || hyprlock
|
|
|
|
before_sleep_cmd = loginctl lock-session
|
|
|
|
after_sleep_cmd = hyprctl dispatch dpms on
|
|
|
|
}
|
|
|
|
|
|
|
|
listener {
|
|
|
|
timeout = 150
|
|
|
|
on-timeout = brightnessctl -s set 10
|
|
|
|
on-resume = brightnessctl -r
|
|
|
|
}
|
|
|
|
|
|
|
|
listener {
|
|
|
|
timeout = 300
|
|
|
|
on-timeout = loginctl lock-session
|
|
|
|
}
|
|
|
|
|
|
|
|
listener {
|
|
|
|
timeout = 380
|
|
|
|
on-timeout = hyprctl dispatch dpms off
|
|
|
|
on-resume = hyprctl dispatch dpms on
|
|
|
|
}
|
|
|
|
|
|
|
|
listener {
|
|
|
|
timeout = 1800
|
|
|
|
on-timeout = systemctl suspend
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
|
2023-06-25 18:45:55 +02:00
|
|
|
xdg.configFile."hypr/hyprland.conf".text = with config.lib.stylix.colors; /* bash */ ''
|
2023-06-17 02:01:27 +02:00
|
|
|
env=XCURSOR_SIZE,24
|
2023-06-22 17:00:39 +02:00
|
|
|
env=BROWSER,librewolf
|
2023-06-17 02:01:27 +02:00
|
|
|
env=QT_IM_MODULE,fcitx
|
|
|
|
env=XMODIFIERS,@im=fcitx
|
|
|
|
env=SDL_IM_MODULE,fcitx
|
|
|
|
env=GLFW_IM_MODULE,ibus
|
2023-07-16 00:29:08 +02:00
|
|
|
env=SWWW_TRANSITION,grow
|
|
|
|
env=SWWW_TRANSITION_STEP,200
|
|
|
|
env=SWWW_TRANSITION_DURATION,1.5
|
|
|
|
env=SWWW_TRANSITION_FPS,240
|
|
|
|
env=SWWW_TRANSITION_WAVE,80,40
|
2024-01-25 23:34:09 +01:00
|
|
|
env=QT_AUTO_SCREEN_SCALE_FACTOR,1
|
|
|
|
env=QT_QPA_PLATFORM,wayland;xcb
|
|
|
|
env=QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
|
|
|
env=QT_QPA_PLATFORMTHEME,qt5ct
|
|
|
|
env=QT_STYLE_OVERRIDE,kvantum
|
2023-06-17 02:01:27 +02:00
|
|
|
monitor=,preferred,auto,1
|
|
|
|
|
2023-08-01 22:26:56 +02:00
|
|
|
exec-once = sleep 0.1; swww init
|
2023-06-17 02:01:27 +02:00
|
|
|
exec-once = wpctl set-volume @DEFAULT_AUDIO_SINK@ 20%
|
2023-07-18 14:38:51 +02:00
|
|
|
exec-once = ironbar
|
2023-06-29 17:59:34 +02:00
|
|
|
exec-once = fcitx5
|
2023-07-04 16:09:18 +02:00
|
|
|
exec-once = hyprctl dispatch workspace 5000000
|
2023-06-17 02:01:27 +02:00
|
|
|
exec-once = ${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1
|
2023-08-14 16:56:56 +02:00
|
|
|
exec-once = hyprdim --no-dim-when-only --persist --ignore-leaving-special --dialog-dim
|
2024-03-08 11:34:22 +01:00
|
|
|
exec-once = hypridle
|
2023-08-08 04:18:13 +02:00
|
|
|
exec-once = sleep 1 && eww open desktop-icons
|
2023-08-02 04:23:57 +02:00
|
|
|
exec-once = ~/.config/hypr/random-bg.fish
|
2023-06-17 02:01:27 +02:00
|
|
|
|
|
|
|
input {
|
|
|
|
kb_layout = us
|
|
|
|
accel_profile = flat
|
|
|
|
follow_mouse = 1
|
|
|
|
mouse_refocus = 0
|
|
|
|
sensitivity = 0
|
|
|
|
touchpad {
|
|
|
|
natural_scroll = yes
|
|
|
|
disable_while_typing = no
|
|
|
|
}
|
2023-07-11 14:03:10 +02:00
|
|
|
repeat_rate = 50
|
|
|
|
repeat_delay = 300
|
2023-06-17 02:01:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
general {
|
2024-03-25 19:24:11 +01:00
|
|
|
gaps_in = 5
|
|
|
|
gaps_out = 10
|
|
|
|
border_size = 4
|
|
|
|
col.active_border = rgb(${base04}) rgb(${base05}) 45deg
|
|
|
|
col.inactive_border = rgb(${base02})
|
2023-06-17 02:01:27 +02:00
|
|
|
layout = master
|
|
|
|
}
|
|
|
|
|
|
|
|
decoration {
|
2024-03-25 19:24:11 +01:00
|
|
|
rounding = 8
|
2023-06-17 02:01:27 +02:00
|
|
|
drop_shadow = yes
|
|
|
|
shadow_range = 4
|
|
|
|
shadow_render_power = 3
|
|
|
|
col.shadow = rgba(1a1a1aee)
|
2023-08-22 18:31:08 +02:00
|
|
|
|
|
|
|
blur {
|
|
|
|
enabled = yes
|
|
|
|
size = 4
|
|
|
|
passes = 2
|
|
|
|
}
|
2023-06-17 02:01:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
animations {
|
|
|
|
enabled = yes
|
|
|
|
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
|
|
|
animation = windows, 1, 7, myBezier
|
|
|
|
animation = windowsOut, 1, 7, default, popin 80%
|
|
|
|
animation = border, 1, 10, default
|
|
|
|
animation = borderangle, 1, 8, default
|
|
|
|
animation = fade, 1, 7, default
|
|
|
|
animation = workspaces, 1, 6, default, slidevert
|
|
|
|
animation = specialWorkspace, 1, 6, default, fade
|
|
|
|
}
|
|
|
|
|
|
|
|
dwindle {
|
|
|
|
preserve_split = yes
|
|
|
|
special_scale_factor = 1
|
|
|
|
}
|
|
|
|
|
|
|
|
master {
|
|
|
|
new_is_master = no
|
|
|
|
new_on_top = no
|
2024-03-25 19:24:11 +01:00
|
|
|
no_gaps_when_only = yes
|
2023-06-17 02:01:27 +02:00
|
|
|
mfact = 0.65
|
|
|
|
special_scale_factor = 1
|
|
|
|
}
|
|
|
|
|
|
|
|
gestures {
|
|
|
|
workspace_swipe = yes
|
|
|
|
}
|
|
|
|
|
2024-03-06 01:17:14 +01:00
|
|
|
device {
|
|
|
|
name = synps/2-synaptics-touchpad
|
2023-06-17 02:01:27 +02:00
|
|
|
sensitivity = 0.75
|
|
|
|
accel_profile = flat
|
|
|
|
natural_scroll = yes
|
|
|
|
disable_while_typing = no
|
|
|
|
}
|
|
|
|
|
2024-03-06 01:17:14 +01:00
|
|
|
device {
|
|
|
|
name = tpps/2-elan-trackpoint
|
2023-06-17 02:01:27 +02:00
|
|
|
sensitivity = 0.5
|
|
|
|
accel_profile = flat
|
|
|
|
}
|
|
|
|
|
|
|
|
binds {
|
|
|
|
allow_workspace_cycles = yes
|
|
|
|
}
|
|
|
|
|
2023-07-01 20:06:34 +02:00
|
|
|
$SUPER = ${modifier}
|
|
|
|
$SUPER_SHIFT = ${modifier}_SHIFT
|
|
|
|
$SUPER_ALT = ${modifier}_ALT
|
2023-06-27 10:04:41 +02:00
|
|
|
|
|
|
|
bind = $SUPER_SHIFT, Return, exec, kitty
|
2023-08-30 22:16:11 +02:00
|
|
|
bind = $SUPER_SHIFT, Q, killactive
|
2023-08-02 04:24:30 +02:00
|
|
|
bind = $SUPER, W, exec, ~/.config/hypr/random-bg.fish
|
2024-03-08 06:04:48 +01:00
|
|
|
bind = $SUPER_SHIFT, W, exec, ~/.config/hypr/swap-bg.fish
|
2023-06-30 14:07:24 +02:00
|
|
|
bind = $SUPER, P, exec, dunstify --icon=$(grimblast save screen) Screenshot Captured.
|
2023-12-14 00:17:52 +01:00
|
|
|
bind = , Print, exec, grimblast --freeze copy area
|
2023-06-27 10:04:41 +02:00
|
|
|
bind = $SUPER_ALT, delete, exit
|
2023-07-16 00:56:50 +02:00
|
|
|
bind = $SUPER, T, exec, tessen
|
2023-07-02 20:33:35 +02:00
|
|
|
bind = $SUPER, V, togglefloating
|
|
|
|
bind = $SUPER, B, centerwindow
|
2023-07-01 20:21:12 +02:00
|
|
|
bind = $SUPER, U, exec, ~/.config/hypr/gaps.sh
|
2023-06-27 10:04:41 +02:00
|
|
|
bind = $SUPER, X, pin
|
|
|
|
bind = $SUPER, F, fullscreen
|
2024-02-19 05:55:38 +01:00
|
|
|
bind = $SUPER, S, swapactiveworkspaces, 0 1
|
2023-06-27 10:04:41 +02:00
|
|
|
bind = $SUPER_SHIFT, S, movetoworkspace, special
|
2023-08-31 06:49:22 +02:00
|
|
|
bind = $SUPER, O, exec, killall .ironbar-wrapper || ironbar
|
2023-09-01 01:09:18 +02:00
|
|
|
bind = $SUPER_SHIFT, O, exec, eww close overlay || eww open overlay
|
2023-08-29 05:45:15 +02:00
|
|
|
bind = $SUPER, F1, exec, killall rofi || rofi -show drun
|
2023-06-27 10:04:41 +02:00
|
|
|
bind = $SUPER, F2, togglespecialworkspace
|
2023-12-01 01:04:30 +01:00
|
|
|
bind = $SUPER, comma, exec, playerctl -p mpv position "5-" && notify-send -t 2000 "Minus 5 seconds" "$(playerctl -p mpv position)"
|
|
|
|
bind = $SUPER, period, exec, playerctl -p mpv position "5+" && notify-send -t 2000 "Plus 5 seconds" "$(playerctl -p mpv position)"
|
|
|
|
bind = $SUPER_SHIFT, comma, exec, playerctl -p mpv previous && notify-send -t 2000 "Previous track" "$(playerctl -p mpv metadata xesam:title)"
|
|
|
|
bind = $SUPER_SHIFT, period, exec, playerctl -p mpv next && notify-send -t 2000 "Next track" "$(playerctl -p mpv metadata xesam:title)"
|
|
|
|
bind = $SUPER, slash, exec, playerctl -p mpv play-pause && notify-send -t 2000 "mpv" "$(playerctl -p mpv status)"
|
2024-02-09 04:57:08 +01:00
|
|
|
bind = $SUPER, M, focusmonitor, +1
|
|
|
|
bind = $SUPER_SHIFT, M, focusmonitor, -1
|
2023-06-27 10:04:41 +02:00
|
|
|
|
|
|
|
bind = $SUPER, Return, layoutmsg, swapwithmaster master
|
|
|
|
bind = $SUPER, J, layoutmsg, cyclenext
|
|
|
|
bind = $SUPER, K, layoutmsg, cycleprev
|
|
|
|
bind = $SUPER_SHIFT, J, layoutmsg, swapnext
|
|
|
|
bind = $SUPER_SHIFT, K, layoutmsg, swapprev
|
|
|
|
bind = $SUPER, C, splitratio, exact 0.80
|
|
|
|
bind = $SUPER, C, layoutmsg, orientationtop
|
|
|
|
bind = $SUPER_SHIFT, C, splitratio, exact 0.65
|
|
|
|
bind = $SUPER_SHIFT, C, layoutmsg, orientationleft
|
|
|
|
bind = $SUPER, H, layoutmsg, addmaster
|
|
|
|
bind = $SUPER, L, layoutmsg, removemaster
|
|
|
|
bind = $SUPER_SHIFT, H, splitratio, -0.05
|
|
|
|
bind = $SUPER_SHIFT, L, splitratio, +0.05
|
2024-03-09 03:30:08 +01:00
|
|
|
bind = $SUPER_ALT, L, exec, hyprlock
|
2023-06-27 10:04:41 +02:00
|
|
|
|
2023-08-30 22:13:44 +02:00
|
|
|
bind = $SUPER, 1, exec, hyprnome --previous
|
|
|
|
bind = $SUPER, 2, exec, hyprnome
|
|
|
|
bind = $SUPER, F11, exec, hyprnome --previous
|
|
|
|
bind = $SUPER, F12, exec, hyprnome
|
|
|
|
bind = $SUPER_SHIFT, 1, exec, hyprnome --previous --move
|
|
|
|
bind = $SUPER_SHIFT, 2, exec, hyprnome --move
|
2023-06-17 02:01:27 +02:00
|
|
|
|
2024-03-29 19:46:11 +01:00
|
|
|
bind = ALT, tab, hycov:toggleoverview
|
|
|
|
bind = ALT, h, hycov:movefocus,l
|
|
|
|
bind = ALT, l, hycov:movefocus,r
|
|
|
|
bind = ALT, k, hycov:movefocus,u
|
|
|
|
bind = ALT, j, hycov:movefocus,d
|
|
|
|
|
|
|
|
plugin {
|
|
|
|
hycov {
|
2024-03-30 13:05:23 +01:00
|
|
|
enable_hotarea = 0
|
2024-03-29 19:46:11 +01:00
|
|
|
enable_gesture = 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-14 16:58:04 +02:00
|
|
|
bind = CTRL, Alt_L, submap, passthrough
|
|
|
|
submap = passthrough
|
|
|
|
bind = CTRL, Alt_L, submap, reset
|
|
|
|
submap = reset
|
|
|
|
|
2023-07-02 15:34:05 +02:00
|
|
|
layerrule = blur,ironbar
|
2023-08-29 05:46:45 +02:00
|
|
|
layerrule = blur,rofi
|
2023-06-26 18:04:29 +02:00
|
|
|
layerrule = blur,notifications
|
2023-06-17 02:01:27 +02:00
|
|
|
|
|
|
|
windowrulev2 = nomaxsize,class:^(winecfg\.exe)$
|
2023-06-22 13:58:22 +02:00
|
|
|
windowrulev2 = nomaxsize,class:^(osu\.exe)$
|
2023-06-17 02:01:27 +02:00
|
|
|
windowrulev2 = opaque,class:^(kitty)$
|
|
|
|
windowrulev2 = noblur,class:^(kitty)$
|
2023-07-26 17:51:44 +02:00
|
|
|
windowrulev2 = nodim,title:^(Picture-in-Picture)$
|
2024-02-19 05:58:30 +01:00
|
|
|
windowrulev2 = nodim,title:^(ピクチャーインピクチャー)$
|
2023-12-01 00:39:43 +01:00
|
|
|
windowrulev2 = nodim,class:^(mpv)$
|
2023-06-30 13:47:54 +02:00
|
|
|
windowrulev2 = tile,class:^(.qemu-system-x86_64-wrapped)$
|
2023-07-27 00:25:52 +02:00
|
|
|
windowrulev2 = opacity ${opacity} ${opacity},class:^(thunar)$
|
2024-03-25 18:46:01 +01:00
|
|
|
windowrulev2 = float,class:^(librewolf)$
|
|
|
|
windowrulev2 = center 1,class:^(librewolf)$
|
2023-06-17 02:01:27 +02:00
|
|
|
|
|
|
|
# Scroll through existing workspaces with super + scroll
|
2023-06-27 10:04:41 +02:00
|
|
|
bind = $SUPER, mouse_down, workspace, e+1
|
|
|
|
bind = $SUPER, mouse_up, workspace, e-1
|
2023-06-17 02:01:27 +02:00
|
|
|
|
|
|
|
# Move/resize windows with super + LMB/RMB and dragging
|
2023-06-27 10:04:41 +02:00
|
|
|
bindm = $SUPER, mouse:272, movewindow
|
|
|
|
bindm = $SUPER, mouse:273, resizewindow
|
2023-06-17 02:01:27 +02:00
|
|
|
|
|
|
|
# Change volume with keys
|
|
|
|
bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && notify-send -t 2000 "Muted" "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
|
2024-01-28 16:30:06 +01:00
|
|
|
bindl=, XF86AudioRaiseVolume, exec, ~/.config/hypr/raise-volume.fish
|
|
|
|
bindl=, XF86AudioLowerVolume, exec, ~/.config/hypr/lower-volume.fish
|
2023-06-17 02:01:27 +02:00
|
|
|
bindl=, XF86MonBrightnessDown, exec, brightnessctl set 5%- && notify-send -t 2000 "Decreased brightness to" "$(brightnessctl get)"
|
|
|
|
bindl=, XF86MonBrightnessUp, exec, brightnessctl set +5% && notify-send -t 2000 "Increased brightness to" "$(brightnessctl get)"
|
|
|
|
|
|
|
|
misc {
|
|
|
|
disable_hyprland_logo = yes
|
|
|
|
animate_manual_resizes = yes
|
|
|
|
animate_mouse_windowdragging = yes
|
2023-06-22 13:15:46 +02:00
|
|
|
disable_autoreload = yes
|
2024-03-29 19:56:01 +01:00
|
|
|
new_window_takes_over_fullscreen = 1
|
2023-06-17 02:01:27 +02:00
|
|
|
}
|
|
|
|
'';
|
|
|
|
}
|