mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-26 06:08:35 +01:00
hardlink .i3
This commit is contained in:
parent
d67ad81bc6
commit
30217c8611
@ -1,3 +0,0 @@
|
||||
# Install deps
|
||||
sudo pacman -S xorg-xbacklight i3lock imagemagick scrot feh
|
||||
yaourt cower
|
@ -143,9 +143,7 @@ for_window [class="Bitwig Studio"] move to workspace $tag10
|
||||
#for_window [class="Conky"] move scratchpad, scratchpad show
|
||||
|
||||
#mpd controls
|
||||
bindsym $mod+Control+Left exec mpc prev
|
||||
bindsym $mod+Control+Down exec mpc toggle
|
||||
bindsym $mod+Control+Right exec mpc next
|
||||
bindsym $mod+Control+Down exec ~/.i3/mpcmenu.sh
|
||||
bindsym $mod+Control+Up exec ~/scripts/bash/lyricsdownloader/graphicalrapgenius.sh
|
||||
#bindsym $mod+Control+Prior exec "cd ~/scripts/bash/interfaceliftdownloader/ ; ./interfacelift.sh -c ./wallpaper.conf ; ./interfacelift.sh -c ./wallpaper_DP1-1.conf ; ./interfacelift.sh -c ./wallpaper_HDMI1.conf ; ./interfacelift.sh -c ./wallpaper_HDMI2.conf"
|
||||
bindsym $mod+Control+Prior exec "cd ~/scripts/bash/interfaceliftdownloader/ ; ./interfacelift.sh -c ./wallpaper.conf"
|
||||
|
@ -42,7 +42,7 @@ TEXT
|
||||
|
||||
#ADD DYNAMIC INTERFACE
|
||||
|
||||
{"full_text":" ${downspeed wlp2s0}","color":"\#037352","separator":false,"separator_block_width":15, "min_width": 65, "align": "left"},\
|
||||
{"full_text":" ${downspeed wlp2s0}","color":"\#2aa198","separator":false,"separator_block_width":15, "min_width": 65, "align": "left"},\
|
||||
|
||||
#UP
|
||||
|
||||
@ -58,14 +58,14 @@ ${else}
|
||||
${if_match ${cpu cpu0} >= 50}\
|
||||
{"full_text":" ${cpu cpu0}%","color":"\#E56C08","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"},\
|
||||
${else}
|
||||
{"full_text":" ${cpu cpu0}%","color":"\#C5C5C5","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"},\
|
||||
{"full_text":" ${cpu cpu0}%","color":"\#c5c5c5","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"},\
|
||||
$endif
|
||||
$endif
|
||||
|
||||
#MEM
|
||||
|
||||
# CHANGE COLOR IN HIGH MEMORY USAGE
|
||||
{"full_text":" ${mem}","color":"\#C5C5C5","separator":false,"separator_block_width":20, "min_width": 65, "align": "left"},\
|
||||
{"full_text":" ${mem}","color":"\#c5c5c5","separator":false,"separator_block_width":20, "min_width": 65, "align": "left"},\
|
||||
|
||||
#SYSTEM
|
||||
${if_match ${execi 60 df -h | grep universe-lvroot | awk '{print $5}' | cut -d"%" -f1} >= 95 }\
|
||||
@ -74,8 +74,8 @@ ${if_match ${execi 60 df -h | grep universe-lvroot | awk '{print $5}' | cut -d"%
|
||||
${if_match ${execi 60 df -h | grep universe-lvroot | awk '{print $5}' | cut -d"%" -f1} >= 90 }\
|
||||
{"full_text":" ${execi 60 df -h | grep universe-lvroot | awk '{print $5}'}","color":"\#F15D25","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"},\
|
||||
${else}
|
||||
{"full_text":" ${execi 60 df -h | grep universe-lvroot | awk '{print $5}'}","color":"\#C5C5C5","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"},\
|
||||
|
||||
{"full_text":" ${execi 60 df -h | grep universe-lvroot | awk '{print $5}'}","color":"\#c5c5c5","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"},\
|
||||
$endif
|
||||
$endif
|
||||
|
||||
|
||||
@ -86,27 +86,27 @@ ${if_match ${execi 60 df -h | grep universe-lvhome | awk '{print $5}' | cut -d"%
|
||||
${if_match ${execi 60 df -h | grep universe-lvhome | awk '{print $5}' | cut -d"%" -f1} >= 90 }\
|
||||
{"full_text":" ${execi 60 df -h | grep universe-lvhome | awk '{print $5}'}","color":"\#F15D25","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"}\
|
||||
${else}
|
||||
{"full_text":" ${execi 60 df -h | grep universe-lvhome | awk '{print $5}'}","color":"\#C5C5C5","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"}\
|
||||
{"full_text":" ${execi 60 df -h | grep universe-lvhome | awk '{print $5}'}","color":"\#c5c5c5","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"}\
|
||||
|
||||
$endif
|
||||
$endif
|
||||
#MPV
|
||||
|
||||
#${if_match "${exec xdotool search --class mpv}"==""}\
|
||||
#{"full_text":" ","color":"\#037352","separator":false,"separator_block_width":6, "min_width": 570, "align": "right"},\
|
||||
#{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":6, "min_width": 570, "align": "right"},\
|
||||
#${else}
|
||||
#{"full_text": " ${exec xprop -id $(xdotool search --class mpv) | grep 'NET_WM_NAME(UTF8_STRING)' | cut -d'"' -f2} ","color":"\#C5C5C5","separator":false,"separator_block_width":6, "min_width":570 , "align": "right"}\
|
||||
#{"full_text": " ${exec xprop -id $(xdotool search --class mpv) | grep 'NET_WM_NAME(UTF8_STRING)' | cut -d'"' -f2} ","color":"\#c5c5c5","separator":false,"separator_block_width":6, "min_width":570 , "align": "right"}\
|
||||
#$endif
|
||||
|
||||
#MUSIC
|
||||
|
||||
#${if_match "${exec mpc -f %artist% | head -n 1 | grep -v 'consume: off'| sed 's/\\n//g'}"==""}\
|
||||
#{"full_text":" ","color":"\#037352","separator":false,"separator_block_width":6, "min_width": 600, "align": "left"}\
|
||||
#{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":6, "min_width": 600, "align": "left"}\
|
||||
#${else}
|
||||
# ${if_match "${exec mpc status | egrep 'paused|playing' | cut -d" " -f1}"=="[playing]"}\
|
||||
# {"full_text": " ${exec echo $(mpc -f "%artist%" | head -n 1 | head -c 40 | cut -d"%" -f1) - $(mpc -f "%title%" | head -n 1 | head -c 40 | cut -d"%" -f1)} ","color":"\#C5C5C5","separator":false,"separator_block_width":6, "min_width": 600, "align": "right"}\
|
||||
# {"full_text": " ${exec echo $(mpc -f "%artist%" | head -n 1 | head -c 40 | cut -d"%" -f1) - $(mpc -f "%title%" | head -n 1 | head -c 40 | cut -d"%" -f1)} ","color":"\#c5c5c5","separator":false,"separator_block_width":6, "min_width": 600, "align": "right"}\
|
||||
# ${else}
|
||||
# {"full_text": " ${exec echo $(mpc -f "%artist%" | head -n 1 | head -c 40 | cut -d"%" -f1) - $(mpc -f "%title%" | head -n 1 | head -c 40 | cut -d"%" -f1)} ","color":"\#C5C5C5","separator":false,"separator_block_width":6,"min_width": 600, "align": "right"}\
|
||||
# {"full_text": " ${exec echo $(mpc -f "%artist%" | head -n 1 | head -c 40 | cut -d"%" -f1) - $(mpc -f "%title%" | head -n 1 | head -c 40 | cut -d"%" -f1)} ","color":"\#c5c5c5","separator":false,"separator_block_width":6,"min_width": 600, "align": "right"}\
|
||||
# $endif
|
||||
#SEPARATOR
|
||||
#$endif
|
||||
|
@ -47,21 +47,21 @@ ${if_match "${execi 120 ping -q -w 2 -c 1 176.34.135.167 > /dev/null && echo ok}
|
||||
${if_match "${execi 200 checkupdates | wc -l}"!="0"}\
|
||||
{"full_text":" ${execi 200 checkupdates | wc -l}","color":"\#dc322f","separator":false,"separator_block_width":6},\
|
||||
#SEPARATOR
|
||||
{"full_text":" ","color":"\#037352","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":6},\
|
||||
$endif
|
||||
|
||||
#AUR
|
||||
${if_match "${execi 1900 cower -u | wc -l}"!="0"}\
|
||||
{"full_text":" ${execi 1900 cower -u | wc -l}","color":"\#F15D25","separator":false,"separator_block_width":0},\
|
||||
#SEPARATOR
|
||||
{"full_text":" ","color":"\#037352","separator":false,"separator_block_width":15},\
|
||||
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
|
||||
$endif
|
||||
|
||||
#WEATHER
|
||||
{"full_text":"${execi 1800 ~/.i3/weather.sh | cut -d' ' -f1} ","color":"\#C5C5C5","separator":false,"separator_block_width":0},\
|
||||
{"full_text":" ${execi 1800 ~/.i3/weather.sh | cut -d' ' -f2}","color":"\#4285F4","separator":false,"separator_block_width":0},\
|
||||
{"full_text":" ${execi 1800 ~/.i3/weather.sh | cut -d' ' -f3}","color":"\#C5C5C5","separator":false,"separator_block_width":0},\
|
||||
{"full_text":" ","color":"\#037352","separator":false,"separator_block_width":20},\
|
||||
# {"full_text":"${execi 1800 ~/.i3/weather.sh | cut -d' ' -f1} ","color":"\#c5c5c5","separator":false,"separator_block_width":0},\
|
||||
# {"full_text":" ${execi 1800 ~/.i3/weather.sh | cut -d' ' -f2}","color":"\#4285F4","separator":false,"separator_block_width":0},\
|
||||
# {"full_text":" ${execi 1800 ~/.i3/weather.sh | cut -d' ' -f3}","color":"\#c5c5c5","separator":false,"separator_block_width":0},\
|
||||
# {"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":20},\
|
||||
|
||||
$endif
|
||||
|
||||
@ -70,45 +70,45 @@ ${if_match "${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -
|
||||
{"full_text":" ","color":"\#dc322f","separator":false,"separator_block_width":6},\
|
||||
${else}
|
||||
${if_match ${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1} >= 75 }\
|
||||
{"full_text":" ${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1}%","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1}%","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
${else}
|
||||
${if_match ${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1} >= 50 }\
|
||||
{"full_text":" ${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1}%","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1}%","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
${else}
|
||||
{"full_text":" ${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1}%","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1}%","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
$endif
|
||||
$endif
|
||||
$endif
|
||||
|
||||
|
||||
#SEPARATOR
|
||||
{"full_text":" ","color":"\#037352","separator":false,"separator_block_width":15},\
|
||||
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
|
||||
|
||||
#BACKLIGHT
|
||||
{"full_text":" ${exec xbacklight -get | cut -d"." -f1}","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ${exec xbacklight -get | cut -d"." -f1}","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
|
||||
#SEPARATOR
|
||||
{"full_text":" ","color":"\#037352","separator":false,"separator_block_width":15},\
|
||||
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
|
||||
|
||||
#WIRED
|
||||
${if_match "${addr br0}" != "No Address" }\
|
||||
${if_match "${exec ip a | grep -A 1 ' br0:' | grep ether | awk '{print $2}'}" == "${exec cat ~/.i3/mac_orig}" }\
|
||||
{"full_text":"ORIG ${addr br0}","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"ORIG ${addr br0}","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
${else}
|
||||
{"full_text":" ${exec ip a | grep -A 1 ' br0:' | grep ether | awk '{print $2}'} ${addr br0}","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ${exec ip a | grep -A 1 ' br0:' | grep ether | awk '{print $2}'} ${addr br0}","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
$endif
|
||||
$endif
|
||||
|
||||
#WIFI
|
||||
${if_match "${wireless_essid wlp2s0}" != "off/any" }\
|
||||
{"full_text":" ","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
${if_match ${wireless_link_qual_perc wlp2s0} >= 75 }\
|
||||
{"full_text":"${wireless_essid wlp2s0}","color":"\#037352","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${wireless_essid wlp2s0}","color":"\#2aa198","separator":false,"separator_block_width":6},\
|
||||
${else}
|
||||
${if_match ${wireless_link_qual_perc wlp2s0} <= 25 }\
|
||||
{"full_text":"${wireless_essid wlp2s0}","color":"\#dc322f","separator":false,"separator_block_width":6},\
|
||||
${else}
|
||||
{"full_text":"${wireless_essid wlp2s0}","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${wireless_essid wlp2s0}","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
|
||||
$endif
|
||||
$endif
|
||||
@ -121,45 +121,56 @@ $endif
|
||||
|
||||
#TOR CONNECTED
|
||||
${if_match "${exec systemctl status tor | grep 'active (running)'}" != "" }\
|
||||
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
|
||||
{"full_text":" TOR${execi 10 proxychains wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d: -f 2 | cut -d\< -f 1}","color":"\#F15D25","separator":false,"separator_block_width":6},\
|
||||
$endif
|
||||
|
||||
#SEPARATOR
|
||||
{"full_text":" ","color":"\#073642","separator":false,"separator_block_width":15},\
|
||||
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
|
||||
|
||||
#BATTERY
|
||||
|
||||
${if_match "${exec cat /sys/class/power_supply/BAT0/status}" == "Charging" }\
|
||||
{"full_text":" ","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_percent BAT0}%","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_percent BAT0}%","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
${else}
|
||||
${if_match "${exec cat /sys/class/power_supply/BAT0/status}" == "Full" }\
|
||||
{"full_text":" ","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_percent BAT0}%","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_percent BAT0}%","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
${else}
|
||||
${if_match ${battery_percent BAT0} >= 80}\
|
||||
{"full_text":" ","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_percent BAT0}%","color":"\#073642","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"[${battery_time BAT0}]","color":"\#073642","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_percent BAT0}%","color":"\#2aa198","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
|
||||
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_time BAT0}","color":"\#2aa198","separator":false,"separator_block_width":6},\
|
||||
${else}
|
||||
${if_match ${battery_percent BAT0} >= 50}\
|
||||
{"full_text":" ","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_percent BAT0}%","color":"\#073642","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"[${battery_time BAT0}]","color":"\#073642","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_percent BAT0}%","color":"\#2aa198","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
|
||||
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_time BAT0}","color":"\#2aa198","separator":false,"separator_block_width":6},\
|
||||
${else}
|
||||
${if_match ${battery_percent BAT0} >= 30}\
|
||||
{"full_text":" ","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_percent BAT0}%","color":"\#073642","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"[${battery_time BAT0}]","color":"\#073642","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_percent BAT0}%","color":"\#2aa198","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
|
||||
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_time BAT0}","color":"\#2aa198","separator":false,"separator_block_width":6},\
|
||||
${else}
|
||||
${if_match ${battery_percent BAT0} >= 10}\
|
||||
{"full_text":" ","color":"\#E56C08","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_percent BAT0}%","color":"\#E56C08","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"[${battery_time BAT0}]","color":"\#E56C08","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
|
||||
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_time BAT0}","color":"\#E56C08","separator":false,"separator_block_width":6},\
|
||||
${else}
|
||||
{"full_text":" ","color":"\#dc322f","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_percent BAT0}%","color":"\#dc322f","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"[${battery_time BAT0}]","color":"\#dc322f","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
|
||||
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${battery_time BAT0}","color":"\#dc322f","separator":false,"separator_block_width":6},\
|
||||
|
||||
$endif
|
||||
$endif
|
||||
@ -169,16 +180,16 @@ ${else}
|
||||
$endif
|
||||
|
||||
#DATE
|
||||
{"full_text":" ","color":"\#073642","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${time %d}","color":"\#C5C5C5","separator":false,"separator_block_width":0},\
|
||||
{"full_text":"/","color":"\#073642","separator":false,"separator_block_width":0},\
|
||||
{"full_text":"${time %m}","color":"\#C5C5C5","separator":false,"separator_block_width":0},\
|
||||
{"full_text":"/","color":"\#073642","separator":false,"separator_block_width":0},\
|
||||
{"full_text":"${time %Y}","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#073642","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":6},\
|
||||
{"full_text":"${time %d}","color":"\#c5c5c5","separator":false,"separator_block_width":0},\
|
||||
{"full_text":"/","color":"\#2aa198","separator":false,"separator_block_width":0},\
|
||||
{"full_text":"${time %m}","color":"\#c5c5c5","separator":false,"separator_block_width":0},\
|
||||
{"full_text":"/","color":"\#2aa198","separator":false,"separator_block_width":0},\
|
||||
{"full_text":"${time %Y}","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":6},\
|
||||
|
||||
#TIME
|
||||
{"full_text":"${time %H:%M:%S}","color":"\#C5C5C5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#073642","separator":false,"separator_block_width":6}\
|
||||
{"full_text":"${time %H:%M:%S}","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
|
||||
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":6}\
|
||||
|
||||
],
|
||||
|
16
.i3/mpcmenu.sh
Executable file
16
.i3/mpcmenu.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
action=$(echo -e "toggle\nprev\nnext" | dmenu -fn 'hack-10' -h 20 -nb '#202020' -nf '#FFFFFF' -sf '#dc322f' -sb '#202020' -p "mpc >" -w 150 -o 0.9 -y 21 -l 3)
|
||||
if [[ "$action" == "toggle" ]]
|
||||
then
|
||||
mpc toggle
|
||||
fi
|
||||
|
||||
if [[ "$action" == "prev" ]]
|
||||
then
|
||||
mpc prev
|
||||
fi
|
||||
|
||||
if [[ "$action" == "next" ]]
|
||||
then
|
||||
mpc next
|
||||
fi
|
Binary file not shown.
Before Width: | Height: | Size: 2.5 MiB |
Binary file not shown.
Before Width: | Height: | Size: 409 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.1 MiB |
@ -1,16 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
loc="34090"
|
||||
|
||||
mph=$(cliweather $loc| grep 'Wind:' | cut -d' ' -f2)
|
||||
kmh=$(echo "$(($mph*(8/5)))" | cut -d'.' -f1)
|
||||
#today_cond="$(cliweather $loc | grep 'Condition:' | sed 's-Condition: --')"
|
||||
today_temp="$(cliweather $loc | grep 'Temperature:' | sed 's-Temperature: .*/\(.*C\)- \1°-')"
|
||||
today_humi="$(cliweather $loc | grep 'Humidity:' | sed 's-Humidity: --')"
|
||||
today_wind="$(cliweather $loc | grep 'Wind:' | sed "s-Wind: .* mph\( .*\)-"$kmh"km/h-")"
|
||||
|
||||
#today
|
||||
echo $today_temp $today_humi $today_wind
|
||||
|
||||
#next days
|
||||
#cliweather -f 34090 | head -n 9 | sed 's-Day: --' | sed 's- .*/\(.*C\)- \1°-' | sed 's-Condition: --'
|
@ -5,7 +5,7 @@ then
|
||||
~/.i3/i3lock-fancy-multimonitor/lock
|
||||
fi
|
||||
|
||||
if [[ "$action" == "exit" ]]
|
||||
if [[ "$action" == "logout" ]]
|
||||
then
|
||||
i3-msg exit
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user