diff --git a/roles/hyprland/files/hypr/workspaces_jk-nb.conf b/roles/hyprland/files/hypr/workspaces_jk-nb.conf new file mode 100644 index 0000000..44248ce --- /dev/null +++ b/roles/hyprland/files/hypr/workspaces_jk-nb.conf @@ -0,0 +1,34 @@ +$mainMod = SUPER # Sets "Super" key as main modifier + +workspace = 1, persistent:true, default:true +workspace = 2, persistent:true +workspace = 3, persistent:true +workspace = 4, persistent:true +workspace = 5, persistent:true +workspace = 6, persistent:true +workspace = 7, persistent:true +workspace = 8, persistent:true +workspace = 9, persistent:true +workspace = 10, persistent:true + +bind = $mainMod, 1, exec, hyprctl --batch "dispatch workspace 1;" +bind = $mainMod, 2, exec, hyprctl --batch "dispatch workspace 2;" +bind = $mainMod, 3, exec, hyprctl --batch "dispatch workspace 3;" +bind = $mainMod, 4, exec, hyprctl --batch "dispatch workspace 4;" +bind = $mainMod, 5, exec, hyprctl --batch "dispatch workspace 5;" +bind = $mainMod, 6, exec, hyprctl --batch "dispatch workspace 6;" +bind = $mainMod, 7, exec, hyprctl --batch "dispatch workspace 7;" +bind = $mainMod, 8, exec, hyprctl --batch "dispatch workspace 8;" +bind = $mainMod, 9, exec, hyprctl --batch "dispatch workspace 9;" +bind = $mainMod, 0, exec, hyprctl --batch "dispatch workspace 10;" + +bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1 +bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2 +bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3 +bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4 +bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5 +bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6 +bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7 +bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8 +bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9 +bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10 diff --git a/roles/hyprland/files/hypr/workspaces.conf b/roles/hyprland/files/hypr/workspaces_jk-pc.conf similarity index 100% rename from roles/hyprland/files/hypr/workspaces.conf rename to roles/hyprland/files/hypr/workspaces_jk-pc.conf diff --git a/roles/hyprland/tasks/main.yml b/roles/hyprland/tasks/main.yml index 6ac9512..7e496c3 100644 --- a/roles/hyprland/tasks/main.yml +++ b/roles/hyprland/tasks/main.yml @@ -28,7 +28,7 @@ - hyprland.conf - hyprlock.conf - hyprpaper.conf - - workspaces.conf + # - workspaces.conf - scripts - name: Symlink host-specific monitors.conf @@ -38,6 +38,13 @@ state: link force: true +- name: Symlink host-specific workspaces.conf + file: + src: "{{ role_path }}/files/hypr/workspaces_{{ ansible_hostname }}.conf" + dest: "{{ config_dir }}/hypr/workspaces.conf" + state: link + force: true + - name: Symlink dunst file: src: "{{ role_path }}/files/dunst"