Преглед изворни кода

Merge branch 'master' of git.thengo.net:ka/ansible-role-home

pull/1/head
Markus Katharina Brechtel пре 3 година
родитељ
комит
69019f74d4
3 измењених фајлова са 11 додато и 6 уклоњено
  1. +8
    -3
      files/bin/on-focus-workspace
  2. +2
    -2
      files/bin/on-space-shortcut
  3. +1
    -1
      templates/i3/i3.config.j2

+ 8
- 3
files/bin/on-focus-workspace Прегледај датотеку

@@ -5,10 +5,15 @@ if count $argv
else
set ws (i3-msg -t get_workspaces | jq --raw-output '.[]|select(.focused == true).name')
end
set script ~/.workspaces/$ws.focus

if type -q $script
$script
set focus_script ~/.workspaces/$ws.focus
if type -q $focus_script
$focus_script
else
i3-msg mode default
end

set space_script ~/.workspaces/$ws.space
if type -q $space_script
systemctl --user start workspace-app@$ws.service
end

+ 2
- 2
files/bin/on-space-shortcut Прегледај датотеку

@@ -1,8 +1,8 @@
#!/usr/bin/fish

set ws (i3-msg -t get_workspaces | jq --raw-output '.[]|select(.focused == true).name')
set script ~/.workspaces/$ws.space

if type -q $script
set space_script ~/.workspaces/$ws.space
if type -q $space_script
systemctl --user restart workspace-app@$ws.service
end

+ 1
- 1
templates/i3/i3.config.j2 Прегледај датотеку

@@ -203,7 +203,7 @@ mode "session" {
bindsym r reload; exec --no-startup-id ~/.xsession.reload.fish; mode "default"; {{on_focus_workspace}}
bindsym R reload; exec --no-startup-id ~/.xsession.reload.fish; mode "default"; {{on_focus_workspace}}
bindsym s exec --no-startup-id {{system_suspend_command}}; mode "default"; {{on_focus_workspace}}
bindsym x exec --no-startup-id {{session_lock_command}}; mode "default"; {{on_focus_workspace}}
bindcode 49 exec --no-startup-id {{session_lock_command}}; mode "default"; {{on_focus_workspace}}
bindsym e exec --no-startup-id {{session_enable_screensaver_command}}; mode "default"; {{on_focus_workspace}}
bindsym d exec --no-startup-id {{session_disable_screensaver_command}}; mode "default"; {{on_focus_workspace}}
bindsym b exec --no-startup-id xsetroot -solid black; mode "default"; {{on_focus_workspace}}