Smaller i3gaps, +Shift+e exits i3, ranger instead of pcmanfm, changed lock

This commit is contained in:
Tuan-Dat Tran
2018-03-26 00:25:13 +02:00
parent 7fc1e7ff88
commit d22b842a7e
6 changed files with 68 additions and 22 deletions

View File

@@ -93,17 +93,28 @@ def lock_config():
lock_del = '--bshlcolor D13400FF'
# Color of seperator | Color: dark-blue
lock_sep_color = '--separatorcolor 0000D1FF'
indicator_outer_ring = "{} {} {} {} {} {}".format(lock_ring, lock_ring_w,
lock_ring_v, lock_press,
lock_del, lock_sep_color)
# Right Text
lock_right_text = '--veriftext="\.\.\."'
# Wrong Text
lock_wrong_text = '--wrongtext="Noope"'
# Ring Position
lock_texts = '{} {}'.format(lock_right_text, lock_wrong_text)
lock_pos = '--indpos={}:{}'.format(int(clock_x)+350, int(clock_y+90))
# Ring size
ring_size = 40
lock_radius = '--radius {}'.format(ring_size)
lock_stats = '{} {}'.format(lock_pos, lock_radius)
indicator_outer_ring = "{} {} {} {} {} {} {} {}".format(lock_ring, lock_ring_w,
lock_ring_v, lock_press,
lock_del, lock_sep_color,
lock_stats, lock_texts)
# done
indicator = "{} {}".format(indicator_inner, indicator_outer_ring)
# background
lock_pic = '-i /tmp/i3lock.png'
print('pixelate: {}'.format(time.time() - lock_time))
print('lock: {}'.format(time.time() - lock_time))
return "{} {} {} {} {}".format(lock_core, clock, datetime, indicator,
lock_pic)

View File

@@ -1,4 +1,3 @@
#!/bin/zsh
xrandr --output "eDP1" --mode "1920x1080"
setxkbmap us,de