Fix logout script issue, clean up scripts for rofi, changed polybar launcher script name

This commit is contained in:
natemaia 2017-12-02 19:56:08 -08:00
parent 5be5c23629
commit f9dfbf748f
35 changed files with 71 additions and 54 deletions

View File

@ -17,7 +17,7 @@ lxpolkit &
# panel
al-tint2-session &
sleep 1; launch-polybar &
sleep 1; start-polybar &
bspc monitor -d I II III IV V VI VII VIII IX X

View File

@ -35,17 +35,17 @@ detect-transient = true;
detect-client-leader = true;
# GLX backend
#glx-no-stencil = true;
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
#glx-copy-from-front = false;
#glx-use-copysubbuffermesa = true;
#glx-no-rebind-pixmap = true;
#glx-swap-method = "undefined";
#glx-use-gpushader4 = true;
#xrender-sync = true;
#xrender-sync-fence = true;
opacity-rule = [
"80:class_g = 'XTerm'",
"85:class_g = 'XTerm'",
"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
];

View File

@ -40,7 +40,7 @@ gaps inner 12
gaps outer 0
# font
font pango:Ubuntu Light 11
font pango:Ubuntu 11
##
@ -76,7 +76,7 @@ set $secondMonitor HDMI2
# run with reload
exec_always --no-startup-id start-compton
exec_always --no-startup-id launch-polybar
exec_always --no-startup-id start-polybar
exec_always --no-startup-id numlockx on
# run once

View File

@ -11,7 +11,7 @@ numlockx on &
# panel
al-tint2-session &
sleep 1; ~/bin/launch-polybar &
sleep 1; start-polybar &
# Openbox autostart
ob-autostart -d &

View File

@ -9,7 +9,7 @@
</item>
<item label="Web Browser">
<action name="Execute">
<command>al-open -web</command>
<command>exo-open --launch WebBrowser</command>
</action>
</item>
<item label="File Manager">

View File

@ -81,13 +81,13 @@ ws-icon-default = 
format = <label-state><label-mode>
label-mode = %mode%
label-mode-padding = 2
label-focused = %name%
label-focused = %index% %name%
label-focused-padding = 2
label-unfocused = %name%
label-unfocused = %index% %name%
label-unfocused-padding = 2
label-visible = %name%
label-visible = %index% %name%
label-visible-padding = 2
label-urgent = %name%
label-urgent = %index% %name%
label-urgent-padding = 2
label-mode-underline = ${colors.urgent}
label-focused-underline = ${colors.trim}
@ -204,6 +204,7 @@ ramp-coreload-3-foreground = ${colors.yellow}
ramp-coreload-4-foreground = ${colors.urgent}
ramp-coreload-5-foreground = ${colors.urgent}
;;;;;;;;;
;; MEM ;;
;;;;;;;;;

View File

@ -7,7 +7,7 @@ allow_bold = true
dynamic_title = true
urgent_on_bell = true
clickable_url = true
font = Ubuntu Mono Nerd Font 10
font = Ubuntu Mono 10
scrollback_lines = 10000
search_wrap = true
icon_name = utilities-terminal

View File

@ -70,7 +70,7 @@ border_color_pressed = #222222 90
#-------------------------------------
# Panel
panel_items = LTBSC
panel_items = PLTSC
panel_size = 100% 30
panel_margin = 0 0
panel_padding = 0 0 0
@ -217,3 +217,8 @@ tooltip_padding = 2 2
tooltip_background_id = 6
tooltip_font_color = #d8d8d8 100
tooltip_font = Ubuntu 10
button = new
button_icon = /tmp/jgmenu/flame-light.svg
button_max_icon_size = 22
button_lclick_command= jgmenu_run lx

View File

@ -70,7 +70,7 @@ border_color_pressed = #222222 90
#-------------------------------------
# Panel
panel_items = LTBSC
panel_items = PLTSC
panel_size = 100% 30
panel_margin = 0 0
panel_padding = 0 0 0
@ -217,3 +217,8 @@ tooltip_padding = 2 2
tooltip_background_id = 6
tooltip_font_color = #d8d8d8 100
tooltip_font = Ubuntu 10
button = new
button_icon = /tmp/jgmenu/flame-light.svg
button_max_icon_size = 22
button_lclick_command= jgmenu_run lx

View File

@ -5,7 +5,7 @@ terminal:
foreground: "#EFEFEC"
bold: "#EFEFEC"
termbackground: "rgba(68,68,68,0.80)"
font: "Ubuntu Mono Nerd Font 10"
font: "Ubuntu Mono 10"
colors: ["#212121", "#D50000", "#00C853", "#00B8D4", "#C6FF00", "#1DE9B6", "#AA00FF", "#BDBDBD", "#EEEEEE"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
@ -16,15 +16,17 @@ border:
bottom: 0
color: "#444444"
gap:
inner: 10
outer: 5
bar:
height: 22
width: "100%"
radius: 3
bottom: "false"
background: "#e1444444"
font0: "xos4 Terminus:size=12:antialias=false;2"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -5,7 +5,7 @@ terminal:
foreground: "#F1F1F1"
bold: "#A9A9A9"
termbackground: "rgba(33,33,33,0.80)"
font: "Ubuntu Mono Nerd Font 10"
font: "Ubuntu Mono 10"
colors: ["#494949", "#D64937", "#19BC9C", "#FFFE5D", "#4E88CF", "#AF86C8", "#5DD5FF", "#969896", "#F6F6F6"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
@ -16,10 +16,12 @@ border:
bottom: 0
color: "#F1F1F1"
gap:
inner: 15
outer: 0
bar:
height: 24
width: "100%"

View File

@ -5,7 +5,7 @@ terminal:
foreground: "#1D1D1D"
bold: "#A9A9A9"
termbackground: "rgba(250,250,250,0.80)"
font: "Ubuntu Mono Nerd Font 10"
font: "Ubuntu Mono 10"
colors: ["#000000", "#D64937", "#19BC9C", "#919640", "#4E88CF", "#AF86C8", "#5DD5FF", "#969896", "#AFDCE4"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white

View File

@ -5,7 +5,7 @@ terminal:
foreground: "#c0c5ce"
bold: "#c0c5ce"
termbackground: "rgba(43,48,59,0.80)"
font: "Ubuntu Mono Nerd Font 10"
font: "Ubuntu Mono 10"
colors: ["#2b303b", "#bf616a", "#a3be8c", "#ebcb8b", "#8fa1b3", "#b48ead", "#96b5b4", "#65737e", "#F6F6F6"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white

View File

@ -5,7 +5,7 @@ terminal:
foreground: "#baacc5"
bold: "#4c5068"
termbackground: "rgba(102,102,102,0.80)"
font: "Ubuntu Mono Nerd Font 10"
font: "Ubuntu Mono 10"
colors: ["#323c51", "#a67070", "#88977c", "#de935f", "#6b96a7", "#553e62", "#5d817d", "#8e8e86", "#b3cbc9"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
@ -28,5 +28,5 @@ bar:
radius: 0
bottom: "false"
background: "#e1666666"
font0: "xos4 Terminus:size=12:antialias=false;2"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -5,7 +5,7 @@ terminal:
foreground: "#131313"
bold: "#A9A9A9"
termbackground: "rgba(240,240,240,0.80)"
font: "Ubuntu Mono Nerd Font 10"
font: "Ubuntu Mono 10"
colors: ["#494949", "#E64141", "#19BC9C", "#FFFE5D", "#1793D1", "#AF86C8", "#5DD5FF", "#969896", "#F6F6F6"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white

View File

@ -5,7 +5,7 @@ terminal:
foreground: "#ccccce"
bold: "#ccccce"
termbackground: "rgba(13,13,27,0.95)"
font: "Ubuntu Mono Nerd Font 10"
font: "Ubuntu Mono 10"
colors: ["#282828", "#ca1444", "#789aba", "#94469b", "#cb6fa1", "#fb6e93", "#cf98c1", "#98218e", "#ebdbb2"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
@ -28,5 +28,5 @@ bar:
radius: 0
bottom: "false"
background: "#e10d0d1b"
font0: "xos4 Terminus:size=12:antialias=false;2"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -5,7 +5,7 @@ terminal:
foreground: "#ffffff"
bold: "#c5c8c6"
termbackground: "rgba(10,10,10,0.80)"
font: "Ubuntu Mono Nerd Font 10"
font: "Ubuntu Mono 10"
colors: ["#191919", "#001122", "#384a5b", "#556677", "#113322", "#446655", "#5e8d87", "#b7b7b7", "#ffffff"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white

View File

@ -5,7 +5,7 @@ terminal:
foreground: "#F6F6F6"
bold: "#A9A9A9"
termbackground: "rgba(28,21,28,0.80)"
font: "Ubuntu Mono Nerd Font 10"
font: "Ubuntu Mono 10"
colors: ["#1C151C", "#96B8D2", "#A4BDD2", "#9EC1D7", "#849AAB", "#B7D1E4", "#D2D9DD", "#666666", "#F6F6F6"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
@ -28,5 +28,5 @@ bar:
radius: 0
bottom: "false"
background: "#ED1C151C"
font0: "xos4 Terminus:size=12:antialias=false;2"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -5,7 +5,7 @@ terminal:
foreground: "#c5c8c6"
bold: "#A9A9A9"
termbackground: "rgba(64,69,82,0.80)"
font: "Ubuntu Mono Nerd Font 10"
font: "Ubuntu Mono 10"
colors: ["#3f3f3f", "#705050", "#E4B928", "#F0DFAF", "#506070", "#DC8CC3", "#298FEA", "#DCDCCC", "#F6F6F6"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
@ -28,5 +28,5 @@ bar:
radius: 0
bottom: "false"
background: "#ED404552"
font0: "xos4 Terminus:size=12:antialias=false;2"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -5,7 +5,7 @@ terminal:
foreground: "#bcbcbc"
bold: "#EEEEEC"
termbackground: "rgba(0,0,0,0.80)"
font: "Ubuntu Mono Nerd Font 10"
font: "Ubuntu Mono 10"
colors: ["#292929", "#494949", "#696969", "#B3B3B3", "#898989", "#595959", "#969696", "#D7D7D7", "#EEEEEC"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
@ -28,5 +28,5 @@ bar:
radius: 0
bottom: "false"
background: "#e1000000"
font0: "xos4 Terminus:size=12:antialias=false;2"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -5,7 +5,7 @@ terminal:
foreground: "#27FCFD"
bold: "#A9A9A9"
termbackground: "rgba(35,30,53,0.80)"
font: "Ubuntu Mono Nerd Font 10"
font: "Ubuntu Mono 10"
colors: ["#231e35", "#F20390", "#1CE190", "#FDEE7B", "#27FCFD", "#8039A0", "#AFDCE4", "#969896", "#902049"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
@ -28,5 +28,5 @@ bar:
radius: 0
bottom: "false"
background: "#231e35"
font0: "xos4 Terminus:size=12:antialias=false;2"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -5,7 +5,7 @@ terminal:
foreground: "#ffffff"
bold: "#ffffff"
termbackground: "rgba(16,16,16,0.95)"
font: "Ubuntu Mono Nerd Font 10"
font: "Ubuntu Mono 10"
colors: ["#262626", "#830E0C", "#A72B28", "#C64B48", "#ED7C79", "#FFABA9", "#FF5B6C", "#616161", "#EAEAEA"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
@ -28,5 +28,5 @@ bar:
radius: 0
bottom: "false"
background: "#e1101010"
font0: "xos4 Terminus:size=12:antialias=false;2"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -1,7 +1,7 @@
al-compositor --restart
pkill dunst
xrdb ~/.Xresources
launch-polybar --reload
start-polybar --reload
i3-msg restart
sleep 0.5

View File

@ -1,7 +1,7 @@
al-compositor --restart
pkill dunst
xrdb ~/.Xresources
launch-polybar --reload
start-polybar --reload
i3-msg restart
sleep 0.5

View File

@ -5,7 +5,7 @@ terminal:
foreground: "#FFF1FF"
bold: "#FFF1FF"
termbackground: "rgba(25,4,60,0.80)"
font: "Ubuntu Mono Nerd Font 9"
font: "Ubuntu Mono 9"
colors: ["#19043C", "#EE79A9", "#8C9440", "#DE935F", "#05C6F1", "#85678F", "#5E8D87", "#969CD3", "#ED5181"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white

View File

@ -4,7 +4,7 @@ connected=""
disconnected=""
while true; do
if ping -c1 8.8.8.8 >/dev/null; then
echo "$connected"; sleep 5
echo "$connected"; sleep 10
else
echo "$disconnected"; sleep 1
echo "$connected"; sleep 1

View File

@ -1,2 +1,3 @@
#!/bin/bash
rofi -no-config -modi run,drun,window -show drun -eh 1 -width 50 -padding 30 -sidebar-mode -font "Ubuntu Light 11" -color-enabled -color-window "#2b303b, #8fa1b3, #2b303b" -color-normal "#2b303b, #8fa1b3, #2b303b, #8fa1b3, #2b303b"
rofi -no-config -modi run,drun,window -show drun -eh 1 -line-padding 4 -padding 50 -sidebar-mode -font "Ubuntu 11" -color-enabled -color-window "#2b303b, #8fa1b3, #2b303b" -color-normal "#2b303b, #8fa1b3, #2b303b, #8fa1b3, #2b303b"

View File

@ -1,2 +1,3 @@
#!/bin/bash
rofi -no-config -modi run,drun,window -show drun -eh 1 -width 50 -padding 30 -sidebar-mode -font "Ubuntu Light 11" -color-enabled -color-window "{{.Data.terminal_background}}, {{index .Data.terminal_colors 4}}, {{.Data.terminal_background}}" -color-normal "{{.Data.terminal_background}}, {{index .Data.terminal_colors 4}}, {{.Data.terminal_background}}, {{index .Data.terminal_colors 4}}, {{.Data.terminal_background}}"
rofi -no-config -modi run,drun,window -show drun -eh 1 -line-padding 4 -padding 50 -sidebar-mode -font "Ubuntu 11" -color-enabled -color-window "{{.Data.terminal_background}}, {{index .Data.terminal_colors 4}}, {{.Data.terminal_background}}" -color-normal "{{.Data.terminal_background}}, {{index .Data.terminal_colors 4}}, {{.Data.terminal_background}}, {{index .Data.terminal_colors 4}}, {{.Data.terminal_background}}"

View File

@ -2,7 +2,7 @@
CUR_WM=$(xprop -root | grep "_NET_WM_NAME(UTF8_STRING)" | cut -d " " -f 3 | sed 's/"//g' | awk '{print tolower($0)}')
ANS=$(echo " lock| logout| reboot| shutdown" | rofi -sep "|" -dmenu -i -p 'System: ' "" -width 20 -hide-scrollbar -location 0 -yoffset -200 -font "Ubuntu 11" -eh 1 -line-padding 2 -padding 30 -no-config -lines 4 -color-enabled -color-window "#1F2326, #F1F1F1, #1F2326" -color-normal "#1F2326, #F1F1F1, #1F2326, #4E88CF, #1F2326")
ANS=$(echo " lock| logout| reboot| shutdown" | rofi -sep "|" -dmenu -i -p 'System: ' "" -width 20 -hide-scrollbar -font "Ubuntu 11" -eh 1 -line-padding 4 -padding 20 -no-config -lines 4 -color-enabled -color-window "#1F2326, #F1F1F1, #1F2326" -color-normal "#1F2326, #F1F1F1, #1F2326, #4E88CF, #1F2326")
if [[ "$ANS" == *lock ]]; then
i3lock-fancy
@ -15,7 +15,7 @@ elif [[ "$ANS" == *logout ]]; then
done
killall sxhkd
bspc quit
elif [[ "$CUR_WM" == "bspwm" ]]; then
elif [[ "$CUR_WM" == "openbox" ]]; then
openbox --exit
else
echo "Unknown WM... Exiting"

View File

@ -2,7 +2,7 @@
CUR_WM=$(xprop -root | grep "_NET_WM_NAME(UTF8_STRING)" | cut -d " " -f 3 | sed 's/"//g' | awk '{print tolower($0)}')
ANS=$(echo " lock| logout| reboot| shutdown" | rofi -sep "|" -dmenu -i -p 'System: ' "" -width 20 -hide-scrollbar -location 0 -yoffset -200 -font "Ubuntu 11" -eh 1 -line-padding 4 -padding 30 -no-config -lines 4 -color-enabled -color-window "{{.Data.terminal_background}}, {{.Data.terminal_foreground}}, {{.Data.terminal_background}}" -color-normal "{{.Data.terminal_background}}, {{.Data.terminal_foreground}}, {{.Data.terminal_background}}, {{index .Data.terminal_colors 4}}, {{.Data.terminal_background}}")
ANS=$(echo " lock| logout| reboot| shutdown" | rofi -sep "|" -dmenu -i -p 'System: ' "" -width 20 -hide-scrollbar -font "Ubuntu 11" -eh 1 -line-padding 4 -padding 20 -no-config -lines 4 -color-enabled -color-window "{{.Data.terminal_background}}, {{.Data.terminal_foreground}}, {{.Data.terminal_background}}" -color-normal "{{.Data.terminal_background}}, {{.Data.terminal_foreground}}, {{.Data.terminal_background}}, {{index .Data.terminal_colors 4}}, {{.Data.terminal_background}}")
if [[ "$ANS" == *lock ]]; then
i3lock-fancy
@ -15,7 +15,7 @@ elif [[ "$ANS" == *logout ]]; then
done
killall sxhkd
bspc quit
elif [[ "$CUR_WM" == "bspwm" ]]; then
elif [[ "$CUR_WM" == "openbox" ]]; then
openbox --exit
else
echo "Unknown WM... Exiting"