1
0
Fork 0

dmenu -> rofi, i3_status will be local until I can make it use a config and vimperator is back

This commit is contained in:
Von Random 2016-10-18 18:36:46 +03:00
parent 1d5f714c34
commit a81530c0c5
5 changed files with 17 additions and 45 deletions

1
bashrc
View file

@ -95,7 +95,6 @@ alias less='command less -R'
alias cower='command cower -c' alias cower='command cower -c'
alias pacman='command pacman --color=auto' alias pacman='command pacman --color=auto'
alias rscreen='command screen -Dr' alias rscreen='command screen -Dr'
alias rdesktop='command rdesktop -g1580x860'
alias rgrep='command grep --exclude-dir=\.git -R' alias rgrep='command grep --exclude-dir=\.git -R'
alias hist='fc -l 1' alias hist='fc -l 1'
alias beep='printf "\007"' alias beep='printf "\007"'

View file

@ -33,7 +33,10 @@ bindsym $mod+x exec urxvt
bindsym $mod+Shift+c kill bindsym $mod+Shift+c kill
# start dmenu (a program launcher) # start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run -fn Terminus #bindsym $mod+d exec dmenu_run -fn Terminus
bindsym $mod+d exec rofi -show run
bindsym $mod+i exec rofi -show window
bindsym $mod+p exec rofi -show ssh
# There also is the (new) i3-dmenu-desktop which only displays applications # There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that # shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed. # installed.
@ -157,9 +160,7 @@ bindsym $mod+r mode "resize"
# finds out, if available) # finds out, if available)
bar { bar {
position top position top
status_command /home/von/vdotfiles/i3_status status_command /home/von/.local/bin/i3_status
# doesn't work, probably some bug
#tray_output primary
} }
new_window pixel 1 new_window pixel 1
@ -202,7 +203,6 @@ for_window [class="Pavucontrol"] floating enable
for_window [class="pinentry"] floating enable for_window [class="pinentry"] floating enable
for_window [class="plugin-container"] floating enable for_window [class="plugin-container"] floating enable
for_window [class="Qmmp"] floating enable for_window [class="Qmmp"] floating enable
for_window [class="Skype"] floating enable
for_window [class="Vncviewer"] floating enable for_window [class="Vncviewer"] floating enable
for_window [class="(?i)firefox" instance="^(?!Navigator$)"] floating enable for_window [class="(?i)firefox" instance="^(?!Navigator$)"] floating enable
for_window [instance="sun-awt-X11-XFramePeer"] floating enable for_window [instance="sun-awt-X11-XFramePeer"] floating enable

View file

@ -1,39 +0,0 @@
#!/usr/bin/python3 -u
import time
import psutil
def status_print(status_msg):
prefix = '['
postfix = ']'
result = list()
for element in status_msg:
result.append('{"full_text":"' + element + '"}')
print(prefix + ','.join(result) + postfix)
print('{"version":1}\n[')
while True:
values = list()
current_time = time.strftime('%H:%M')
current_day = time.strftime('%a %d')
mem = psutil.virtual_memory()
memory = 'RAM: {}% ({}G)'.format(round(100.0 - mem.percent, 2),
round(mem.available / 2**30, 2))
with open('/sys/class/power_supply/BAT0/capacity', 'r') as capacity, \
open('/sys/class/power_supply/BAT0/status', 'r') as status:
batt_status = status.read().strip()
batt_capacity = capacity.read().strip()
if batt_status != 'Discharging':
batt_status = '↑'
else:
batt_status = '↓'
batt = 'BAT: ' + batt_capacity + '% ' + batt_status
# populate the bar
values.append(batt)
values.append(memory)
values.append(current_day)
values.append(current_time)
# print da shit
status_print(values)
time.sleep(5)
print(',', end='')

4
vimperatorrc Normal file
View file

@ -0,0 +1,4 @@
" vim: set ft=vimperator:
set hintchars="qwertyuiop[]asdfghjkl;'zxcvbnm,./"
set toolbars=addons,nobookmarks,nomenu,nonavigation,tabs

View file

@ -76,3 +76,11 @@ URxvt.color13: base0E
URxvt.color14: base05 URxvt.color14: base05
URxvt.color15: base07 URxvt.color15: base07
! }}} ! }}}
! {{{ rofi
rofi.modi: window,run,ssh
rofi.font: Terminus Bold 12
rofi.terminal: /home/von/.local/bin/default-terminal-emulator
rofi.separator-style: solid
rofi.hide-scrollbar: true
rofi.ssh-client: /home/von/.local/bin/ssh-rofi
! }}}