Page 4 of 4

Re: wmutils / sxhkd

Posted: Sun Oct 18, 2015 2:35 am
by dkeg
.sxhkdrc updates ...

Toggle b/t two compton configs (more or less transparency)

Code: Select all

alt + {_,shift + }c
  ~/bin/comp {more,less}
Z3bra recreated the fullscreen script to include max vert and max horizontal (like cwm and 2bwm). The script also includes fullscreen. I modified the script to include a maximize along with the defacto fullscreen (like cwm!)

Added keybindings for those in my .sxhkdrc.

Code: Select all

# max or full screen
alt + {_,shift + }f
   max -{m,f} $(pfw) 

Code: Select all

# max horiz and vert
alt + {_,shift +}m
  max -{v,h} $(pfw)

Re: wmutils / sxhkd

Posted: Mon Oct 19, 2015 4:27 pm
by franksinistra
^ cool

i made a small snap-to-half-screen like script for wmutils a while ago, think i might share it

Code: Select all

#!/bin/sh

R=$(lsw -r)
W=$(wattr w $R)
H=$(wattr h $R)
B=$(wattr b $(pfw))
WIDTH=$((W / 2))
HEIGHT=$((H / 2))
GAP=${GAP:-20}

usage() {
    echo "usage: $(basename $0) <left|right|up|down>" >&2
    exit 1
}

case $1 in
  left) wtp $GAP $GAP $((WIDTH - GAP - 2*B)) $((H - 2*GAP)) $(pfw) ;;
  right) wtp $((WIDTH + GAP)) $GAP $((WIDTH - 2*GAP - 2*B)) $((H - 2*GAP)) $(pfw) ;;
  up) wtp $GAP $GAP $((W - 2*GAP - 2*B)) $((HEIGHT - GAP - 2*B)) $(pfw) ;;
  down) wtp $GAP $((HEIGHT + GAP)) $((W - 2*GAP - 2*B)) $((HEIGHT - 2*GAP - 2*B)) $(pfw) ;;
  *) usage ;;
esac

Re: wmutils / sxhkd

Posted: Mon Oct 19, 2015 5:43 pm
by ChefIronBelly
^^ nice dkeg I don't use compton but I'm sure I will make use in one way or another.

^ cool beans

Edit: Updated to RESPECT my PANEL ;) http://git.io/vWvAv