mirror of
https://github.com/rileyrg/linux-init.git
synced 2024-09-29 05:37:29 +02:00
use default kanshi config if host specific not in .config/kanshi
This commit is contained in:
parent
5e5bcf3d52
commit
80aa98edcc
4 changed files with 29 additions and 23 deletions
24
README.md
24
README.md
|
@ -70,7 +70,7 @@ If using startx on debian this is taken care of by the system XSession loading e
|
|||
\`-—
|
||||
|
||||
|
||||
<a id="orgbfdb662"></a>
|
||||
<a id="orga1f7396"></a>
|
||||
|
||||
## ~/.profile
|
||||
|
||||
|
@ -123,7 +123,7 @@ fi
|
|||
```
|
||||
|
||||
|
||||
<a id="org00c7572"></a>
|
||||
<a id="org8f31d52"></a>
|
||||
|
||||
## ~/.bash\_profile
|
||||
|
||||
|
@ -650,8 +650,8 @@ exec sway-kanshi
|
|||
exec swaybg -i ~/Pictures/Wallpapers/current
|
||||
exec sway-idle-hook
|
||||
exec nm-applet --indicator
|
||||
|
||||
exec 'sleep 3; swaymsg workspace 1:edit'
|
||||
exec gpg-cache
|
||||
exec swaymsg workspace 1:edit
|
||||
|
||||
```
|
||||
|
||||
|
@ -1379,11 +1379,13 @@ Monitor control with hotplug <https://github.com/emersion/kanshi>
|
|||
#!/usr/bin/bash
|
||||
#Maintained in linux-init-files.org
|
||||
config="$HOME/.config/kanshi/config-$(hostname)"
|
||||
if [ ! -f "$config" ]; then
|
||||
config="$HOME/.config/kanshi/config"
|
||||
if [ -f "$config" ]; then
|
||||
logger -t "kanshi" "$config"
|
||||
exec kanshi -c "$config"
|
||||
else
|
||||
logger -t "kanshi" "default config"
|
||||
exec kanshi
|
||||
fi
|
||||
logger -t "kanshi" "$config"
|
||||
kanshi -c "$config"
|
||||
```
|
||||
|
||||
2. config-thinkpadt14s
|
||||
|
@ -1981,7 +1983,7 @@ e dbg.bep=main
|
|||
export PATH="${HOME}/.pyenv/bin":"${PATH}"
|
||||
```
|
||||
|
||||
2. [Eval](#org00c7572) pyenv init from bash\_profile in order to set python version
|
||||
2. [Eval](#org8f31d52) pyenv init from bash\_profile in order to set python version
|
||||
|
||||
```bash
|
||||
eval "$(pyenv init -)"
|
||||
|
@ -1993,7 +1995,7 @@ e dbg.bep=main
|
|||
eval "$(pyenv virtualenv-init -)"
|
||||
```
|
||||
|
||||
Added to PATH in [~/.profile](#orgbfdb662)
|
||||
Added to PATH in [~/.profile](#orga1f7396)
|
||||
|
||||
|
||||
### Debuggers :debuggers:
|
||||
|
@ -2399,7 +2401,7 @@ fi
|
|||
WID=`xdotool search --name "^${title}$" | head -1`
|
||||
if [ -z "$WID" ]; then
|
||||
# terminator -T "${title}" -p "${profile}" ${tflags} -e "tmux new-session -A -s ${sessionname} ${script}"
|
||||
alacritty -t "${title}" --command bash -c "tmux new-session -A -s ${sessionname} ${script}"
|
||||
alacritty -t "${title}" --class "${title}" --command bash -c "tmux new-session -A -s ${sessionname} ${script}"
|
||||
else
|
||||
if ! tmux has-session -t "${sessionname}"; then
|
||||
tmux attach -t "${sessionname}"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
WID=`xdotool search --name "^${title}$" | head -1`
|
||||
if [ -z "$WID" ]; then
|
||||
# terminator -T "${title}" -p "${profile}" ${tflags} -e "tmux new-session -A -s ${sessionname} ${script}"
|
||||
alacritty -t "${title}" --command bash -c "tmux new-session -A -s ${sessionname} ${script}"
|
||||
alacritty -t "${title}" --class "${title}" --command bash -c "tmux new-session -A -s ${sessionname} ${script}"
|
||||
else
|
||||
if ! tmux has-session -t "${sessionname}"; then
|
||||
tmux attach -t "${sessionname}"
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
#!/usr/bin/bash
|
||||
#Maintained in linux-init-files.org
|
||||
config="$HOME/.config/kanshi/config-$(hostname)"
|
||||
if [ ! -f "$config" ]; then
|
||||
config="$HOME/.config/kanshi/config"
|
||||
if [ -f "$config" ]; then
|
||||
logger -t "kanshi" "$config"
|
||||
exec kanshi -c "$config"
|
||||
else
|
||||
logger -t "kanshi" "default config"
|
||||
exec kanshi
|
||||
fi
|
||||
logger -t "kanshi" "$config"
|
||||
kanshi -c "$config"
|
||||
|
|
|
@ -1207,8 +1207,8 @@ X11 apps still need resource definitions when launched under XWayland.
|
|||
exec swaybg -i ~/Pictures/Wallpapers/current
|
||||
exec sway-idle-hook
|
||||
exec nm-applet --indicator
|
||||
|
||||
exec 'sleep 3; swaymsg workspace 1:edit'
|
||||
exec gpg-cache
|
||||
exec swaymsg workspace 1:edit
|
||||
|
||||
#+end_src
|
||||
*** general
|
||||
|
@ -1886,11 +1886,13 @@ Load a host specific kanshi file if it exists
|
|||
#!/usr/bin/bash
|
||||
#Maintained in linux-init-files.org
|
||||
config="$HOME/.config/kanshi/config-$(hostname)"
|
||||
if [ ! -f "$config" ]; then
|
||||
config="$HOME/.config/kanshi/config"
|
||||
if [ -f "$config" ]; then
|
||||
logger -t "kanshi" "$config"
|
||||
exec kanshi -c "$config"
|
||||
else
|
||||
logger -t "kanshi" "default config"
|
||||
exec kanshi
|
||||
fi
|
||||
logger -t "kanshi" "$config"
|
||||
kanshi -c "$config"
|
||||
#+end_src
|
||||
**** config-thinkpadt14s
|
||||
#+begin_src conf :tangle "dot-config/kanshi/config-thinkpadt14s"
|
||||
|
@ -2808,7 +2810,7 @@ Load a host specific kanshi file if it exists
|
|||
WID=`xdotool search --name "^${title}$" | head -1`
|
||||
if [ -z "$WID" ]; then
|
||||
# terminator -T "${title}" -p "${profile}" ${tflags} -e "tmux new-session -A -s ${sessionname} ${script}"
|
||||
alacritty -t "${title}" --command bash -c "tmux new-session -A -s ${sessionname} ${script}"
|
||||
alacritty -t "${title}" --class "${title}" --command bash -c "tmux new-session -A -s ${sessionname} ${script}"
|
||||
else
|
||||
if ! tmux has-session -t "${sessionname}"; then
|
||||
tmux attach -t "${sessionname}"
|
||||
|
|
Loading…
Reference in a new issue