~ersen/dotfiles

1e1305c6f8ded16f3787fc68721c0dda51626d72 — Oğuz Ersen 30 days ago edf81fa
small edits for scripts and sway configs
5 files changed, 10 insertions(+), 10 deletions(-)

M .config/ranger/rifle.conf
M .config/sway/config
M .config/swaylock/config
M .local/bin/comb-pdf.sh
M install.sh
M .config/ranger/rifle.conf => .config/ranger/rifle.conf +2 -2
@@ 36,8 36,8 @@ ext xcf, X, flag f = gimp -- "$@"
ext 7z, has 7z = 7z -p l "$@" | "$PAGER"
ext ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = atool -el -- "$@" | "$PAGER"
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool -el -- "$@" | "$PAGER"
ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = atool -el -- "$@"
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool -el -- "$@"
ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = atool -ex -- "$@"
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool -ex -- "$@"

ext tar|gz|bz2|xz, has tar = tar vvtf "$1" | "$PAGER"
ext tar|gz|bz2|xz, has tar = for file in "$@"; do tar vvxf "$file"; done

M .config/sway/config => .config/sway/config +3 -1
@@ 31,12 31,14 @@ for_window [app_id="^blueman"] floating enable
for_window [app_id="^firefox$" title="^About Mozilla Firefox|Library$"] floating enable
for_window [app_id="^galculator$"] floating enable
for_window [app_id="^imv$"] floating enable
for_window [app_id="^libreoffice"] floating enable
for_window [app_id="^mpv$"] floating enable
for_window [app_id="^nm-connection-editor$"] floating enable
for_window [app_id="^org\.pwmt\.zathura$"] floating enable
for_window [app_id="^pavucontrol$"] floating enable
for_window [app_id="^pcmanfm$"] floating enable
for_window [app_id="^simple-scan$"] floating enable
for_window [app_id="^system-config-printer$"] floating enable
for_window [app_id="^udiskie$"] floating enable
for_window [app_id="^wdisplays$"] floating enable
for_window [class="^Gvim$"] floating enable


@@ 197,7 199,7 @@ exec lxpolkit
exec nm-applet --indicator
exec wlsunset -T4800 -t3600 -l39.9 -L32.8
exec swayidle -w \
        timeout 360 "swaymsg 'output * dpms off'" \
        timeout 60 "swaymsg 'output * dpms off'" \
        resume "swaymsg 'output * dpms on'" \
        timeout 600 swaylock \
        before-sleep swaylock

M .config/swaylock/config => .config/swaylock/config +1 -1
@@ 1,5 1,5 @@
daemonize
ignore-empty-password
image=~/Pictures/lockscreen
image=~/Pictures/wallpaper
indicator-radius=64
indicator-thickness=16

M .local/bin/comb-pdf.sh => .local/bin/comb-pdf.sh +3 -2
@@ 2,7 2,8 @@

out_file="$(mktemp -u --suffix=".pdf")" || exit

gs -q -dBATCH -dNOPAUSE -dPDFSETTINGS="/prepress" -sDEVICE="pdfwrite" \
   -sOUTPUTFILE="$out_file" "$@" || { x="$?"; rm -f "$out_file"; exit "$x"; }
gs -q -dBATCH -dNOPAUSE -dPDFSETTINGS="/prepress" \
   -sDEVICE="pdfwrite" -sOUTPUTFILE="$out_file" "$@" \
   || { x="$?"; rm -f "$out_file"; exit "$x"; }

printf "%s\n" "$out_file"

M install.sh => install.sh +1 -4
@@ 166,8 166,5 @@ pretty_print "upgrade all packages"
sudo dnf upgrade
sudo dnf autoremove

pretty_print "enable services"
sudo systemctl enable --now dnscrypt-proxy.service

pretty_print "disable services"
sudo systemctl disable --now ModemManager.service
sudo systemctl disable --now ModemManager.service sshd.service