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

master
Von Random 6 years ago
parent 1d5f714c34
commit a81530c0c5
  1. 1
      bashrc
  2. 10
      i3_config
  3. 39
      i3_status
  4. 4
      vimperatorrc
  5. 8
      xresources

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

@ -33,7 +33,10 @@ bindsym $mod+x exec urxvt
bindsym $mod+Shift+c kill
# 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
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
@ -157,9 +160,7 @@ bindsym $mod+r mode "resize"
# finds out, if available)
bar {
position top
status_command /home/von/vdotfiles/i3_status
# doesn't work, probably some bug
#tray_output primary
status_command /home/von/.local/bin/i3_status
}
new_window pixel 1
@ -202,7 +203,6 @@ for_window [class="Pavucontrol"] floating enable
for_window [class="pinentry"] floating enable
for_window [class="plugin-container"] floating enable
for_window [class="Qmmp"] floating enable
for_window [class="Skype"] floating enable
for_window [class="Vncviewer"] floating enable
for_window [class="(?i)firefox" instance="^(?!Navigator$)"] floating enable
for_window [instance="sun-awt-X11-XFramePeer"] floating enable

@ -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='')

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

@ -76,3 +76,11 @@ URxvt.color13: base0E
URxvt.color14: base05
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
! }}}

Loading…
Cancel
Save