Compare commits
5 Commits
2584c3f3f8
...
65d15ee745
Author | SHA1 | Date |
---|---|---|
John Mertz | 65d15ee745 | |
John Mertz | 87f03742a7 | |
John Mertz | e860398236 | |
John Mertz | 4adeabb4f3 | |
John Mertz | 2969c076ec |
|
@ -21,7 +21,7 @@ Run `${HOME}/scripts/update_configs.pl` to refresh links and dump templates.
|
||||||
|
|
||||||
This file contains a JSON hash of the configuration files available with either a path to be linked, or the name of a dumper contained within [`${HOME}/scripts/dotfiles`](https://git.john.me.tz/jpm/scripts).
|
This file contains a JSON hash of the configuration files available with either a path to be linked, or the name of a dumper contained within [`${HOME}/scripts/dotfiles`](https://git.john.me.tz/jpm/scripts).
|
||||||
|
|
||||||
### `${HOME}/.spool/dotfiles.json`
|
### `${HOME}/.local/state/dotfiles.json`
|
||||||
|
|
||||||
This file contains a JSON hash of timestamps at which each configuration was last linked or dumped. The `${HOME}/scripts/update_configs.pl` script will use these times to know whether or not they need to be updated. It will do so if:
|
This file contains a JSON hash of timestamps at which each configuration was last linked or dumped. The `${HOME}/scripts/update_configs.pl` script will use these times to know whether or not they need to be updated. It will do so if:
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ export GDK_BACKEND="wayland"
|
||||||
export DCONF=".config/dconf/user"
|
export DCONF=".config/dconf/user"
|
||||||
|
|
||||||
# Suggest session start command if last session is not known
|
# Suggest session start command if last session is not known
|
||||||
if [ ! -e "${HOME}/.spool/last_login_gui" ]; then
|
if [ ! -e "${HOME}/.local/state/last_login_gui" ]; then
|
||||||
echo "Use 'startsway' or 'starti3' to launch a GUI"
|
echo "Use 'startsway' or 'starti3' to launch a GUI"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
# vim: ft=sh
|
# vim: ft=sh
|
||||||
|
|
||||||
## Configure static SSH Agent
|
## Configure static SSH Agent
|
||||||
export SSH_AUTH_SOCK="$HOME/.spool/ssh-agent.sock"
|
export SSH_AUTH_SOCK="$HOME/.local/state/ssh-agent.sock"
|
||||||
if [ -e "$SSH_AUTH_SOCK" ]; then
|
if [ -e "$SSH_AUTH_SOCK" ]; then
|
||||||
rm "$SSH_AUTH_SOCK"
|
rm "$SSH_AUTH_SOCK"
|
||||||
fi
|
fi
|
||||||
if [ -e "$HOME/.spool/ssh-agent.env" ]; then
|
if [ -e "$HOME/.local/state/ssh-agent.env" ]; then
|
||||||
rm "$HOME/.spool/ssh-agent.env"
|
rm "$HOME/.local/state/ssh-agent.env"
|
||||||
fi
|
fi
|
||||||
if [[ "$(pgrep ssh-agent)" ]]; then
|
if [[ "$(pgrep ssh-agent)" ]]; then
|
||||||
pkill ssh-agent
|
pkill ssh-agent
|
||||||
|
@ -14,5 +14,5 @@ fi
|
||||||
. ${HOME}/scripts/ssh-agent.sh
|
. ${HOME}/scripts/ssh-agent.sh
|
||||||
|
|
||||||
# Static/predictable Sway socket
|
# Static/predictable Sway socket
|
||||||
export SWAYSOCK="$HOME/.spool/sway-ipc.sock"
|
export SWAYSOCK="$HOME/.local/state/sway-ipc.sock"
|
||||||
#export SWAYSOCK="`sway --get-socketpath`"
|
#export SWAYSOCK="`sway --get-socketpath`"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
if [ ! "$SSH_TTY" ]; then
|
if [ ! "$SSH_TTY" ]; then
|
||||||
# Remove socket files
|
# Remove socket files
|
||||||
rm "$SSH_AUTH_SOCK"
|
rm "$SSH_AUTH_SOCK"
|
||||||
rm "$HOME/.spool/ssh-agent.env"
|
rm "$HOME/.local/state/ssh-agent.env"
|
||||||
rm "$SWAYSOCK"
|
rm "$SWAYSOCK"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,8 @@ fi
|
||||||
# Still, it does not hurt for later distrohopping
|
# Still, it does not hurt for later distrohopping
|
||||||
if [ "$(tty)" == '/dev/tty1' ] && [ ! "$SSH_TTY" ]; then
|
if [ "$(tty)" == '/dev/tty1' ] && [ ! "$SSH_TTY" ]; then
|
||||||
source "${HOME}/.dotfiles/bash/bash_login"
|
source "${HOME}/.dotfiles/bash/bash_login"
|
||||||
LAST_GUI=$(cat "${HOME}/.spool/last_login_gui" 2>/dev/null)
|
LAST_GUI=$(cat "${HOME}/.local/state/last_login_gui" 2>/dev/null)
|
||||||
if [ -f "${HOME}/.spool/last_login_gui" ]; then
|
if [ -f "${HOME}/.local/state/last_login_gui" ]; then
|
||||||
${HOME}/scripts/${LAST_GUI}/start${LAST_GUI}.sh
|
${HOME}/scripts/${LAST_GUI}/start${LAST_GUI}.sh
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Static SSH agent
|
# Static SSH agent
|
||||||
export SSH_AUTH_SOCK="$HOME/.spool/ssh-agent.sock"
|
export SSH_AUTH_SOCK="$HOME/.local/state/ssh-agent.sock"
|
||||||
|
|
||||||
# GUI themes
|
# GUI themes
|
||||||
export GTK_THEME="Gruvbox"
|
export GTK_THEME="Gruvbox"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# don't put duplicate lines or lines starting with space in the history.
|
# don't put duplicate lines or lines starting with space in the history.
|
||||||
shopt -s histappend
|
shopt -s histappend
|
||||||
HISTCONTROL=ignoreboth
|
HISTCONTROL=ignoreboth
|
||||||
HISTFILE=${HOME}/.spool/bash_history
|
HISTFILE=${HOME}/.local/state/bash_history
|
||||||
|
|
||||||
# append to the history file, don't overwrite it
|
# append to the history file, don't overwrite it
|
||||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||||
|
|
|
@ -22,7 +22,7 @@ exec ${HOME}/scripts/ssh-agent.sh &
|
||||||
|
|
||||||
# Automatically restore last used output configuration
|
# Automatically restore last used output configuration
|
||||||
# TODO: Need to add fail-safe to script in case the outputs are unavailable
|
# TODO: Need to add fail-safe to script in case the outputs are unavailable
|
||||||
exec ${HOME}/scripts/sway/displays.pl $(cat ${HOME}/.spool/last_display) &
|
exec ${HOME}/scripts/sway/displays.pl $(cat ${HOME}/.local/state/last_display) &
|
||||||
|
|
||||||
# Enable automatic color temperature change
|
# Enable automatic color temperature change
|
||||||
exec ${HOME}/scripts/distrobox/debian/gammastep.pl &
|
exec ${HOME}/scripts/distrobox/debian/gammastep.pl &
|
||||||
|
@ -58,7 +58,6 @@ exec pasystray &
|
||||||
|
|
||||||
# 1:chat
|
# 1:chat
|
||||||
# TODO: Figure out Zith; normal weechat is a placeholder
|
# TODO: Figure out Zith; normal weechat is a placeholder
|
||||||
exec xterm -e /bin/bash -c "ssh -i ~/.ssh/no_pass jpm@john.me.tz -t 'screen -x weechat'" &
|
|
||||||
exec flatpak run com.mattermost.Desktop --socket=wayland --ozone-platform=wayland --enable-reatures=UseOzonePlatform &
|
exec flatpak run com.mattermost.Desktop --socket=wayland --ozone-platform=wayland --enable-reatures=UseOzonePlatform &
|
||||||
exec flatpak run chat.rocket.RocketChat --socket=wayland --ozone-platform=wayland --enable-reatures=UseOzonePlatform &
|
exec flatpak run chat.rocket.RocketChat --socket=wayland --ozone-platform=wayland --enable-reatures=UseOzonePlatform &
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,7 @@ assign [app_id="argos"] 9
|
||||||
# Floating windows
|
# Floating windows
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
for_window [title=".*"] sticky disable
|
||||||
for_window [app_id="Alacritty-grave"] floating enable, resize set height 600px, resize set width 800px, move position 990px 400px
|
for_window [app_id="Alacritty-grave"] floating enable, resize set height 600px, resize set width 800px, move position 990px 400px
|
||||||
# Gnome software doesn't get correct dimensions
|
# Gnome software doesn't get correct dimensions
|
||||||
for_window [app_id="org.gnome.Software"] floating enable
|
for_window [app_id="org.gnome.Software"] floating enable
|
||||||
|
@ -50,9 +51,8 @@ for_window [title="SSH Passphrase"] floating enable
|
||||||
# Picture-in-picture firefox
|
# Picture-in-picture firefox
|
||||||
for_window [title="^Picture-in-Picture$"] floating enable
|
for_window [title="^Picture-in-Picture$"] floating enable
|
||||||
# Also make Picture-in-picture windows stick to active workspace
|
# Also make Picture-in-picture windows stick to active workspace
|
||||||
for_window [title="Picture-in-Picture"] sticky enable
|
for_window [title="^Picture-in-Picture$"] sticky enable
|
||||||
# Picture-in-Picture
|
# Picture-in-Picture
|
||||||
for_window [shell="xdg_shell"] sticky enable
|
|
||||||
for_window [instance="Download"] floating enable
|
for_window [instance="Download"] floating enable
|
||||||
for_window [window_role="plugin_ui"] floating enable
|
for_window [window_role="plugin_ui"] floating enable
|
||||||
for_window [title="Menu Update"] floating enable
|
for_window [title="Menu Update"] floating enable
|
||||||
|
|
|
@ -258,7 +258,7 @@ bindsym $mod+Shift+Backspace move container to workspace back_and_forth
|
||||||
### Function row
|
### Function row
|
||||||
|
|
||||||
# Escape: Lock
|
# Escape: Lock
|
||||||
bindsym $mod+Escape exec /usr/bin/kill -SIGUSR1 `cat ${HOME}/.spool/sway-transparency`
|
bindsym $mod+Escape exec /usr/bin/kill -SIGUSR1 `cat ${HOME}/.local/state/sway-transparency`
|
||||||
# Add Shift: Blank screen
|
# Add Shift: Blank screen
|
||||||
bindsym $mod+Shift+Escape exec /usr/bin/sh -c "sleep 1 ; /usr/bin/kill -SIGUSR1 $(pgrep swayidle)"
|
bindsym $mod+Shift+Escape exec /usr/bin/sh -c "sleep 1 ; /usr/bin/kill -SIGUSR1 $(pgrep swayidle)"
|
||||||
|
|
||||||
|
|
10
sway/config
10
sway/config
|
@ -10,7 +10,7 @@ include $HOME/.dotfiles/sway/devices
|
||||||
seat seat0 xcursor_theme FlatbedCursors-Blue
|
seat seat0 xcursor_theme FlatbedCursors-Blue
|
||||||
|
|
||||||
# Minimize borders from all windows
|
# Minimize borders from all windows
|
||||||
hide_edge_borders none
|
hide_edge_borders both
|
||||||
default_floating_border pixel 2
|
default_floating_border pixel 2
|
||||||
default_border pixel 2
|
default_border pixel 2
|
||||||
|
|
||||||
|
@ -36,15 +36,15 @@ include $HOME/.dotfiles/sway/colorscheme
|
||||||
# Assign colors to elements (TODO: actually name the colors for better readability)
|
# Assign colors to elements (TODO: actually name the colors for better readability)
|
||||||
client.background $blck
|
client.background $blck
|
||||||
# Property Name Border BG Text Hilight Child Border
|
# Property Name Border BG Text Hilight Child Border
|
||||||
client.focused $rblu $bblu $hlgt $bblu $bblu
|
client.focused $bgrn $rgrn $bkgd $bblu $bgrn
|
||||||
client.focused_inactive $bkgd $bkgd $rblu $dimm $bkgd
|
client.focused_inactive $rblu $bkgd $rblu $dimm $rblu
|
||||||
client.unfocused $bkgd $hlgt $rblu $bkgd $bkgd
|
client.unfocused $frgd $blck $frgd $bkgd $frgd
|
||||||
client.urgent $rred $frgd $hlgt $frgd $rred
|
client.urgent $rred $frgd $hlgt $frgd $rred
|
||||||
# Feature request (https://github.com/swaywm/sway/pull/7208) does not exist as of 1.7
|
# Feature request (https://github.com/swaywm/sway/pull/7208) does not exist as of 1.7
|
||||||
#client.sticky $rylw $rylw $rylw $rylw $rylw
|
#client.sticky $rylw $rylw $rylw $rylw $rylw
|
||||||
#client.sticky_inactive $rmgt $rmgt $rmgt $rmgt $rmgt
|
#client.sticky_inactive $rmgt $rmgt $rmgt $rmgt $rmgt
|
||||||
#client.sticky_unfocused $rcyn $rcyn $rcyn $rcyn $rcyn
|
#client.sticky_unfocused $rcyn $rcyn $rcyn $rcyn $rcyn
|
||||||
client.placeholder $hlgt $hlgt $rblu $hlgt $hlgt
|
client.placeholder $rylw $hlgt $rblu $hlgt $hlgt
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Bindings
|
# Bindings
|
||||||
|
|
|
@ -164,7 +164,7 @@
|
||||||
"custom/osk": {
|
"custom/osk": {
|
||||||
"interval": 1,
|
"interval": 1,
|
||||||
"on-click": "${HOME}/scripts/waybar/waybar-keyboard.sh",
|
"on-click": "${HOME}/scripts/waybar/waybar-keyboard.sh",
|
||||||
"exec": "if [ -e $HOME/.spool/onscreen-keyboard ]; then CLASS='activated'; else CLASS=''; fi; echo '⌨\nToggle onscreen keyboard\n'$CLASS",
|
"exec": "if [ -e $HOME/.local/state/onscreen-keyboard ]; then CLASS='activated'; else CLASS=''; fi; echo '⌨\nToggle onscreen keyboard\n'$CLASS",
|
||||||
},
|
},
|
||||||
"custom/pkg": {
|
"custom/pkg": {
|
||||||
"interval": 60,
|
"interval": 60,
|
||||||
|
@ -184,7 +184,7 @@
|
||||||
"activated": " ",
|
"activated": " ",
|
||||||
"deactivated": " "
|
"deactivated": " "
|
||||||
},
|
},
|
||||||
"on-click": "echo {status} > ${HOME}/.spool/idle_inhibitor"
|
"on-click": "echo {status} > ${HOME}/.local/state/idle_inhibitor"
|
||||||
},
|
},
|
||||||
"custom/sleep_modes": {
|
"custom/sleep_modes": {
|
||||||
"interval": 1,
|
"interval": 1,
|
||||||
|
|
Loading…
Reference in New Issue