From ea3030c5ee01613a4c2fac37223dd86697eb3e6f Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Thu, 6 Jan 2022 20:26:57 +0100 Subject: [PATCH] remove home_profile vars --- defaults/main.yaml | 20 +++++++++----------- templates/i3/i3.config.j2 | 28 +++++++++++++--------------- 2 files changed, 22 insertions(+), 26 deletions(-) diff --git a/defaults/main.yaml b/defaults/main.yaml index 2f6fe18..a679a95 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -11,16 +11,14 @@ kanboard_api_settings: "{{ lookup('file', '~/.kanboard_api_settings.json') }}" # kanboard_api_url: https://kanboard.katyx.net/jsonrpc.php # kanboard_api_user: ka # kanboard_api_key: xxx -home_vncserver_started_and_enabled: "{{ home_profile == 'vdesk' }}" +home_vncserver_started_and_enabled: false home_vncserver_display_number: 47 -home_xsession_vncviewer: "{{ home_profile == 'vdesk' }}" +home_xsession_vncviewer: false home_vncserver_allow_resize: true home_vncserver_geometry: '1920x1200' -home_profile: desktop - default_terminal: xfce4-terminal default_browser: firefox @@ -45,7 +43,7 @@ system_suspend_command: systemctl suspend system_reboot_command: systemctl reboot system_poweroff_command: systemctl poweroff -lockscreen_enabled: "{{ (home_profile != 'presentation') and (home_profile != 'vdesk') }}" +lockscreen_auto_enabled: true lockscreen_lock_command: xset s activate lockscreen_timeout: 300 lockscreen_locktime: 30 @@ -60,17 +58,17 @@ home_copy_all_background_images: false background_image: background/eso0932a.jpg home_autostart_terminal: false -home_autostart_nm_applet: "{{ home_profile != 'vdesk' }}" -home_autostart_blueman_applet: "{{ home_profile != 'vdesk' }}" -home_autostart_pasystray: "{{ home_profile != 'vdesk' }}" -home_autostart_unclutter: "{{ home_profile == 'presentation' }}" +home_autostart_nm_applet: false +home_autostart_blueman_applet: false +home_autostart_pasystray: false +home_autostart_unclutter: false default_activities: [] workspaces: {} -i3_hide_bar: "{{ home_profile == 'presentation' }}" -i3_hide_border_one_window: "{{ home_profile == 'presentation' }}" +i3_hide_bar: false +i3_hide_border_one_window: false i3_font: pango:{{i3_pango_font}} i3_pango_font: "{{terminal_font}}" diff --git a/templates/i3/i3.config.j2 b/templates/i3/i3.config.j2 index 8131adc..aa5c492 100644 --- a/templates/i3/i3.config.j2 +++ b/templates/i3/i3.config.j2 @@ -134,21 +134,19 @@ bindsym $mod+KP_Add exec {{points_up_command}} ## stuff that is available in default and remote mode {% macro overall() %} - {% if home_profile == "desktop" %} - bindsym $plexmod+space exec {{i3_exec_command_prefix}} ~/bin/on-space-shortcut - bindsym $plexmod+BackSpace kill - bindsym $plexmod+Tab {{workspace_switcher}} - - {% for ws in i3_number_workspace_keymaps %} - bindsym $plexmod+{{ws.keysym}} workspace "{{ws.workspace}}" - {% endfor %} - {% for ws in i3_letter_workspace_keymaps %} - bindsym $plexmod+{{ws.keysym}} workspace "{{ws.workspace}}" - {% endfor %} - # focus workspace - bindsym $plexmod+Prior workspace next - bindsym $plexmod+Next workspace prev - {% endif %} + bindsym $plexmod+space exec {{i3_exec_command_prefix}} ~/bin/on-space-shortcut + bindsym $plexmod+BackSpace kill + bindsym $plexmod+Tab {{workspace_switcher}} + + {% for ws in i3_number_workspace_keymaps %} + bindsym $plexmod+{{ws.keysym}} workspace "{{ws.workspace}}" + {% endfor %} + {% for ws in i3_letter_workspace_keymaps %} + bindsym $plexmod+{{ws.keysym}} workspace "{{ws.workspace}}" + {% endfor %} + # focus workspace + bindsym $plexmod+Prior workspace next + bindsym $plexmod+Next workspace prev # focus output bindsym $plexmod+Shift+p focus output primary