Compare commits
8 Commits
ecdbedf4b2
...
7f507ec4c3
| Author | SHA1 | Date | |
|---|---|---|---|
| 7f507ec4c3 | |||
| 4073ac5930 | |||
| a7d23f06c4 | |||
| e5d23adcab | |||
| db329973ec | |||
| e2395d12cf | |||
| 40ef2ad2fd | |||
| c0a2e34fd5 |
@@ -26,6 +26,7 @@ users:
|
|||||||
bigger_font: true
|
bigger_font: true
|
||||||
mail: hannes@hkoerber.de
|
mail: hannes@hkoerber.de
|
||||||
git_gpg_sign: false
|
git_gpg_sign: false
|
||||||
|
ssh_agent: false
|
||||||
gpg_agent: true
|
gpg_agent: true
|
||||||
gpg_agent_for_ssh: true
|
gpg_agent_for_ssh: true
|
||||||
gpg_key:
|
gpg_key:
|
||||||
@@ -54,9 +55,9 @@ screen:
|
|||||||
screencfgs: []
|
screencfgs: []
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
1: www
|
1: ""
|
||||||
9: comm
|
9: ""
|
||||||
10: music
|
10: ""
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
MACHINE_TYPE: "workstation"
|
MACHINE_TYPE: "workstation"
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ users:
|
|||||||
manage_css: false
|
manage_css: false
|
||||||
mail: hannes.koerber@tradebyte.com
|
mail: hannes.koerber@tradebyte.com
|
||||||
git_gpg_sign: false
|
git_gpg_sign: false
|
||||||
|
ssh_agent: true
|
||||||
gpg_agent: false
|
gpg_agent: false
|
||||||
gpg_agent_for_ssh: false
|
gpg_agent_for_ssh: false
|
||||||
environment:
|
environment:
|
||||||
@@ -42,6 +43,7 @@ users:
|
|||||||
manage_css: true
|
manage_css: true
|
||||||
mail: hannes@hkoerber.de
|
mail: hannes@hkoerber.de
|
||||||
git_gpg_sign: false
|
git_gpg_sign: false
|
||||||
|
ssh_agent: false
|
||||||
gpg_agent: true
|
gpg_agent: true
|
||||||
gpg_agent_for_ssh: true
|
gpg_agent_for_ssh: true
|
||||||
gpg_key:
|
gpg_key:
|
||||||
@@ -71,14 +73,14 @@ screen:
|
|||||||
0: eDP-1
|
0: eDP-1
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
1: www
|
1: ""
|
||||||
2: www
|
2: ""
|
||||||
3: term-local
|
3: " local"
|
||||||
4: term-remote
|
4: " remote"
|
||||||
7: comm
|
7: ""
|
||||||
8: pass
|
8: ""
|
||||||
9: music
|
9: ""
|
||||||
10: pim
|
10: ""
|
||||||
|
|
||||||
screencfgs:
|
screencfgs:
|
||||||
- name: three-screens
|
- name: three-screens
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ users:
|
|||||||
manage_css: false
|
manage_css: false
|
||||||
mail: hannes.koerber@tradebyte.com
|
mail: hannes.koerber@tradebyte.com
|
||||||
git_gpg_sign: false
|
git_gpg_sign: false
|
||||||
|
ssh_agent: true
|
||||||
gpg_agent: false
|
gpg_agent: false
|
||||||
gpg_agent_for_ssh: false
|
gpg_agent_for_ssh: false
|
||||||
environment:
|
environment:
|
||||||
@@ -46,6 +47,7 @@ users:
|
|||||||
manage_css: true
|
manage_css: true
|
||||||
mail: hannes@hkoerber.de
|
mail: hannes@hkoerber.de
|
||||||
git_gpg_sign: false
|
git_gpg_sign: false
|
||||||
|
ssh_agent: false
|
||||||
gpg_agent: true
|
gpg_agent: true
|
||||||
gpg_agent_for_ssh: true
|
gpg_agent_for_ssh: true
|
||||||
gpg_key:
|
gpg_key:
|
||||||
@@ -75,14 +77,14 @@ screen:
|
|||||||
0: eDP-1
|
0: eDP-1
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
1: www
|
1: ""
|
||||||
2: www
|
2: ""
|
||||||
3: term-local
|
3: " local"
|
||||||
4: term-remote
|
4: " remote"
|
||||||
7: comm
|
7: ""
|
||||||
8: pass
|
8: ""
|
||||||
9: music
|
9: ""
|
||||||
10: pim
|
10: ""
|
||||||
|
|
||||||
screencfgs:
|
screencfgs:
|
||||||
- name: three-screens
|
- name: three-screens
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ colors:
|
|||||||
|
|
||||||
# Normal colors
|
# Normal colors
|
||||||
normal:
|
normal:
|
||||||
black: '#272822'
|
black: '#000000'
|
||||||
red: '#F92672'
|
red: '#F92672'
|
||||||
green: '#A6E22E'
|
green: '#A6E22E'
|
||||||
yellow: '#F4BF75'
|
yellow: '#F4BF75'
|
||||||
|
|||||||
31
i3/config.j2
31
i3/config.j2
@@ -226,27 +226,7 @@ assign [class="^Wine$"] $workspace10
|
|||||||
|
|
||||||
bindsym $mod+Shift+v exec --no-startup-id redshift-toggle
|
bindsym $mod+Shift+v exec --no-startup-id redshift-toggle
|
||||||
|
|
||||||
# bindsym $mod+$pim_toggle \
|
bindsym $mod+$pim_toggle exec --no-startup-id ~/.i3/scripts/swap-from-workspace.sh $workspace10
|
||||||
# mark --add _source; \
|
|
||||||
# focus output eDP-1; \
|
|
||||||
# mark --add _origin; \
|
|
||||||
# workspace $workspace10; \
|
|
||||||
# mark --add _destination; \
|
|
||||||
# [con_mark="^_destination$"] swap container with mark "_source"; \
|
|
||||||
# [con_mark="^_source$"] focus; unmark _source; \
|
|
||||||
# [con_mark="^_origin$"] focus; unmark _origin; \
|
|
||||||
# [con_mark="^_destination$"] focus; unmark _destination; \
|
|
||||||
|
|
||||||
bindsym $mod+$pim_toggle \
|
|
||||||
unmark _destination; \
|
|
||||||
mark _source; \
|
|
||||||
workspace $workspace10; \
|
|
||||||
mark --add _destination; \
|
|
||||||
[con_mark="^_destination$"] swap container with mark "_source"; \
|
|
||||||
[con_mark="^_source$"] focus; \
|
|
||||||
unmark _source; \
|
|
||||||
[con_mark="^_destination$"] focus; \
|
|
||||||
unmark _destination;
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
### MODES ######################################################################
|
### MODES ######################################################################
|
||||||
@@ -322,7 +302,7 @@ assign [class="^Wine$"] $workspace10
|
|||||||
client.focused #e5b567 #e5b567 #000000 #FF0000
|
client.focused #e5b567 #e5b567 #000000 #FF0000
|
||||||
client.focused_inactive #272822 #5f676a #ffffff #484e50
|
client.focused_inactive #272822 #5f676a #ffffff #484e50
|
||||||
client.unfocused #1C1C1C #272822 #cccccc #292d2e
|
client.unfocused #1C1C1C #272822 #cccccc #292d2e
|
||||||
client.urgent #272822 #900000 #ffffff #900000
|
client.urgent #272822 #ff7777 #000000 #900000
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
### APPLICATION SPECIFIC SETTINGS ##############################################
|
### APPLICATION SPECIFIC SETTINGS ##############################################
|
||||||
@@ -386,10 +366,11 @@ bar {
|
|||||||
# focused_background #303030
|
# focused_background #303030
|
||||||
# focused_separator #272822
|
# focused_separator #272822
|
||||||
|
|
||||||
focused_workspace #e5b567 #272822 #ffffff
|
# border bg text
|
||||||
active_workspace #272822 #5f676a #ffffff
|
focused_workspace #e5b567 #4f676a #ffffff
|
||||||
|
active_workspace #272822 #4f676a #ffffff
|
||||||
inactive_workspace #272822 #272822 #dddddd
|
inactive_workspace #272822 #272822 #dddddd
|
||||||
urgent_workspace #D00000 #D00000 #272822
|
urgent_workspace #272822 #ff7777 #272822
|
||||||
binding_mode #272822 #e5b567 #272822
|
binding_mode #272822 #e5b567 #272822
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
59
i3/scripts/swap-from-workspace.sh
Executable file
59
i3/scripts/swap-from-workspace.sh
Executable file
@@ -0,0 +1,59 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -o nounset
|
||||||
|
set -o errexit
|
||||||
|
set -o pipefail
|
||||||
|
set -o xtrace
|
||||||
|
|
||||||
|
cmds=()
|
||||||
|
|
||||||
|
workspacescratch="${1}"
|
||||||
|
|
||||||
|
i3msgworkspaces="$(i3-msg -t get_workspaces)"
|
||||||
|
|
||||||
|
output_of_pim=$(printf '%s' "${i3msgworkspaces}" | jq -r 'map(select(.name == "'"${workspacescratch}"'")) | .[0].output')
|
||||||
|
|
||||||
|
active_workspace_on_target_output=$(printf '%s' "${i3msgworkspaces}" | jq -r 'map(select(.output == "'"${output_of_pim}"'" and .visible)) | .[0].name')
|
||||||
|
|
||||||
|
focused_workspace_name=$(printf '%s' "${i3msgworkspaces}" | jq -r 'map(select(.focused)) | .[0].name')
|
||||||
|
focused_workspace_output=$(printf '%s' "${i3msgworkspaces}" | jq -r 'map(select(.focused)) | .[0].output')
|
||||||
|
|
||||||
|
if [[ "${focused_workspace_name}" == "${workspacescratch}" ]]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmds+=('unmark _destination')
|
||||||
|
cmds+=('mark _source')
|
||||||
|
|
||||||
|
if [[ "${active_workspace_on_target_output}" != "${workspacescratch}" ]] && [[ "${output_of_pim}" != "${focused_workspace_output}" ]]; then
|
||||||
|
need_output_reset=1
|
||||||
|
else
|
||||||
|
need_output_reset=0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ((need_output_reset)); then
|
||||||
|
cmds+=('workspace "'"${active_workspace_on_target_output}"'"')
|
||||||
|
cmds+=("mark --add _origin")
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmds+=('workspace "'"${workspacescratch}"'"')
|
||||||
|
cmds+=('mark --add _destination')
|
||||||
|
|
||||||
|
cmds+=('[con_mark="^_destination$"] swap container with mark "_source"')
|
||||||
|
|
||||||
|
cmds+=('[con_mark="^_source$"] focus')
|
||||||
|
cmds+=('unmark _source')
|
||||||
|
|
||||||
|
if ((need_output_reset)); then
|
||||||
|
cmds+=('[con_mark="^_origin$"] focus')
|
||||||
|
cmds+=('unmark _origin')
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmds+=('[con_mark="^_destination$"] focus')
|
||||||
|
cmds+=('unmark _destination')
|
||||||
|
|
||||||
|
i3msgcmd=""
|
||||||
|
for cmd in "${cmds[@]}"; do
|
||||||
|
i3msgcmd="${i3msgcmd}${cmd};"
|
||||||
|
done
|
||||||
|
i3-msg "${i3msgcmd}"
|
||||||
@@ -16,8 +16,6 @@ set-option -g mode-keys vi
|
|||||||
|
|
||||||
set-option -g renumber-windows on
|
set-option -g renumber-windows on
|
||||||
|
|
||||||
set-option -g bell-action any
|
|
||||||
|
|
||||||
set-option -g history-limit 50000
|
set-option -g history-limit 50000
|
||||||
|
|
||||||
set-option -g base-index 1
|
set-option -g base-index 1
|
||||||
@@ -46,6 +44,8 @@ set-option -g window-status-current-style "bg=#e5b567,fg=black"
|
|||||||
set-option -g monitor-activity on
|
set-option -g monitor-activity on
|
||||||
set-option -g visual-activity off
|
set-option -g visual-activity off
|
||||||
set-option -g window-status-activity-style "bg=#ff7777,fg=black"
|
set-option -g window-status-activity-style "bg=#ff7777,fg=black"
|
||||||
|
set-option -g monitor-bell on
|
||||||
|
set-option -g bell-action any
|
||||||
|
|
||||||
set-option -g automatic-rename on
|
set-option -g automatic-rename on
|
||||||
set-option -g automatic-rename-format '#{pane_current_command}'
|
set-option -g automatic-rename-format '#{pane_current_command}'
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ set noerrorbells
|
|||||||
set noshowmode
|
set noshowmode
|
||||||
set numberwidth=2
|
set numberwidth=2
|
||||||
set relativenumber
|
set relativenumber
|
||||||
set shortmess=rti
|
set shortmess=rtiF
|
||||||
set ruler
|
set ruler
|
||||||
set scrolloff=7
|
set scrolloff=7
|
||||||
set title
|
set title
|
||||||
|
|||||||
@@ -19,6 +19,15 @@ elif [[ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlightin
|
|||||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
{% if user.ssh_agent %}
|
||||||
|
if ! pgrep -u "$USER" ssh-agent > /dev/null ; then
|
||||||
|
ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"
|
||||||
|
fi
|
||||||
|
if [[ ! "$SSH_AUTH_SOCK" ]]; then
|
||||||
|
source "$XDG_RUNTIME_DIR/ssh-agent.env" >/dev/null
|
||||||
|
fi
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if distro == 'ubuntu' %}
|
{% if distro == 'ubuntu' %}
|
||||||
alias imv=imv-x11
|
alias imv=imv-x11
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user