refactor
This commit is contained in:
parent
cfb136da9c
commit
f63ba69d99
@ -1,7 +1,7 @@
|
|||||||
readonly TARGETS="\
|
readonly TARGETS="\
|
||||||
colors:.config/terminal-colors.d
|
colors:.config/terminal-colors.d
|
||||||
less:.lesskey .infokey
|
less:.lesskey .infokey
|
||||||
tmux:.config/tmux .tmux .config/systemd/user/tmux.service .local/bin/tmux_start_session.sh .local/bin/tmux_list_sessions.sh .local/bin/tmux_attach_session.sh .local/bin/tmux_kill_sessions.sh .local/bin/tmux_start_projects.sh %copypasta
|
tmux:.config/tmux .tmux .config/systemd/user/tmux.service %copypasta
|
||||||
t:
|
t:
|
||||||
note:
|
note:
|
||||||
psw:
|
psw:
|
||||||
@ -12,7 +12,7 @@ ssh:
|
|||||||
git:.config/git .local/bin/ga
|
git:.config/git .local/bin/ga
|
||||||
ranger:.config/ranger
|
ranger:.config/ranger
|
||||||
gpg:
|
gpg:
|
||||||
sway:.config/sway .config/i3blocks .config/mako .config/mimeapps.list .config/rofi .local/bin/screenshot .local/bin/i3blocks_helper .local/bin/layout_change_handler .config/swaylock .Xresources .local/bin/sway_swap_workspaces .local/bin/slm .local/bin/slm_rofi %copypasta %pomodoro
|
sway:.config/sway .config/i3blocks .config/mako .config/mimeapps.list .config/rofi .local/bin/screenshot .config/swaylock .Xresources .local/bin/slm .local/bin/slm_rofi %copypasta %pomodoro
|
||||||
pomodoro:
|
pomodoro:
|
||||||
bat:.config/bat
|
bat:.config/bat
|
||||||
font:
|
font:
|
||||||
|
|||||||
@ -6,59 +6,59 @@ color=#FFFFFF
|
|||||||
interval=5
|
interval=5
|
||||||
|
|
||||||
[wireless]
|
[wireless]
|
||||||
command=i3blocks_helper wireless
|
command=~/.config/i3blocks/scripts/builder.sh wireless
|
||||||
interval=10
|
interval=10
|
||||||
|
|
||||||
[ethernet]
|
[ethernet]
|
||||||
command=i3blocks_helper ethernet
|
command=~/.config/i3blocks/scripts/builder.sh ethernet
|
||||||
interval=10
|
interval=10
|
||||||
|
|
||||||
[diskroot]
|
[diskroot]
|
||||||
command=i3blocks_helper disk_root
|
command=~/.config/i3blocks/scripts/builder.sh disk_root
|
||||||
interval=30
|
interval=30
|
||||||
|
|
||||||
[diskhome]
|
[diskhome]
|
||||||
command=i3blocks_helper disk_home
|
command=~/.config/i3blocks/scripts/builder.sh disk_home
|
||||||
interval=30
|
interval=30
|
||||||
|
|
||||||
[memory]
|
[memory]
|
||||||
command=i3blocks_helper memory
|
command=~/.config/i3blocks/scripts/builder.sh memory
|
||||||
interval=5
|
interval=5
|
||||||
|
|
||||||
[cpu_usage]
|
[cpu_usage]
|
||||||
command=i3blocks_helper cpu_usage
|
command=~/.config/i3blocks/scripts/builder.sh cpu_usage
|
||||||
interval=5
|
interval=5
|
||||||
|
|
||||||
[cpu_temp]
|
[cpu_temp]
|
||||||
command=i3blocks_helper cpu_temp
|
command=~/.config/i3blocks/scripts/builder.sh cpu_temp
|
||||||
interval=5
|
interval=5
|
||||||
|
|
||||||
[bluetooth]
|
[bluetooth]
|
||||||
command=i3blocks_helper bluetooth_battery
|
command=~/.config/i3blocks/scripts/builder.sh bluetooth_battery
|
||||||
interval=5
|
interval=5
|
||||||
|
|
||||||
[battery]
|
[battery]
|
||||||
command=i3blocks_helper battery
|
command=~/.config/i3blocks/scripts/builder.sh battery
|
||||||
interval=30
|
interval=30
|
||||||
|
|
||||||
[volume]
|
[volume]
|
||||||
command=i3blocks_helper volume
|
command=~/.config/i3blocks/scripts/builder.sh volume
|
||||||
interval=1
|
interval=1
|
||||||
signal=1
|
signal=1
|
||||||
|
|
||||||
[pomodoro]
|
[pomodoro]
|
||||||
command=i3blocks_helper pomodoro
|
command=~/.config/i3blocks/scripts/builder.sh pomodoro
|
||||||
interval=1
|
interval=1
|
||||||
signal=2
|
signal=2
|
||||||
|
|
||||||
[language]
|
[language]
|
||||||
command=i3blocks_helper language
|
command=~/.config/i3blocks/scripts/builder.sh language
|
||||||
signal=1
|
signal=1
|
||||||
|
|
||||||
[userhost]
|
[userhost]
|
||||||
command=i3blocks_helper userhost
|
command=~/.config/i3blocks/scripts/builder.sh userhost
|
||||||
signal=1
|
signal=1
|
||||||
|
|
||||||
[time]
|
[time]
|
||||||
command=i3blocks_helper time
|
command=~/.config/i3blocks/scripts/builder.sh time
|
||||||
interval=30
|
interval=30
|
||||||
|
|||||||
@ -14,4 +14,4 @@ bar {
|
|||||||
modifier $mod
|
modifier $mod
|
||||||
}
|
}
|
||||||
|
|
||||||
exec --no-startup-id layout_change_handler
|
exec ~/.config/i3blocks/scripts/layout_change_handler.sh
|
||||||
|
|||||||
@ -30,7 +30,7 @@ bindsym --release XF86Go exec --no-startup-id pactl set-source-mute @DEFAULT_SOU
|
|||||||
|
|
||||||
bindsym $mod+XF86AudioMicMute exec --no-startup-id pactl list short sources | awk '/input.*RUNNING/ {system("pactl set-source-mute " $1 " toggle")}' ## Find and mute mics
|
bindsym $mod+XF86AudioMicMute exec --no-startup-id pactl list short sources | awk '/input.*RUNNING/ {system("pactl set-source-mute " $1 " toggle")}' ## Find and mute mics
|
||||||
|
|
||||||
bindsym --to-code $mod+s exec sway_swap_workspaces
|
bindsym --to-code $mod+s exec ~/.config/sway/scripts/swap_workspaces.sh
|
||||||
|
|
||||||
bindsym --to-code $mod+Shift+q kill
|
bindsym --to-code $mod+Shift+q kill
|
||||||
bindsym --to-code $mod+Shift+r reload
|
bindsym --to-code $mod+Shift+r reload
|
||||||
|
|||||||
@ -214,7 +214,7 @@ bind-key f copy-mode \; send-keys -X search-backward \
|
|||||||
|
|
||||||
|
|
||||||
# Session managment
|
# Session managment
|
||||||
bind a display-popup -EE -w 80% -h 80% -B '~/.local/bin/tmux_attach_session.sh'
|
bind a display-popup -EE -w 80% -h 80% -B '~/.config/tmux/scripts/tmux_attach_session.sh'
|
||||||
bind s display-popup -EE -w 80% -h 80% -B '~/.local/bin/tmux_start_session.sh'
|
bind s display-popup -EE -w 80% -h 80% -B '~/.config/tmux/scripts/tmux_start_session.sh'
|
||||||
bind S display-popup -EE -w 40% -h 80% -B '~/.local/bin/tmux_start_projects.sh'
|
bind S display-popup -EE -w 40% -h 80% -B '~/.config/tmux/scripts/tmux_start_projects.sh'
|
||||||
bind k display-popup -EE -w 80% -h 80% -B '~/.local/bin/tmux_kill_sessions.sh'
|
bind k display-popup -EE -w 80% -h 80% -B '~/.config/tmux/scripts/tmux_kill_sessions.sh'
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
|
||||||
readonly tmux_list_sessions_script="${HOME}/.local/bin/tmux_list_sessions.sh"
|
readonly tmux_list_sessions_script="${HOME}/.config/tmux/scripts/tmux_list_sessions.sh"
|
||||||
|
|
||||||
export FZF_DEFAULT_OPTS="\
|
export FZF_DEFAULT_OPTS="\
|
||||||
${FZF_DEFAULT_OPTS}
|
${FZF_DEFAULT_OPTS}
|
||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
|
||||||
readonly tmux_list_sessions_script="${HOME}/.local/bin/tmux_list_sessions.sh"
|
readonly tmux_list_sessions_script="${HOME}/.config/tmux/scripts/tmux_list_sessions.sh"
|
||||||
|
|
||||||
export FZF_DEFAULT_OPTS="\
|
export FZF_DEFAULT_OPTS="\
|
||||||
${FZF_DEFAULT_OPTS}
|
${FZF_DEFAULT_OPTS}
|
||||||
@ -16,7 +16,7 @@ ${FZF_DEFAULT_OPTS}
|
|||||||
ctrl-x:execute\(tmux\ kill-session\ -t\ {1}\)+reload\(${tmux_list_sessions_script}\)\
|
ctrl-x:execute\(tmux\ kill-session\ -t\ {1}\)+reload\(${tmux_list_sessions_script}\)\
|
||||||
"
|
"
|
||||||
|
|
||||||
sessions_to_kill="$(~/.local/bin/tmux_list_sessions.sh | fzf | awk '{printf $1"\n"}')"
|
sessions_to_kill="$(~/.config/tmux/scripts/tmux_list_sessions.sh | fzf | awk '{printf $1"\n"}')"
|
||||||
readonly sessions_to_kill
|
readonly sessions_to_kill
|
||||||
|
|
||||||
if [ -n "${sessions_to_kill}" ]; then
|
if [ -n "${sessions_to_kill}" ]; then
|
||||||
@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
|
|
||||||
eval "$(echo "i3-msg exit
|
|
||||||
reboot
|
|
||||||
shutdown -h now
|
|
||||||
systemctl suspend
|
|
||||||
i3lock -enf -c 1e1e1e
|
|
||||||
convert canvas:none PNG:- | feh -YF -" | rofi -dmenu -m -1 -i -p "Power")"
|
|
||||||
Loading…
x
Reference in New Issue
Block a user