diff --git a/bin/i3-utils b/bin/i3-utils index 143a03a..eaf8a3f 100755 --- a/bin/i3-utils +++ b/bin/i3-utils @@ -40,4 +40,17 @@ case $1 in esac scwrypts i3/launch-or-show -- $PROGRAM ${ARGS[@]} ;; + + screenshot ) + command -v deepin-screen-recorder || notify-send "I3 UTILS" "no screenshot application available" + deepin-screen-recorder + DEEPIN_CONFIG="$HOME/.config/deepin/deepin-screen-recorder/deepin-screen-recorder.conf" + + : \ + && echo "fixing stupid settings" \ + && mv $DEEPIN_CONFIG $DEEPIN_CONFIG.bak \ + && sed '/specifiedSavepath=.*home.*Pictures/d' $DEEPIN_CONFIG.bak > $DEEPIN_CONFIG \ + || mv $DEEPIN_CONFIG.bak $DEEPIN_CONFIG.conf \ + ; + ;; esac diff --git a/config/i3.conf b/config/i3.conf index 5ee3aef..07aa5f2 100644 --- a/config/i3.conf +++ b/config/i3.conf @@ -22,7 +22,6 @@ bindsym XF86AudioRaiseVolume exec --no-startup-id $UTILS volumeup bindsym XF86AudioLowerVolume exec --no-startup-id $UTILS volumedown bindsym XF86AudioMute exec --no-startup-id $UTILS volumemute bindsym XF86AudioMicMute exec --no-startup-id $UTILS micmute -bindsym $mod+backslash exec --no-startup-id $UTILS micmute # Screen brightness bindsym XF86MonBrightnessUp exec --no-startup-id $UTILS backlightup @@ -49,6 +48,7 @@ bindsym $mod+Shift+minus exec --no-startup-id $UTILS lock bindsym $mod+space exec --no-startup-id dmenu_run -c -l 5 -fn 'DejaVuSansMono Nerd Font-25' +bindsym $mod+backslash exec --no-startup-id $UTILS screenshot ################################################################################ ## Window Management and Navigation ############################################ @@ -147,6 +147,9 @@ for_window [class="^.*"] border pixel 4 gaps inner 0 gaps outer 0 +# prevent borders on xfce4-notifyd +for_window [class="[xX]fce4-notifyd"] border pixel 0 + bindsym $mod+z gaps outer current plus 2; gaps inner current plus 2; bindsym $mod+shift+z gaps outer current minus 2; gaps inner current minus 2; diff --git a/config/xinitrc.i3 b/config/xinitrc.i3 index 4de7118..4166502 100644 --- a/config/xinitrc.i3 +++ b/config/xinitrc.i3 @@ -3,6 +3,13 @@ source "$HOME/.config/wryn/env.zsh" source "$DOTWRYN/config/xinitrc.common" command -v dex && dex -a + +[ -f /usr/lib/xfce-polkit/xfce-polkit ] \ + && exec /usr/lib/xfce-polkit/xfce-polkit & + +[ -f /usr/lib/xfce4/notifyd/xfce4-notifyd ] \ + && exec /usr/lib/xfce4/notifyd/xfce4-notifyd & + $DOTWRYN/bin/xorg-activate-default & cd diff --git a/zsh/completion b/zsh/completion new file mode 100644 index 0000000..9ed8d22 --- /dev/null +++ b/zsh/completion @@ -0,0 +1,15 @@ +#!/bin/zsh +##################################################################### + +command -v op >/dev/null 2>&1 && { + eval "$(op completion zsh)" + compdef _op op + export OP_FORMAT=json +} + +command -v flux >/dev/null 2>&1 && { + . <(flux completion zsh) +} + +##################################################################### +true