From b9d7b2ac81aeb6b3c9ecd77944be9dc6c47ed758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 28 Mar 2024 00:04:18 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(hypr):=20add=20new=20plugins:?= =?UTF-8?q?=20hyprbars=20and=20hyprsplit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/hypr/hyprland.conf | 12 +++++++-- .config/hypr/plugins/hyprbars.conf | 15 +++++++++++ .config/hypr/plugins/hyprsplit.conf | 42 +++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 .config/hypr/plugins/hyprbars.conf create mode 100644 .config/hypr/plugins/hyprsplit.conf diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 7cfecd0f..298485b5 100755 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -13,5 +13,13 @@ exec-once = $HOME/.config/hypr/scripts/autostart/apps # Theme (Add the theme you want) source = ~/.config/hypr/themes/luna/luna.conf -# Plugins (Uncomment this line if you are going to use the plugins) -# exec-once = hyprpm reload -n +# Plugins +exec-once = hyprpm reload -n + +# Hyprsplit +# exec-once = hyprpm enable hyprsplit +# source = ~/.config/hypr/plugins/hyprsplit.conf + +# Hyprbars +# exec-once = hyprpm enable hyprbars +# source = ~/.config/hypr/plugins/hyprbars.conf diff --git a/.config/hypr/plugins/hyprbars.conf b/.config/hypr/plugins/hyprbars.conf new file mode 100644 index 00000000..bc8f93a8 --- /dev/null +++ b/.config/hypr/plugins/hyprbars.conf @@ -0,0 +1,15 @@ +source = ../themes/luna/colors.conf + +# Conf +plugin { + hyprbars { + bar_height = 20 + bar_color = rgb($mantleAlpha) + bar_text_font = "JetBrainsMono Nerd Font" + bar_part_of_window = true + bar_precedence_over_border = false + + hyprbars-button = rgb(ff4040), 10,  , hyprctl dispatch killactive + hyprbars-button = rgb(eeee11), 10,  , hyprctl dispatch fullscreen 1 + } +} diff --git a/.config/hypr/plugins/hyprsplit.conf b/.config/hypr/plugins/hyprsplit.conf new file mode 100644 index 00000000..161b744e --- /dev/null +++ b/.config/hypr/plugins/hyprsplit.conf @@ -0,0 +1,42 @@ +# Conf +plugin { + hyprsplit { + num_workspaces = 10 + } +} + +# Keybinds +bind = SUPER, 1, split:workspace, 1 +bind = SUPER, 2, split:workspace, 2 +bind = SUPER, 3, split:workspace, 3 +bind = SUPER, 4, split:workspace, 4 +bind = SUPER, 5, split:workspace, 5 +bind = SUPER, 6, split:workspace, 6 +bind = SUPER, 7, split:workspace, 7 +bind = SUPER, 8, split:workspace, 8 +bind = SUPER, 9, split:workspace, 9 +bind = SUPER, 0, split:workspace, 10 + +# Moving windows to other workspaces +bind = SUPERSHIFT, 1, split:movetoworkspace, 1 +bind = SUPERSHIFT, 2, split:movetoworkspace, 2 +bind = SUPERSHIFT, 3, split:movetoworkspace, 3 +bind = SUPERSHIFT, 4, split:movetoworkspace, 4 +bind = SUPERSHIFT, 5, split:movetoworkspace, 5 +bind = SUPERSHIFT, 6, split:movetoworkspace, 6 +bind = SUPERSHIFT, 7, split:movetoworkspace, 7 +bind = SUPERSHIFT, 8, split:movetoworkspace, 8 +bind = SUPERSHIFT, 9, split:movetoworkspace, 9 +bind = SUPERSHIFT, 0, split:movetoworkspace, 10 + +# Moving windows to other workspaces (silent) +bind = SUPERALT, 1, split:movetoworkspacesilent, 1 +bind = SUPERALT, 2, split:movetoworkspacesilent, 2 +bind = SUPERALT, 3, split:movetoworkspacesilent, 3 +bind = SUPERALT, 4, split:movetoworkspacesilent, 4 +bind = SUPERALT, 5, split:movetoworkspacesilent, 5 +bind = SUPERALT, 6, split:movetoworkspacesilent, 6 +bind = SUPERALT, 7, split:movetoworkspacesilent, 7 +bind = SUPERALT, 8, split:movetoworkspacesilent, 8 +bind = SUPERALT, 9, split:movetoworkspacesilent, 9 +bind = SUPERALT, 0, split:movetoworkspacesilent, 10