1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Compare commits

...

5 Commits

Author SHA1 Message Date
3146286804
zsh: replace rupa/z with agkozak/zsh-z
zsh-z is a zsh-native plugin which can be installed with antigen. It is
a drop-in replacement and does the same thing, but with less management
overhead.

Set _Z_DATA to be in $XDG_DATA_HOME to un-clutter ~ a little more

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 21:27:13 +01:00
5e0354953d
i3: generate secure passwords, strip newline
Add -s flag to pwgen to generate cryptographically secure passwords and
strip the newline when adding the value to the clipboard to prevent
accidental submit actions when pasting.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 20:53:12 +01:00
ae8f7dff62
i3: run pwgen without systemd-run
systemd-run doesn't play nicely with xclip

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 20:50:16 +01:00
baf0d2acdc
polybar: use 'polybar-msg cmd restart' to reload
This is technically more of a restart than a reload, but it's the
closest thing without actually restarting the main pid.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 20:33:32 +01:00
c1ff08b878
i3: reload on 'systemctl reload i3'
Instead of restart. Reload is called reload for a reason

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 20:32:42 +01:00
4 changed files with 6 additions and 3 deletions

View File

@ -149,7 +149,7 @@ bindsym --release $mod+Print exec imgur-screenshot
bindsym $mod+Shift+x exec systemd-run-i3 -n i3-sensible-terminal --class floating-term --hold -e /bin/echo "$(xprop -id $(xdotool getactivewindow))"
bindsym $mod+$alt+space exec systemd-run-i3 -n ~/.config/i3/cycleaudio.py && pkill -RTMIN+10 i3blocks
bindsym $mod+numbersign exec systemd-run-i3 -n i3-sensible-terminal --hold -e sh -c 'xclip -o | gpg --decrypt 2>&1'
bindsym $mod+r exec systemd-run-i3 -n bash -c 'pwgen -nc 32 1 | tee >(xargs notify-send Generated\ password\:) | xclip -i'
bindsym $mod+r exec bash -c 'pwgen -snc 32 1 | tee >(xargs notify-send Generated\ password\:) | xclip -i -r'
bindsym $mod+g exec systemd-run-i3 -n notify-send -c transfer "$(gist -PRpc)"
bindsym --release $mod+i exec systemd-run-i3 -n sh -c 'sleep 0.5 && xdotool type --delay 400 "$(xclip -o -selection clipboard)"'

View File

@ -6,7 +6,7 @@ After=profile.service xprofile.service xorg.target
[Service]
ExecStart=/usr/bin/i3
ExecReload=/bin/sh -c 'i3-msg restart; systemctl is-active --user -q picom && systemctl --user restart picom'
ExecReload=/usr/bin/i3-msg reload
Restart=always
[Install]

View File

@ -6,6 +6,7 @@ After=graphical-session.target pulseaudio.socket i3.service
[Service]
Type=simple
ExecStart=/usr/bin/polybar --reload --log=warning %i
ExecReload=/usr/bin/polybar-msg cmd restart -p $MAINPID
Restart=always
[Install]

View File

@ -23,6 +23,8 @@ export MANPAGER="less -+N"
export SYSTEMD_PAGER="less $LESS"
# Disable histfile
export LESSHISTFILE=-
# Use .local/share for z instead of ~/.z
export _Z_DATA="$XDG_DATA_HOME/z"
if exists tput; then
export LESS_TERMCAP_mb=$(tput bold; tput setaf 2) # green
@ -72,6 +74,7 @@ antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-syntax-highlighting@feature/redrawhook
antigen bundle mafredri/zsh-async
antigen bundle agkozak/zsh-z
antigen apply
@ -163,7 +166,6 @@ source "$ZSH_DIR/plugins/fish-theme.zsh"
source "$ZSH_DIR/plugins/git-rprompt.zsh"
[ -f '/usr/share/fzf/key-bindings.zsh' ] && source /usr/share/fzf/key-bindings.zsh
[ -f '/usr/share/doc/pkgfile/command-not-found.zsh' ] && source /usr/share/doc/pkgfile/command-not-found.zsh
[ -r '/usr/share/z/z.sh' ] && source /usr/share/z/z.sh
# Completion initialisation
autoload -U compinit bashcompinit