Make workspace config device-specific

This commit is contained in:
Johannes Knopp
2026-04-01 14:34:26 +02:00
parent ef0efe4ba8
commit 4bc368dfd9
3 changed files with 42 additions and 1 deletions

View File

@ -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

View File

@ -28,7 +28,7 @@
- hyprland.conf - hyprland.conf
- hyprlock.conf - hyprlock.conf
- hyprpaper.conf - hyprpaper.conf
- workspaces.conf # - workspaces.conf
- scripts - scripts
- name: Symlink host-specific monitors.conf - name: Symlink host-specific monitors.conf
@ -38,6 +38,13 @@
state: link state: link
force: true 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 - name: Symlink dunst
file: file:
src: "{{ role_path }}/files/dunst" src: "{{ role_path }}/files/dunst"