From 9c057cd96be17cb4463f2f62dc47be8fbea63f70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Wed, 14 Feb 2024 00:16:11 +0100 Subject: [PATCH] add hyperland --- hyperland/.config/hypr/hyprland.conf | 79 ++++++++++++++++++++++++++++ hyperland/.config/waybar/config | 12 +++++ hyperland/.config/waybar/style.css | 22 ++++++++ 3 files changed, 113 insertions(+) create mode 100644 hyperland/.config/hypr/hyprland.conf create mode 100644 hyperland/.config/waybar/config create mode 100644 hyperland/.config/waybar/style.css diff --git a/hyperland/.config/hypr/hyprland.conf b/hyperland/.config/hypr/hyprland.conf new file mode 100644 index 0000000..b898147 --- /dev/null +++ b/hyperland/.config/hypr/hyprland.conf @@ -0,0 +1,79 @@ +env = LIBVA_DRIVER_NAME,nvidia +env = XDG_SESSION_TYPE,wayland +env = GBM_BACKEND,nvidia-drm +env = __GLX_VENDOR_LIBRARY_NAME,nvidia +env = WLR_NO_HARDWARE_CURSORS,1 + +monitor=DP-2,highres,0x0,1.666667,transform,1 +monitor=DP-1,highres,1295x0,1.666667 + +input { + kb_layout = pl + kb_options = ctrl:nocaps +} + +general { + gaps_in = 2 + gaps_out = 5 +} + +animations { + enabled = false +} + +misc { + disable_hyprland_logo = true + disable_splash_rendering = true +} + +$menu = rofi -show drun -theme Arc-Dark +$terminal = alacritty + +$mainMod = SUPER + +bind = $mainMod, P, exec, $menu +bind = $mainMod SHIFT, Return, exec, $terminal +bind = $mainMod CONTROL SHIFT, Q, exit +bind = $mainMod CONTROL SHIFT, L, exec, swaylock +bind = $mainMod, F, fullscreen, 0 +bind = $mainMod, N, cyclenext, +bind = $mainMod, P, cyclenext, prev + +bind = $mainMod, h, movefocus, l +bind = $mainMod, j, movefocus, d +bind = $mainMod, k, movefocus, u +bind = $mainMod, l, movefocus, r + +bind = $mainMod SHIFT, h, swapwindow, l +bind = $mainMod SHIFT, j, swapwindow, d +bind = $mainMod SHIFT, k, swapwindow, u +bind = $mainMod SHIFT, l, swapwindow, r + +# Switch workspaces with mainMod + [0-9] +bind = $mainMod, 1, workspace, 1 +bind = $mainMod, 2, workspace, 2 +bind = $mainMod, 3, workspace, 3 +bind = $mainMod, 4, workspace, 4 +bind = $mainMod, 5, workspace, 5 +bind = $mainMod, 6, workspace, 6 +bind = $mainMod, 7, workspace, 7 +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 = $mainMod SHIFT, 1, movetoworkspace, 1 +bind = $mainMod SHIFT, 2, movetoworkspace, 2 +bind = $mainMod SHIFT, 3, movetoworkspace, 3 +bind = $mainMod SHIFT, 4, movetoworkspace, 4 +bind = $mainMod SHIFT, 5, movetoworkspace, 5 +bind = $mainMod SHIFT, 6, movetoworkspace, 6 +bind = $mainMod SHIFT, 7, movetoworkspace, 7 +bind = $mainMod SHIFT, 8, movetoworkspace, 8 +bind = $mainMod SHIFT, 9, movetoworkspace, 9 +bind = $mainMod SHIFT, 0, movetoworkspace, 10 + +bind = $mainMod, right, workspace, m+1 +bind = $mainMod, left, workspace, m-1 + +exec-once = waybar diff --git a/hyperland/.config/waybar/config b/hyperland/.config/waybar/config new file mode 100644 index 0000000..ca6328a --- /dev/null +++ b/hyperland/.config/waybar/config @@ -0,0 +1,12 @@ +{ + "layer": "top", + "position": "top", + "modules-left": [ + "hyprland/workspaces", + "hyprland/window" + ], + "modules-right": [ + "tray", + "clock" + ], +} diff --git a/hyperland/.config/waybar/style.css b/hyperland/.config/waybar/style.css new file mode 100644 index 0000000..8ba16a3 --- /dev/null +++ b/hyperland/.config/waybar/style.css @@ -0,0 +1,22 @@ +* { + font-family: GoMono Nerd Font; + font-size: 14; + background-color: #263c59; + color: #7b899d; +} + +#workspaces { + padding: 0 1rem; +} + +#workspaces button { + padding: 0 3px; +} + +#workspaces button.active { + background-color: #7b899d; +} + +#clock { + padding: 0 1rem; +}