diff --git a/home/.config/hypr/autorun.conf b/home/.config/hypr/autorun.conf new file mode 100644 index 0000000..4f24d52 --- /dev/null +++ b/home/.config/hypr/autorun.conf @@ -0,0 +1,12 @@ +################# +### AUTOSTART ### +################# + +# exec-once = $terminal +# exec-once = nm-applet & +# exec-once = waybar & hyprpaper & firefox +exec-once = eww open bar --id bar1 --arg monitor=0 --arg monitor-workspaces="[1,2]" +exec-once = eww open bar --id bar2 --arg monitor=1 --arg monitor-workspaces="[3,4]" +exec-once = eww open monitor-bump +exec-once = swww-daemon --format xrgb & +exec-once = swaync & diff --git a/home/.config/hypr/binds.conf b/home/.config/hypr/binds.conf index 0178021..522e721 100644 --- a/home/.config/hypr/binds.conf +++ b/home/.config/hypr/binds.conf @@ -2,20 +2,26 @@ ### KEYBINDINGSS ### #################### -# See https://wiki.hyprland.org/Configuring/Keywords/ -$mainMod = SUPER # Sets "Windows" key as main modifier +$mainMod = SUPER +$terminal = alacritty +$fileManager = nautilus +$menu = rofi -show combi -combi-modes "window,run,ssh" -modes combi +$emojiMenu = rofi -modi emoji -show emoji + +windowrulev2 = float,class:(floatingTerm) -windowrulev2=float,class:(floatingTerm) # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, T, exec, $terminal -bind = $mainMod, Q, killactive, +bind = $mainMod, Q, killactive bind = alt, Q, killactive -bind = $mainMod, M, exit, +bind = $mainMod, M, exit bind = $mainMod, E, exec, $fileManager bind = $mainMod, V, togglefloating, bind = $mainMod, L, exec, hyprlock bind = $mainMod, N, exec, swaync-client --toggle-panel +bind = $mainMod, F, fullscreen + bind = alt, space, exec, $menu --class=floatingTerm bind = alt win shift, e, exec, $emojiMenu # bind = $mainMod, P, pseudo, # dwindle @@ -38,10 +44,10 @@ bind = ctrl alt win, right, movewindow, mon:-1 bind = SUPER, S, swapactiveworkspaces, 0 1 # resize with ctrl win shift hjkl -bind = $mainMod ctrl SHIFT, L, resizeactive, 30 0 -bind = $mainMod ctrl SHIFT, H, resizeactive, -30 0 -bind = $mainMod ctrl SHIFT, K, resizeactive, 0 30 -bind = $mainMod ctrl SHIFT, J, resizeactive, 0 -30 +bind = $mainMod ctrl shift, L, resizeactive, 30 0 +bind = $mainMod ctrl shift, H, resizeactive, -30 0 +bind = $mainMod ctrl shift, K, resizeactive, 0 30 +bind = $mainMod ctrl shift, J, resizeactive, 0 -30 # move with ctrl alt hjkl bind = ctrl win, H, movewindow, l @@ -61,29 +67,29 @@ bind = $mainMod, 8, workspace, 8 bind = $mainMod, 9, workspace, 9 bind = $mainMod, 0, workspace, 10 -# Move active window to a workspace with mainMod + SHIFT + [0-9] -bind = ctrl SHIFT alt, 1, movetoworkspace, 1 -bind = ctrl SHIFT alt, 2, movetoworkspace, 2 -bind = ctrl SHIFT alt, 3, movetoworkspace, 3 -bind = ctrl SHIFT alt, 4, movetoworkspace, 4 -bind = ctrl SHIFT alt, 5, movetoworkspace, 5 -bind = ctrl SHIFT alt, 6, movetoworkspace, 6 -bind = ctrl SHIFT alt, 7, movetoworkspace, 7 -bind = ctrl SHIFT alt, 8, movetoworkspace, 8 -bind = ctrl SHIFT alt, 9, movetoworkspace, 9 -bind = ctrl SHIFT alt, 0, movetoworkspace, 10 +# Move active window to a workspace with mainMod + shift + [0-9] +bind = ctrl shift alt, 1, movetoworkspace, 1 +bind = ctrl shift alt, 2, movetoworkspace, 2 +bind = ctrl shift alt, 3, movetoworkspace, 3 +bind = ctrl shift alt, 4, movetoworkspace, 4 +bind = ctrl shift alt, 5, movetoworkspace, 5 +bind = ctrl shift alt, 6, movetoworkspace, 6 +bind = ctrl shift alt, 7, movetoworkspace, 7 +bind = ctrl shift alt, 8, movetoworkspace, 8 +bind = ctrl shift alt, 9, movetoworkspace, 9 +bind = ctrl shift alt, 0, movetoworkspace, 10 bind = ctrl alt, H, workspace, -1 bind = ctrl alt, L, workspace, +1 -bind = ctrl alt SHIFT, H, movetoworkspace, -1 -bind = ctrl alt SHIFT, L, movetoworkspace, +1 +bind = ctrl alt shift, H, movetoworkspace, -1 +bind = ctrl alt shift, L, movetoworkspace, +1 + -bind = $mainMod, F, fullscreen # Example special workspace (scratchpad) # bind = $mainMod, S, togglespecialworkspace, magic -# bind = $mainMod SHIFT, S, movetoworkspace, special:magic +# bind = $mainMod shift, S, movetoworkspace, special:magic # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 diff --git a/home/.config/hypr/hyprland.conf b/home/.config/hypr/hyprland.conf index d0e0cd6..01e98d9 100644 --- a/home/.config/hypr/hyprland.conf +++ b/home/.config/hypr/hyprland.conf @@ -1,62 +1,34 @@ -################ -### MONITORS ### -################ - +### MONITORS # See https://wiki.hyprland.org/Configuring/Monitors/ monitor=DP-1, 3840x1600@144, 0x0, 1, vrr, 1 monitor=DP-2, 2560x1440@144, 0x-1440, 1 -################### -### MY PROGRAMS ### -################### - -$terminal = alacritty -$fileManager = nautilus -$menu = rofi -show combi -combi-modes "window,run,ssh" -modes combi -$emojiMenu = rofi -modi emoji -show emoji - -################# -### AUTOSTART ### -################# - -# exec-once = $terminal -# exec-once = nm-applet & -# exec-once = waybar & hyprpaper & firefox -exec-once = eww open bar --id bar1 --arg monitor=0 --arg monitor-workspaces="[1,2]" -exec-once = eww open bar --id bar2 --arg monitor=1 --arg monitor-workspaces="[3,4]" -exec-once = swww-daemon --format xrgb & -exec-once = swaync & +source = ~/.config/hypr/autorun.conf source = ~/.config/hypr/env.conf source = ~/.config/hypr/style.conf +source = ~/.config/hypr/input.conf +source = ~/.config/hypr/binds.conf + -# https://wiki.hyprland.org/Configuring/Variables/#misc -misc { - force_default_wallpaper = 0 - disable_hyprland_logo = true - animate_manual_resizes = true - mouse_move_focuses_monitor = true -} workspace = 1, monitor:DP-1 workspace = 2, monitor:DP-1 workspace = 3, monitor:DP-2 workspace = 4, monitor:DP-2 +### Window rules + windowrulev2 = suppressevent maximize, class:.* # You'll probably like this. -windowrulev2 = workspace 3,class:(org.telegram.desktop) -windowrulev2 = workspace 3,class:(discord) -windowrulev2 = workspace 2,class:(steam) -windowrulev2 = float,class:(steam),title:(Friends List) -windowrulev2 = float,class:(steam),title:(Steam Settings) +windowrulev2 = workspace 3, class:(org.telegram.desktop) +windowrulev2 = workspace 3, class:(discord) +windowrulev2 = workspace 2, class:(steam) +windowrulev2 = float, class:(steam), title:(Friends List) +windowrulev2 = float, class:(steam), title:(Steam Settings) -source = ~/.config/hypr/input.conf -source = ~/.config/hypr/binds.conf - -# blur eww power-menu +# blur eww windows layerrule = blur, power-menu layerrule = ignorezero, power-menu - layerrule = blur, media-menu layerrule = ignorezero, media-menu diff --git a/home/.config/hypr/style.conf b/home/.config/hypr/style.conf index 4f099d5..a2a9c55 100644 --- a/home/.config/hypr/style.conf +++ b/home/.config/hypr/style.conf @@ -61,3 +61,11 @@ dwindle { pseudotile = true preserve_split = true } + +# https://wiki.hyprland.org/Configuring/Variables/#misc +misc { + force_default_wallpaper = 0 + disable_hyprland_logo = true + animate_manual_resizes = true + mouse_move_focuses_monitor = true +}