Large update to upgrade script, remove unneccessary configs, add additional and fixups

This commit is contained in:
natemaia 2017-12-07 20:20:42 -08:00
parent 9a63b6f701
commit d4c9ea73af
38 changed files with 505 additions and 617 deletions

View File

@ -20,7 +20,7 @@ lock = K
shutdown = systemctl poweroff shutdown = systemctl poweroff
restart = systemctl reboot restart = systemctl reboot
suspend = systemctl suspend suspend = systemctl suspend
logout = openbox --exit logout = session-logout
#hibernate = systemctl hibernate #hibernate = systemctl hibernate
lock = pkill oblogout; i3lock-fancy -p lock = pkill oblogout; i3lock-fancy -p
#switchuser = gdm-control --switch-user #switchuser = gdm-control --switch-user

View File

@ -12,14 +12,17 @@ shadow-ignore-shaped = true;
# Opacity # Opacity
menu-opacity = 1.0; menu-opacity = 1.0;
inactive-opacity = 1.0; inactive-opacity = 1.0;
active-opacity = 1.0;
inactive-opacity-override = false; inactive-opacity-override = false;
alpha-step = 0.06;
# Fade # Fade
fading = true; fading = true;
fade-delta = 8; fade-delta = 10;
fade-in-step = 0.03; fade-in-step = 0.03;
fade-out-step = 0.028; fade-out-step = 0.028;
alpha-step = 0.06;
no-fading-openclose = true;
no-fading-destroyed-argb = false;
# Backend # Backend
backend = "xrender"; backend = "xrender";
@ -50,20 +53,20 @@ opacity-rule = [
]; ];
shadow-exclude = [ shadow-exclude = [
"name *? = 'Notification'", "name *?= 'Notification'",
"class_g *? = 'VirtualBox'", "class_g *?= 'VirtualBox'",
"class_g *? = 'Conky'", "class_g *?= 'Conky'",
"class_g ? = 'Notify-osd'", "class_g *?= 'Notify-osd'",
"class_g ? = 'cairo-dock'", "class_g *?= 'cairo-dock'",
"class_g *? = 'trayer'", "class_g *?= 'trayer'",
"class_g *? = 'i3-frame'", "class_g *?= 'i3-frame'",
"class_g *? = 'firefox'", "class_g *?= 'firefox'",
"class_g *? = 'navigator'", "class_g *?= 'navigator'",
"class_g *? = 'Cairo-clock'", "class_g *?= 'Cairo-clock'",
"class_g *? = 'Cairo-dock'", "class_g *?= 'Cairo-dock'",
"class_g *? = 'plank'", "class_g *?= 'plank'",
"class_g *? = 'Docky'", "class_g *?= 'Docky'",
"_NET_WM_STATE@:32a * = '_NET_WM_STATE_HIDDEN'", "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
"_GTK_FRAME_EXTENTS@:c" "_GTK_FRAME_EXTENTS@:c"
]; ];
#"85:class_g *?= 'xterm'", #"85:class_g *?= 'xterm'",
@ -75,11 +78,11 @@ shadow-exclude = [
#"99:class_g *?= 'mpv'", #"99:class_g *?= 'mpv'",
focus-exclude = [ focus-exclude = [
"class_g *? = 'Cairo-clock'", "class_g *?= 'Cairo-clock'",
"class_g *? = 'Virtualbox'", "class_g *?= 'Virtualbox'",
"class_g *? = 'trayer'", "class_g *?= 'trayer'",
"_NET_WM_STATE@:32a * = '_NET_WM_STATE_HIDDEN'", "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
"name *? = 'Authy'" "name *?= 'Authy'"
]; ];
#"class_g *?= 'steam'", #"class_g *?= 'steam'",
#"class_g *?= 'chrome'", #"class_g *?= 'chrome'",

View File

@ -21,7 +21,7 @@
line_height = 0 line_height = 0
separator_height = 2 separator_height = 2
padding = 10 padding = 10
horizontal_padding = 10 horizontal_padding = 20
frame_color = "#c0c5ce" frame_color = "#c0c5ce"
separator_color = frame separator_color = frame
frame_width = 1 frame_width = 1

View File

@ -21,7 +21,7 @@
line_height = 0 line_height = 0
separator_height = 2 separator_height = 2
padding = 10 padding = 10
horizontal_padding = 10 horizontal_padding = 20
frame_color = "{{.Data.border_color}}" frame_color = "{{.Data.border_color}}"
separator_color = frame separator_color = frame
frame_width = 1 frame_width = 1

View File

@ -33,12 +33,12 @@ client.urgent $red $bg $red $red $red
client.placeholder $grey $bg $bg $bg $bg client.placeholder $grey $bg $bg $bg $bg
client.background $bg client.background $bg
# border & title # border & title.. Must be set to border pixel for gaps to work
for_window [class="^.*"] border pixel 2, title_format "<b> %class >> %title </b>" for_window [class="^.*"] border pixel 2, title_format "<b> %class >> %title </b>"
# gaps # gaps
gaps inner 15 gaps inner 15
gaps outer 0 gaps outer 5
# font # font
font pango:Ubuntu 11 font pango:Ubuntu 11
@ -99,6 +99,8 @@ bindsym Mod1+q kill
# launchers # launchers
bindsym Control+space exec --no-startup-id rofi-gorice bindsym Control+space exec --no-startup-id rofi-gorice
# this is needed for super key to launch rofi
bindsym Mod1+F1 exec --no-startup-id rofi-gorice bindsym Mod1+F1 exec --no-startup-id rofi-gorice
# core # core
@ -245,10 +247,10 @@ bindsym $Mod+y border 1pixel
bindsym $Mod+u border none bindsym $Mod+u border none
# change gaps # change gaps
bindsym $Mod+plus gaps outer current plus 5 bindsym $Mod+plus gaps inner current plus 5
bindsym $Mod+minus gaps outer current minus 5 bindsym $Mod+minus gaps inner current minus 5
bindsym $Mod+Shift+plus gaps inner current plus 5 bindsym $Mod+Shift+plus gaps outer current plus 5
bindsym $Mod+Shift+minus gaps inner current minus 5 bindsym $Mod+Shift+minus gaps outer current minus 5
bindsym $Mod+Control+plus gaps inner all plus 5 bindsym $Mod+Control+plus gaps inner all plus 5
bindsym $Mod+Control+minus gaps inner all minus 5 bindsym $Mod+Control+minus gaps inner all minus 5

View File

@ -7,22 +7,23 @@ tint2_look = 1
menu_halign = left menu_halign = left
menu_valign = top menu_valign = top
menu_margin_x = 0 menu_margin_x = 5
menu_margin_y = 25 menu_margin_y = 30
menu_width = 200 menu_width = 200
menu_radius = 2 menu_radius = 0
menu_border = 1 menu_border = 1
menu_padding_top = 8 menu_padding_top = 15
menu_padding_right = 4 menu_padding_right = 2
menu_padding_bottom = 8 menu_padding_bottom = 5
menu_padding_left = 4 menu_padding_left = 2
item_height = 25 item_height = 30
item_padding_x = 5 item_padding_x = 5
item_margin_y = 5
item_radius = 0 item_radius = 0
item_border = 1 item_border = 0
sep_height = 5 sep_height = 5
icon_size = 24 icon_size = 24
@ -32,3 +33,10 @@ sub_hover_action = 1
terminal_exec = termite terminal_exec = termite
terminal_args = -e terminal_args = -e
color_menu_bg = #2b303b 100
color_menu_fg = #8fa1b3 100
color_norm_bg = #2b303b 0
color_norm_fg = #8fa1b3 100
color_sel_bg = #8fa1b3 60
color_sel_fg = #2b303b 100
color_sep_fg = #8fa1b3 40

View File

@ -7,6 +7,7 @@ do_setup() {
KEYS=('AEFB411B072836CD48FF0381AE252C284B5DBA5D' KEYS=('AEFB411B072836CD48FF0381AE252C284B5DBA5D'
'9E4F11C6A072942A7B3FD3B0B81EB14A09A25EB0' '9E4F11C6A072942A7B3FD3B0B81EB14A09A25EB0'
'35F52A02854DCCAEC9DD5CC410443C7F54B00041') '35F52A02854DCCAEC9DD5CC410443C7F54B00041')
sudo dirmngr </dev/null # sometimes prevents failure to connect to keyserver
sudo pacman-key --init sudo pacman-key --init
sudo pacman-key --populate archlinux sudo pacman-key --populate archlinux
for key in "${KEYS[@]}"; do for key in "${KEYS[@]}"; do

View File

@ -41,8 +41,7 @@ our $SCHEMA = [
{cat => ['settings', 'Settings', 'gnome-settings']}, {cat => ['settings', 'Settings', 'gnome-settings']},
{cat => ['system', 'System', 'applications-system']}, {cat => ['system', 'System', 'applications-system']},
{sep => undef}, {sep => undef},
{pipe => ['al-places-pipemenu', 'Places', 'folder']}, {pipe => ['al-places-pipemenu --recent ~/', 'Places', 'folder']},
{pipe => ['al-recent-files-pipemenu', 'Recent Files', 'folder-recent']},
{sep => undef}, {sep => undef},
{begin_cat => ['Preferences', 'theme']}, {begin_cat => ['Preferences', 'theme']},
{begin_cat => ['Openbox', 'openbox']}, {begin_cat => ['Openbox', 'openbox']},

View File

@ -1,18 +1,21 @@
# launch compton # launch compton if enabled
al-compositor --start & al-compositor --start &
$HOME/.config/setup & $HOME/.config/setup &
# enable numlock, comment out if you dont have a numpad
numlockx on &
# restore wallpaper # restore wallpaper
nitrogen --restore & nitrogen --restore &
# enable numlock # start tint2 if enabled
numlockx on &
# panel
al-tint2-session & al-tint2-session &
# start polybar if tint2 not enabled (start after al-tint-session)
sleep 1; start-polybar & sleep 1; start-polybar &
sleep 1; trayer --edge bottom --align left --heighttype pixel --height 22 --widthtype request --SetDockType true --expand true --transparent true --alpha 255
# system tray
sleep 1; trayer --edge bottom --align left --widthtype request --SetDockType false --expand true &
# Openbox autostart # Openbox autostart
ob-autostart -d & ob-autostart -d &
@ -20,7 +23,7 @@ ob-autostart -d &
# PolicyKit authentication # PolicyKit authentication
lxpolkit & lxpolkit &
# Required for xfce setting to work # Required for xfce settings to work
xfsettingsd & xfsettingsd &
# Launch conky if session exists # Launch conky if session exists

View File

@ -75,8 +75,7 @@
</item> </item>
</menu> </menu>
<separator/> <separator/>
<menu execute="/usr/bin/al-places-pipemenu" id="pipe-placesmenu" label="Places"/> <menu execute="al-places-pipemenu --recent ~/" id="pipe-placesmenu" label="Places"/>
<menu execute="/usr/bin/al-recent-files-pipemenu" id="pipe-recentfilesmenu" label="Recent Files"/>
<separator/> <separator/>
<menu id="preferences" label="Preferences"> <menu id="preferences" label="Preferences">
<menu id="obConfig" label="Openbox"> <menu id="obConfig" label="Openbox">

View File

@ -18,7 +18,7 @@ inherit = bar/master
monitor = monitor =
modules-left = jgmenu config workspaces modules-left = jgmenu config workspaces
modules-center = clock window_switch modules-center = window_switch clock
modules-right = pkg memory temperature coreuse network volume modules-right = pkg memory temperature coreuse network volume
; All available modules (some require configuration in modules.conf) ; All available modules (some require configuration in modules.conf)

View File

@ -10,7 +10,7 @@ type = custom/script
label = %output% label = %output%
label-padding = 1 label-padding = 1
interval = 10 interval = 10
exec = echo "MENU" exec = echo "Menu"
click-left = jgmenu_run lx click-left = jgmenu_run lx
click-right = exo-open $HOME/.config/jgmenu/jgmenurc click-right = exo-open $HOME/.config/jgmenu/jgmenurc
@ -22,11 +22,11 @@ click-right = exo-open $HOME/.config/jgmenu/jgmenurc
type = custom/script type = custom/script
interval = 5 interval = 5
label = %output% label = %output%
format-padding = 2 format-padding = 1
format = <label> format = <label>
click-right = termite "--exec=gorice edit i3/current" & click-right = termite "--exec=gorice edit i3/current" &
click-left = gorice dump i3 ~/.gorice/output.yaml.template; config_ui & click-left = gorice dump i3 ~/.gorice/output.yaml.template; config_ui &
exec = echo "GO" exec = echo ""
;exec = grep "current" data.json | cut -d '"' -f22 | cut -d . -f1 | cut -d / -f2 | tr '[:lower:]' '[:upper:]' ;exec = grep "current" data.json | cut -d '"' -f22 | cut -d . -f1 | cut -d / -f2 | tr '[:lower:]' '[:upper:]'

View File

@ -11,7 +11,7 @@ font = Fantasque Sans Mono 12
scrollback_lines = 10000 scrollback_lines = 10000
search_wrap = true search_wrap = true
icon_name = utilities-terminal icon_name = utilities-terminal
geometry = 745x475 geometry = 740x500
scrollback_lines = 15000 scrollback_lines = 15000
clickable_url = true clickable_url = true
cursor_blink = system cursor_blink = system

View File

@ -11,7 +11,7 @@ font = {{.Data.terminal_font}}
scrollback_lines = 10000 scrollback_lines = 10000
search_wrap = true search_wrap = true
icon_name = utilities-terminal icon_name = utilities-terminal
geometry = 745x475 geometry = 740x500
scrollback_lines = 15000 scrollback_lines = 15000
clickable_url = true clickable_url = true
cursor_blink = system cursor_blink = system

View File

@ -3,18 +3,18 @@
#------------------------------------- #-------------------------------------
# Backgrounds # Backgrounds
# Background 1: Active task # Background 1: Active task
rounded = 4 rounded = 0
border_width = 3 border_width = 3
border_sides = T border_sides = T
background_color = #888888 0 background_color = #888888 0
border_color = #1793d1 100 border_color = #1793d1 100
background_color_hover = #0028fe 22 background_color_hover = #888888 20
border_color_hover = #1793d1 100 border_color_hover = #1793d1 100
background_color_pressed = #888888 0 background_color_pressed = #888888 20
border_color_pressed = #1793d1 100 border_color_pressed = #1793d1 100
# Background 2: Default task, Iconified task # Background 2: Default task, Iconified task
rounded = 4 rounded = 0
border_width = 0 border_width = 0
border_sides = TBLR border_sides = TBLR
background_color = #000000 0 background_color = #000000 0
@ -25,52 +25,52 @@ background_color_pressed = #888888 20
border_color_pressed = #888888 20 border_color_pressed = #888888 20
# Background 3: Urgent task # Background 3: Urgent task
rounded = 4 rounded = 0
border_width = 2 border_width = 3
border_sides = T border_sides = T
background_color = #888888 0 background_color = #888888 0
border_color = #e64141 100 border_color = #e64141 100
background_color_hover = #888888 0 background_color_hover = #888888 20
border_color_hover = #e64141 100 border_color_hover = #e64141 100
background_color_pressed = #888888 0 background_color_pressed = #888888 20
border_color_pressed = #e64141 100 border_color_pressed = #e64141 100
# Background 4: Battery, Clock, Inactive desktop name, Inactive taskbar, Launcher, Launcher icon, Systray # Background 4: Inactive desktop name, Inactive taskbar
rounded = 4 rounded = 0
border_width = 2 border_width = 0
border_sides = LR border_sides = LR
background_color = #2b303b 78 background_color = #2b303b 80
border_color = #000000 0 border_color = #000000 0
background_color_hover = #0112f0 14 background_color_hover = #888888 20
border_color_hover = #000000 0 border_color_hover = #000000 0
background_color_pressed = #0023ff 20 background_color_pressed = #888888 20
border_color_pressed = #000000 0 border_color_pressed = #000000 0
# Background 5: Active desktop name, Active taskbar # Background 5: Active desktop name, Active taskbar, Battery, Button, Clock, Launcher, Systray
rounded = 4 rounded = 0
border_width = 2 border_width = 0
border_sides = LR border_sides = LR
background_color = #35415d 86 background_color = #2b303b 90
border_color = #d8d8d8 0 border_color = #d8d8d8 0
background_color_hover = #d8d8d8 8 background_color_hover = #d8d8d8 0
border_color_hover = #d8d8d8 0 border_color_hover = #d8d8d8 0
background_color_pressed = #d8d8d8 8 background_color_pressed = #d8d8d8 0
border_color_pressed = #d8d8d8 0 border_color_pressed = #d8d8d8 0
# Background 6: Tooltip # Background 6: Tooltip
rounded = 4 rounded = 0
border_width = 0 border_width = 0
border_sides = TBLR border_sides = TBLR
background_color = #222222 90 background_color = #2b303b 100
border_color = #222222 90 border_color = #222222 90
background_color_hover = #222222 90 background_color_hover = #2b303b 100
border_color_hover = #222222 90 border_color_hover = #222222 90
background_color_pressed = #222222 90 background_color_pressed = #2b303b 100
border_color_pressed = #222222 90 border_color_pressed = #222222 90
#------------------------------------- #-------------------------------------
# Panel # Panel
panel_items = PLTSC panel_items = PLTC
panel_size = 100% 30 panel_size = 100% 30
panel_margin = 0 0 panel_margin = 0 0
panel_padding = 0 0 0 panel_padding = 0 0 0
@ -97,17 +97,17 @@ mouse_pressed_icon_asb = 100 0 0
# Taskbar # Taskbar
taskbar_mode = multi_desktop taskbar_mode = multi_desktop
taskbar_hide_if_empty = 1 taskbar_hide_if_empty = 1
taskbar_padding = 6 0 6 taskbar_padding = 0 0 0
taskbar_background_id = 4 taskbar_background_id = 4
taskbar_active_background_id = 5 taskbar_active_background_id = 5
taskbar_name = 1 taskbar_name = 0
taskbar_hide_inactive_tasks = 0 taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 1 taskbar_hide_different_monitor = 1
taskbar_hide_different_desktop = 0 taskbar_hide_different_desktop = 0
taskbar_always_show_all_desktop_tasks = 0 taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 2 0 taskbar_name_padding = 4 4
taskbar_name_background_id = 4 taskbar_name_background_id = 0
taskbar_name_active_background_id = 5 taskbar_name_active_background_id = 0
taskbar_name_font = Ubuntu 10 taskbar_name_font = Ubuntu 10
taskbar_name_font_color = #828282 100 taskbar_name_font_color = #828282 100
taskbar_name_active_font_color = #a0a0bd 100 taskbar_name_active_font_color = #a0a0bd 100
@ -122,7 +122,7 @@ task_icon = 1
task_centered = 1 task_centered = 1
urgent_nb_of_blink = 20 urgent_nb_of_blink = 20
task_maximum_size = 36 30 task_maximum_size = 36 30
task_padding = 4 3 2 task_padding = 6 2 4
task_font = Ubuntu 10 task_font = Ubuntu 10
task_tooltip = 1 task_tooltip = 1
task_font_color = #828282 60 task_font_color = #828282 60
@ -138,15 +138,15 @@ task_active_background_id = 1
task_urgent_background_id = 3 task_urgent_background_id = 3
task_iconified_background_id = 2 task_iconified_background_id = 2
mouse_left = toggle_iconify mouse_left = toggle_iconify
mouse_middle = none mouse_middle = close
mouse_right = close mouse_right = none
mouse_scroll_up = toggle mouse_scroll_up = toggle
mouse_scroll_down = iconify mouse_scroll_down = iconify
#------------------------------------- #-------------------------------------
# System tray (notification area) # System tray (notification area)
systray_padding = 8 2 4 systray_padding = 8 2 4
systray_background_id = 4 systray_background_id = 5
systray_sort = right2left systray_sort = right2left
systray_icon_size = 16 systray_icon_size = 16
systray_icon_asb = 100 0 0 systray_icon_asb = 100 0 0
@ -156,14 +156,14 @@ systray_name_filter =
#------------------------------------- #-------------------------------------
# Launcher # Launcher
launcher_padding = 5 0 5 launcher_padding = 5 0 5
launcher_background_id = 4 launcher_background_id = 5
launcher_icon_background_id = 4 launcher_icon_background_id = 0
launcher_icon_size = 24 launcher_icon_size = 24
launcher_icon_asb = 100 0 0 launcher_icon_asb = 100 0 0
launcher_icon_theme_override = 0 launcher_icon_theme_override = 0
startup_notifications = 1 startup_notifications = 1
launcher_tooltip = 1 launcher_tooltip = 1
launcher_item_app = /usr/share/applications/thunar-settings.desktop launcher_item_app = /usr/share/applications/exo-file-manager.desktop
launcher_item_app = /usr/share/applications/exo-terminal-emulator.desktop launcher_item_app = /usr/share/applications/exo-terminal-emulator.desktop
launcher_item_app = /usr/share/applications/geany.desktop launcher_item_app = /usr/share/applications/geany.desktop
launcher_item_app = /usr/share/applications/exo-web-browser.desktop launcher_item_app = /usr/share/applications/exo-web-browser.desktop
@ -178,7 +178,7 @@ time2_timezone =
time2_font = Ubuntu Light 0 time2_font = Ubuntu Light 0
clock_font_color = #ffffff 100 clock_font_color = #ffffff 100
clock_padding = 10 4 clock_padding = 10 4
clock_background_id = 4 clock_background_id = 5
clock_tooltip = clock_tooltip =
clock_tooltip_timezone = clock_tooltip_timezone =
clock_lclick_command = gsimplecal clock_lclick_command = gsimplecal
@ -199,9 +199,9 @@ battery_font_color = #b5b5b5 100
bat1_format = bat1_format =
bat2_format = bat2_format =
battery_padding = 4 2 battery_padding = 4 2
battery_background_id = 4 battery_background_id = 5
battery_hide = 101 battery_hide = 101
battery_lclick_command = battery_lclick_command = xfce4-power-manager-settings
battery_rclick_command = xfce4-power-manager-settings battery_rclick_command = xfce4-power-manager-settings
battery_mclick_command = battery_mclick_command =
battery_uwheel_command = battery_uwheel_command =
@ -209,16 +209,28 @@ battery_dwheel_command =
ac_connected_cmd = ac_connected_cmd =
ac_disconnected_cmd = ac_disconnected_cmd =
#-------------------------------------
# Button 1
button = new
button_icon = /usr/share/icons/ArchLabs-Dark/32x32/places/distributor-logo-archlabs.png
button_text =
button_lclick_command= jgmenu_run lx
button_rclick_command= exo-open ~/.config/jgmenu/jgmenurc
button_mclick_command=
button_uwheel_command=
button_dwheel_command=
button_font_color = #000000 100
button_padding = 8 2
button_background_id = 5
button_centered = 1
button_max_icon_size = 22
#------------------------------------- #-------------------------------------
# Tooltip # Tooltip
tooltip_show_timeout = 0 tooltip_show_timeout = 0
tooltip_hide_timeout = 0 tooltip_hide_timeout = 0
tooltip_padding = 2 2 tooltip_padding = 10 6
tooltip_background_id = 6 tooltip_background_id = 6
tooltip_font_color = #d8d8d8 100 tooltip_font_color = #d8d8d8 100
tooltip_font = Ubuntu 10 tooltip_font = Ubuntu 10
button = new
button_icon = /usr/share/icons/ArchLabs-Dark/32x32/places/distributor-logo-archlabs.png
button_max_icon_size = 22
button_lclick_command= jgmenu_run lx

View File

@ -3,18 +3,18 @@
#------------------------------------- #-------------------------------------
# Backgrounds # Backgrounds
# Background 1: Active task # Background 1: Active task
rounded = 4 rounded = 0
border_width = 3 border_width = 3
border_sides = T border_sides = T
background_color = #888888 0 background_color = #888888 0
border_color = #1793d1 100 border_color = #1793d1 100
background_color_hover = #0028fe 22 background_color_hover = #888888 20
border_color_hover = #1793d1 100 border_color_hover = #1793d1 100
background_color_pressed = #888888 0 background_color_pressed = #888888 20
border_color_pressed = #1793d1 100 border_color_pressed = #1793d1 100
# Background 2: Default task, Iconified task # Background 2: Default task, Iconified task
rounded = 4 rounded = 0
border_width = 0 border_width = 0
border_sides = TBLR border_sides = TBLR
background_color = #000000 0 background_color = #000000 0
@ -25,52 +25,52 @@ background_color_pressed = #888888 20
border_color_pressed = #888888 20 border_color_pressed = #888888 20
# Background 3: Urgent task # Background 3: Urgent task
rounded = 4 rounded = 0
border_width = 2 border_width = 3
border_sides = T border_sides = T
background_color = #888888 0 background_color = #888888 0
border_color = #e64141 100 border_color = #e64141 100
background_color_hover = #888888 0 background_color_hover = #888888 20
border_color_hover = #e64141 100 border_color_hover = #e64141 100
background_color_pressed = #888888 0 background_color_pressed = #888888 20
border_color_pressed = #e64141 100 border_color_pressed = #e64141 100
# Background 4: Battery, Clock, Inactive desktop name, Inactive taskbar, Launcher, Launcher icon, Systray # Background 4: Inactive desktop name, Inactive taskbar
rounded = 4 rounded = 0
border_width = 2 border_width = 0
border_sides = LR border_sides = LR
background_color = #2b303b 78 background_color = #2b303b 80
border_color = #000000 0 border_color = #000000 0
background_color_hover = #0112f0 14 background_color_hover = #888888 20
border_color_hover = #000000 0 border_color_hover = #000000 0
background_color_pressed = #0023ff 20 background_color_pressed = #888888 20
border_color_pressed = #000000 0 border_color_pressed = #000000 0
# Background 5: Active desktop name, Active taskbar # Background 5: Active desktop name, Active taskbar, Battery, Button, Clock, Launcher, Systray
rounded = 4 rounded = 0
border_width = 2 border_width = 0
border_sides = LR border_sides = LR
background_color = #35415d 86 background_color = #2b303b 90
border_color = #d8d8d8 0 border_color = #d8d8d8 0
background_color_hover = #d8d8d8 8 background_color_hover = #d8d8d8 0
border_color_hover = #d8d8d8 0 border_color_hover = #d8d8d8 0
background_color_pressed = #d8d8d8 8 background_color_pressed = #d8d8d8 0
border_color_pressed = #d8d8d8 0 border_color_pressed = #d8d8d8 0
# Background 6: Tooltip # Background 6: Tooltip
rounded = 4 rounded = 0
border_width = 0 border_width = 0
border_sides = TBLR border_sides = TBLR
background_color = #222222 90 background_color = #2b303b 100
border_color = #222222 90 border_color = #222222 90
background_color_hover = #222222 90 background_color_hover = #2b303b 100
border_color_hover = #222222 90 border_color_hover = #222222 90
background_color_pressed = #222222 90 background_color_pressed = #2b303b 100
border_color_pressed = #222222 90 border_color_pressed = #222222 90
#------------------------------------- #-------------------------------------
# Panel # Panel
panel_items = PLTSC panel_items = PLTC
panel_size = 100% 30 panel_size = 100% 30
panel_margin = 0 0 panel_margin = 0 0
panel_padding = 0 0 0 panel_padding = 0 0 0
@ -97,17 +97,17 @@ mouse_pressed_icon_asb = 100 0 0
# Taskbar # Taskbar
taskbar_mode = multi_desktop taskbar_mode = multi_desktop
taskbar_hide_if_empty = 1 taskbar_hide_if_empty = 1
taskbar_padding = 6 0 6 taskbar_padding = 0 0 0
taskbar_background_id = 4 taskbar_background_id = 4
taskbar_active_background_id = 5 taskbar_active_background_id = 5
taskbar_name = 1 taskbar_name = 0
taskbar_hide_inactive_tasks = 0 taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 1 taskbar_hide_different_monitor = 1
taskbar_hide_different_desktop = 0 taskbar_hide_different_desktop = 0
taskbar_always_show_all_desktop_tasks = 0 taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 2 0 taskbar_name_padding = 4 4
taskbar_name_background_id = 4 taskbar_name_background_id = 0
taskbar_name_active_background_id = 5 taskbar_name_active_background_id = 0
taskbar_name_font = Ubuntu 10 taskbar_name_font = Ubuntu 10
taskbar_name_font_color = #828282 100 taskbar_name_font_color = #828282 100
taskbar_name_active_font_color = #a0a0bd 100 taskbar_name_active_font_color = #a0a0bd 100
@ -122,7 +122,7 @@ task_icon = 1
task_centered = 1 task_centered = 1
urgent_nb_of_blink = 20 urgent_nb_of_blink = 20
task_maximum_size = 36 30 task_maximum_size = 36 30
task_padding = 4 3 2 task_padding = 6 2 4
task_font = Ubuntu 10 task_font = Ubuntu 10
task_tooltip = 1 task_tooltip = 1
task_font_color = #828282 60 task_font_color = #828282 60
@ -138,15 +138,15 @@ task_active_background_id = 1
task_urgent_background_id = 3 task_urgent_background_id = 3
task_iconified_background_id = 2 task_iconified_background_id = 2
mouse_left = toggle_iconify mouse_left = toggle_iconify
mouse_middle = none mouse_middle = close
mouse_right = close mouse_right = none
mouse_scroll_up = toggle mouse_scroll_up = toggle
mouse_scroll_down = iconify mouse_scroll_down = iconify
#------------------------------------- #-------------------------------------
# System tray (notification area) # System tray (notification area)
systray_padding = 8 2 4 systray_padding = 8 2 4
systray_background_id = 4 systray_background_id = 5
systray_sort = right2left systray_sort = right2left
systray_icon_size = 16 systray_icon_size = 16
systray_icon_asb = 100 0 0 systray_icon_asb = 100 0 0
@ -156,14 +156,14 @@ systray_name_filter =
#------------------------------------- #-------------------------------------
# Launcher # Launcher
launcher_padding = 5 0 5 launcher_padding = 5 0 5
launcher_background_id = 4 launcher_background_id = 5
launcher_icon_background_id = 4 launcher_icon_background_id = 0
launcher_icon_size = 24 launcher_icon_size = 24
launcher_icon_asb = 100 0 0 launcher_icon_asb = 100 0 0
launcher_icon_theme_override = 0 launcher_icon_theme_override = 0
startup_notifications = 1 startup_notifications = 1
launcher_tooltip = 1 launcher_tooltip = 1
launcher_item_app = /usr/share/applications/thunar-settings.desktop launcher_item_app = /usr/share/applications/exo-file-manager.desktop
launcher_item_app = /usr/share/applications/exo-terminal-emulator.desktop launcher_item_app = /usr/share/applications/exo-terminal-emulator.desktop
launcher_item_app = /usr/share/applications/geany.desktop launcher_item_app = /usr/share/applications/geany.desktop
launcher_item_app = /usr/share/applications/exo-web-browser.desktop launcher_item_app = /usr/share/applications/exo-web-browser.desktop
@ -178,7 +178,7 @@ time2_timezone =
time2_font = Ubuntu Light 0 time2_font = Ubuntu Light 0
clock_font_color = #ffffff 100 clock_font_color = #ffffff 100
clock_padding = 10 4 clock_padding = 10 4
clock_background_id = 4 clock_background_id = 5
clock_tooltip = clock_tooltip =
clock_tooltip_timezone = clock_tooltip_timezone =
clock_lclick_command = gsimplecal clock_lclick_command = gsimplecal
@ -199,9 +199,9 @@ battery_font_color = #b5b5b5 100
bat1_format = bat1_format =
bat2_format = bat2_format =
battery_padding = 4 2 battery_padding = 4 2
battery_background_id = 4 battery_background_id = 5
battery_hide = 101 battery_hide = 101
battery_lclick_command = battery_lclick_command = xfce4-power-manager-settings
battery_rclick_command = xfce4-power-manager-settings battery_rclick_command = xfce4-power-manager-settings
battery_mclick_command = battery_mclick_command =
battery_uwheel_command = battery_uwheel_command =
@ -209,16 +209,28 @@ battery_dwheel_command =
ac_connected_cmd = ac_connected_cmd =
ac_disconnected_cmd = ac_disconnected_cmd =
#-------------------------------------
# Button 1
button = new
button_icon = /usr/share/icons/ArchLabs-Dark/32x32/places/distributor-logo-archlabs.png
button_text =
button_lclick_command= jgmenu_run lx
button_rclick_command= exo-open ~/.config/jgmenu/jgmenurc
button_mclick_command=
button_uwheel_command=
button_dwheel_command=
button_font_color = #000000 100
button_padding = 8 2
button_background_id = 5
button_centered = 1
button_max_icon_size = 22
#------------------------------------- #-------------------------------------
# Tooltip # Tooltip
tooltip_show_timeout = 0 tooltip_show_timeout = 0
tooltip_hide_timeout = 0 tooltip_hide_timeout = 0
tooltip_padding = 2 2 tooltip_padding = 10 6
tooltip_background_id = 6 tooltip_background_id = 6
tooltip_font_color = #d8d8d8 100 tooltip_font_color = #d8d8d8 100
tooltip_font = Ubuntu 10 tooltip_font = Ubuntu 10
button = new
button_icon = /usr/share/icons/ArchLabs-Dark/32x32/places/distributor-logo-archlabs.png
button_max_icon_size = 22
button_lclick_command= jgmenu_run lx

View File

@ -1,19 +0,0 @@
[xfdesktop-version-4.10.3+-rcfile_format]
4.10.3+=true
[DEBC8E9CBC8E6EB9]
row=3
col=0
[Trash]
row=0
col=0
[/]
row=1
col=0
[/home/smoke]
row=2
col=0

View File

@ -1,15 +0,0 @@
[xfdesktop-version-4.10.3+-rcfile_format]
4.10.3+=true
[Trash]
row=0
col=0
[/]
row=1
col=0
[/home/smoke]
row=2
col=0

View File

@ -1,15 +0,0 @@
[xfdesktop-version-4.10.3+-rcfile_format]
4.10.3+=true
[Trash]
row=0
col=0
[/]
row=1
col=0
[/home/smoke]
row=2
col=0

View File

@ -1,7 +1,7 @@
favorites=exo-terminal-emulator.desktop,exo-file-manager.desktop,exo-mail-reader.desktop,exo-web-browser.desktop favorites=exo-terminal-emulator.desktop,exo-file-manager.desktop,exo-mail-reader.desktop,exo-web-browser.desktop
recent=exo-web-browser.desktop,exo-mail-reader.desktop,exo-file-manager.desktop,exo-terminal-emulator.desktop recent=exo-web-browser.desktop,exo-mail-reader.desktop,exo-file-manager.desktop,exo-terminal-emulator.desktop
button-title=ArchLabs button-title=ArchLabs
button-icon=/etc/skel/.config/neofetch/archlabs-dark.png button-icon=/usr/share/icons/ArchLabs-Dark/64x64/places/distributor-logo-archlabs.png
button-single-row=false button-single-row=false
show-button-title=true show-button-title=true
show-button-icon=true show-button-icon=true

View File

@ -1,53 +0,0 @@
; xfce4-terminal GtkAccelMap rc-file -*- scheme -*-
; this file is an automated accelerator map dump
;
(gtk_accel_path "<Actions>/terminal-window/goto-tab-4" "<Alt>4")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-3" "<Alt>3")
; (gtk_accel_path "<Actions>/terminal-window/file-menu" "")
; (gtk_accel_path "<Actions>/terminal-window/close-other-tabs" "")
; (gtk_accel_path "<Actions>/terminal-window/search" "<Primary><Shift>f")
; (gtk_accel_path "<Actions>/terminal-window/next-tab" "<Primary>Page_Down")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-1" "<Alt>1")
; (gtk_accel_path "<Actions>/terminal-window/show-menubar" "")
; (gtk_accel_path "<Actions>/terminal-window/zoom-reset" "<Primary>0")
; (gtk_accel_path "<Actions>/terminal-window/terminal-menu" "")
; (gtk_accel_path "<Actions>/terminal-window/close-window" "<Primary><Shift>q")
; (gtk_accel_path "<Actions>/terminal-window/close-tab" "<Primary><Shift>w")
; (gtk_accel_path "<Actions>/terminal-window/save-contents" "")
; (gtk_accel_path "<Actions>/terminal-window/new-tab" "<Primary><Shift>t")
; (gtk_accel_path "<Actions>/terminal-window/view-menu" "")
; (gtk_accel_path "<Actions>/terminal-window/show-toolbar" "")
; (gtk_accel_path "<Actions>/terminal-window/paste" "<Primary><Shift>v")
; (gtk_accel_path "<Actions>/terminal-window/copy" "<Primary><Shift>c")
; (gtk_accel_path "<Actions>/terminal-window/edit-menu" "")
; (gtk_accel_path "<Actions>/terminal-window/fullscreen" "F11")
; (gtk_accel_path "<Actions>/terminal-window/read-only" "")
; (gtk_accel_path "<Actions>/terminal-window/detach-tab" "<Primary><Shift>d")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-8" "<Alt>8")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-2" "<Alt>2")
; (gtk_accel_path "<Actions>/terminal-window/prev-tab" "<Primary>Page_Up")
; (gtk_accel_path "<Actions>/terminal-window/move-tab-left" "<Primary><Shift>Page_Up")
; (gtk_accel_path "<Actions>/terminal-window/zoom-in" "<Primary>plus")
; (gtk_accel_path "<Actions>/terminal-window/search-prev" "")
; (gtk_accel_path "<Actions>/terminal-window/reset-and-clear" "")
; (gtk_accel_path "<Actions>/terminal-window/about" "")
; (gtk_accel_path "<Actions>/terminal-window/search-next" "")
(gtk_accel_path "<Actions>/terminal-window/toggle-menubar" "F10")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-7" "<Alt>7")
; (gtk_accel_path "<Actions>/terminal-window/select-all" "<Primary><Shift>a")
; (gtk_accel_path "<Actions>/terminal-window/help-menu" "")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-9" "<Alt>9")
; (gtk_accel_path "<Actions>/terminal-window/show-borders" "")
; (gtk_accel_path "<Actions>/terminal-window/preferences" "")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-6" "<Alt>6")
; (gtk_accel_path "<Actions>/terminal-window/contents" "F1")
; (gtk_accel_path "<Actions>/terminal-window/new-window" "<Primary><Shift>n")
; (gtk_accel_path "<Actions>/terminal-window/move-tab-right" "<Primary><Shift>Page_Down")
; (gtk_accel_path "<Actions>/terminal-window/zoom-out" "<Primary>minus")
; (gtk_accel_path "<Actions>/terminal-window/set-title" "<Primary><Shift>s")
; (gtk_accel_path "<Actions>/terminal-window/paste-selection" "")
; (gtk_accel_path "<Actions>/terminal-window/undo-close-tab" "")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-5" "<Alt>5")
; (gtk_accel_path "<Actions>/terminal-window/zoom-menu" "")
; (gtk_accel_path "<Actions>/terminal-window/reset" "")
; (gtk_accel_path "<Actions>/terminal-window/tabs-menu" "")

View File

@ -1,53 +0,0 @@
; xfce4-terminal GtkAccelMap rc-file -*- scheme -*-
; this file is an automated accelerator map dump
;
(gtk_accel_path "<Actions>/terminal-window/goto-tab-4" "<Alt>4")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-3" "<Alt>3")
; (gtk_accel_path "<Actions>/terminal-window/file-menu" "")
; (gtk_accel_path "<Actions>/terminal-window/close-other-tabs" "")
; (gtk_accel_path "<Actions>/terminal-window/search" "<Primary><Shift>f")
; (gtk_accel_path "<Actions>/terminal-window/next-tab" "<Primary>Page_Down")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-1" "<Alt>1")
; (gtk_accel_path "<Actions>/terminal-window/show-menubar" "")
; (gtk_accel_path "<Actions>/terminal-window/zoom-reset" "<Primary>0")
; (gtk_accel_path "<Actions>/terminal-window/terminal-menu" "")
; (gtk_accel_path "<Actions>/terminal-window/close-window" "<Primary><Shift>q")
; (gtk_accel_path "<Actions>/terminal-window/close-tab" "<Primary><Shift>w")
; (gtk_accel_path "<Actions>/terminal-window/save-contents" "")
; (gtk_accel_path "<Actions>/terminal-window/new-tab" "<Primary><Shift>t")
; (gtk_accel_path "<Actions>/terminal-window/view-menu" "")
; (gtk_accel_path "<Actions>/terminal-window/show-toolbar" "")
; (gtk_accel_path "<Actions>/terminal-window/paste" "<Primary><Shift>v")
; (gtk_accel_path "<Actions>/terminal-window/copy" "<Primary><Shift>c")
; (gtk_accel_path "<Actions>/terminal-window/edit-menu" "")
; (gtk_accel_path "<Actions>/terminal-window/fullscreen" "F11")
; (gtk_accel_path "<Actions>/terminal-window/read-only" "")
; (gtk_accel_path "<Actions>/terminal-window/detach-tab" "<Primary><Shift>d")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-8" "<Alt>8")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-2" "<Alt>2")
; (gtk_accel_path "<Actions>/terminal-window/prev-tab" "<Primary>Page_Up")
; (gtk_accel_path "<Actions>/terminal-window/move-tab-left" "<Primary><Shift>Page_Up")
; (gtk_accel_path "<Actions>/terminal-window/zoom-in" "<Primary>plus")
; (gtk_accel_path "<Actions>/terminal-window/search-prev" "")
; (gtk_accel_path "<Actions>/terminal-window/reset-and-clear" "")
; (gtk_accel_path "<Actions>/terminal-window/about" "")
; (gtk_accel_path "<Actions>/terminal-window/search-next" "")
(gtk_accel_path "<Actions>/terminal-window/toggle-menubar" "F10")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-7" "<Alt>7")
; (gtk_accel_path "<Actions>/terminal-window/select-all" "<Primary><Shift>a")
; (gtk_accel_path "<Actions>/terminal-window/help-menu" "")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-9" "<Alt>9")
; (gtk_accel_path "<Actions>/terminal-window/show-borders" "")
; (gtk_accel_path "<Actions>/terminal-window/preferences" "")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-6" "<Alt>6")
; (gtk_accel_path "<Actions>/terminal-window/contents" "F1")
; (gtk_accel_path "<Actions>/terminal-window/new-window" "<Primary><Shift>n")
; (gtk_accel_path "<Actions>/terminal-window/move-tab-right" "<Primary><Shift>Page_Down")
; (gtk_accel_path "<Actions>/terminal-window/zoom-out" "<Primary>minus")
; (gtk_accel_path "<Actions>/terminal-window/set-title" "<Primary><Shift>s")
; (gtk_accel_path "<Actions>/terminal-window/paste-selection" "")
; (gtk_accel_path "<Actions>/terminal-window/undo-close-tab" "")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-5" "<Alt>5")
; (gtk_accel_path "<Actions>/terminal-window/zoom-menu" "")
; (gtk_accel_path "<Actions>/terminal-window/reset" "")
; (gtk_accel_path "<Actions>/terminal-window/tabs-menu" "")

View File

@ -1,13 +1,14 @@
#!/bin/sh #!/bin/sh
# #
# ~/.xinitrc # ~/.xinitrc
# # Executed by startx
# Executed by startx (run your window manager from here) # By calling this with arguments we can start different sessions
# eg. startx ~/.xinitrc i3 or startx ~/.xinitrc bspwm
# simply using startx, openbox is set as the default
session=${1:-openbox}
XDG_CONFIG_HOME="$HOME/.config" # source files in /etc/X11/xinit/xinitrc.d
export XDG_CONFIG_HOME
if [ -d /etc/X11/xinit/xinitrc.d ]; then if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f" [ -x "$f" ] && . "$f"
@ -15,8 +16,28 @@ if [ -d /etc/X11/xinit/xinitrc.d ]; then
unset f unset f
fi fi
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then # this must be before the 'exec' command
eval `dbus-launch --sh-syntax --exit-with-session` # it sources ~/.xprofile for additional settings
fi [ -f ~/.xprofile ] && . ~/.xprofile
exec openbox-session # start the session
case $session in
i3|i3wm)
exec i3
;;
bsp|bspwm)
exec bspwm
;;
awesome)
exec awesome
;;
xfce|xfce4)
exec startxfce4
;;
openbox|openbox-session)
exec openbox-session
;;
*)
exec $1
;;
esac

5
home/.xprofile Normal file → Executable file
View File

@ -1,14 +1,17 @@
# .xprofile # .xprofile
# lightdm sources this file at boot
# as well as our own xinitrc with startx
XDG_CONFIG_HOME=$HOME/.config XDG_CONFIG_HOME=$HOME/.config
export XDG_CONFIG_HOME export XDG_CONFIG_HOME
# include ~/bin in path
export PATH=$HOME/bin:$PATH export PATH=$HOME/bin:$PATH
# include sbin in PATH # include sbin in PATH
if [ -d "/sbin" ] ; then if [ -d "/sbin" ] ; then
PATH="/sbin:$PATH" PATH="/sbin:$PATH"
fi fi
if [ -d "/usr/sbin" ] ; then if [ -d "/usr/sbin" ] ; then
PATH="/usr/sbin:$PATH" PATH="/usr/sbin:$PATH"
fi fi

View File

@ -1,38 +1,7 @@
#!/bin/sh #!/bin/sh
#
# executed by xinit when using startx
userresources=$HOME/.Xresources # make sure to be runnning in authenticated session with logind
usermodmap=$HOME/.Xmodmap # this will make it so you cannot bypass screenlock by switching terminals
sysresources=/etc/X11/xinit/.Xresources exec /usr/bin/Xorg -nolisten tcp "$@" vt$XDG_VTNR
sysmodmap=/etc/X11/xinit/.Xmodmap
export PATH=$HOME/bin:$PATH
XDG_CONFIG_HOME="$HOME/.config"
export XDG_CONFIG_HOME
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec openbox-session

View File

@ -9,7 +9,7 @@ fi
# Left click # Left click
if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then
xdg-open "${TRASH_DIRECTORY}/files" xdg-open "${TRASH_DIRECTORY}/files"
# Right click # Right click
elif [[ "${BLOCK_BUTTON}" -eq 3 ]]; then elif [[ "${BLOCK_BUTTON}" -eq 3 ]]; then
# Delete all files permanently (unlink them) # Delete all files permanently (unlink them)
rm -r "${TRASH_DIRECTORY}/files" rm -r "${TRASH_DIRECTORY}/files"

View File

@ -1,3 +1,8 @@
#!/bin/bash #!/usr/bin/env bash
rofi -no-config -modi run,drun,window -show drun -eh 1 -line-padding 4 -show-icons -drun-icon-theme "ArchLabs-Light" -padding 50 -sidebar-mode -font "Ubuntu 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 \
-show-icons -drun-icon-theme "ArchLabs-Light" \
-font "Ubuntu 11" -color-enabled \
-color-window "#2b303b, #8fa1b3, #2b303b" \
-color-normal "#2b303b, #8fa1b3, #2b303b, #8fa1b3, #2b303b"

View File

@ -1,3 +1,8 @@
#!/bin/bash #!/usr/bin/env bash
rofi -no-config -modi run,drun,window -show drun -eh 1 -line-padding 4 -show-icons -drun-icon-theme "ArchLabs-Light" -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}}" rofi -no-config -modi run,drun,window -show drun \
-eh 1 -line-padding 4 -padding 50 -sidebar-mode \
-show-icons -drun-icon-theme "ArchLabs-Light" \
-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

@ -1,32 +1,26 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [[ "$(xprop -root | grep -i "openbox")" > /dev/null ]]; then question=$(echo " lock| logout| reboot| shutdown" | rofi -sep "|" \
CUR_WM="openbox" -dmenu -i -p 'System: ' "" -width 20 -hide-scrollbar -font "Ubuntu 11" \
else -eh 1 -line-padding 4 -padding 20 -no-config -lines 4 -color-enabled \
CUR_WM=$(xprop -root | grep "_NET_WM_NAME(UTF8_STRING)" | cut -d " " -f 3 | sed 's/"//g' | awk '{print tolower($0)}') -color-window "#2b303b, #8fa1b3, #2b303b" \
fi -color-normal "#2b303b, #8fa1b3, #2b303b, #8fa1b3, #2b303b")
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") case $question in
*lock)
if [[ "$ANS" == *lock ]]; then
i3lock-fancy i3lock-fancy
elif [[ "$ANS" == *logout ]]; then ;;
if [[ "$CUR_WM" == "i3" ]]; then *logout)
i3-msg exit session-logout
elif [[ "$CUR_WM" == "bspwm" ]]; then ;;
for window_id in $(bspc query -W); do *reboot)
bspc window $window_id -c
done
killall sxhkd
bspc quit
elif [[ "$CUR_WM" == "openbox" ]]; then
openbox --exit
else
echo "Unknown WM... Exiting"
exit 1
fi
elif [[ "$ANS" == *reboot ]]; then
systemctl reboot systemctl reboot
elif [[ "$ANS" == *shutdown ]]; then ;;
*shutdown)
systemctl poweroff systemctl poweroff
fi ;;
*)
: # do nothing on wrong response
;;
esac

View File

@ -1,32 +1,25 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [[ "$(xprop -root | grep -i "openbox")" > /dev/null ]]; then question=$(echo " lock| logout| reboot| shutdown" | rofi -sep "|" \
CUR_WM="openbox" -dmenu -i -p 'System: ' "" -width 20 -hide-scrollbar -font "Ubuntu 11" \
else -eh 1 -line-padding 4 -padding 20 -no-config -lines 4 -color-enabled \
CUR_WM=$(xprop -root | grep "_NET_WM_NAME(UTF8_STRING)" | cut -d " " -f 3 | sed 's/"//g' | awk '{print tolower($0)}') -color-window "{{.Data.terminal_background}}, {{.Data.terminal_foreground}}, {{.Data.terminal_background}}" \
fi -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}}") case $question in
*lock)
if [[ "$ANS" == *lock ]]; then
i3lock-fancy i3lock-fancy
elif [[ "$ANS" == *logout ]]; then ;;
if [[ "$CUR_WM" == "i3" ]]; then *logout)
i3-msg exit session-logout
elif [[ "$CUR_WM" == "bspwm" ]]; then ;;
for window_id in $(bspc query -W); do *reboot)
bspc window $window_id -c
done
killall sxhkd
bspc quit
elif [[ "$CUR_WM" == "openbox" ]]; then
openbox --exit
else
echo "Unknown WM... Exiting"
exit 1
fi
elif [[ "$ANS" == *reboot ]]; then
systemctl reboot systemctl reboot
elif [[ "$ANS" == *shutdown ]]; then ;;
*shutdown)
systemctl poweroff systemctl poweroff
fi ;;
*)
: # do nothing on wrong response
;;
esac

36
home/bin/session-logout Executable file
View File

@ -0,0 +1,36 @@
#!/usr/bin/env bash
# check which wm were using, case insensitive
WMS=(bspwm i3 openbox)
for i in ${WMS[@]}; do
if [[ "$(wmctrl -m | grep -i name | awk '{print tolower($2)}')" == "$i" ]]; then
WM=$i && break
elif [[ "$(xprop -root -notype | grep "WM_NAME =" | tr -d '"' | awk '{print tolower($3)}')" == "$i" ]]; then
WM=$i && break
elif [[ "$(awk '{print tolower($0)}' <<< $XDG_CURRENT_DESKTOP)" == "$i" ]]; then
WM=$i && break
fi
done
# do the logout
case $WM in
i3)
i3-msg exit
;;
bspwm)
for window_id in $(bspc query -W); do
bspc window $window_id -c
done
killall sxhkd
bspc quit
;;
openbox)
openbox --exit
;;
*)
echo "WM not yet supported.. Exiting"
exit 0
;;
esac

View File

@ -1,44 +1,53 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#
# Polybar launcher script written by Nathaniel Maia for use in ArchLabs # Polybar launcher script written by Nathaniel Maia for use in ArchLabs
# Will launch bars depending on WM # Will launch bars depending on WM
# Can also be used to reload openbox session with [--reload] or [-r] # Can also be used to reload openbox session with [--reload] or [-r]
# Enter your bar names here (seperated by spaces) eg BARS=(bar bar1 my-bar) # Enter your bar names here (seperated by spaces) eg. BARS=(bar bar1 my-bar)
# This will be combined with CUR_WM eg. openbox-bar, bspwm-bar, i3-bar # This will be combined with CUR_WM in WMS below eg. openbox-bar, bspwm-bar1, i3-my-bar etc.
# by default it is set up in WM-BAR naming format
BARS=(bar) BARS=(bar)
CONFIG=$HOME/.config/polybar/config CONFIG=$HOME/.config/polybar/config
WMS=(bspwm i3 openbox)
HELP="\nUSAGE:\n\tstart-polybar [OPTIONS]
\nOPTIONS:\n\t--reload, -r\tIf running in openbox, will reload the session
\t--help, -h\tPrint this usage message and exit
\n\tWith no options the script will stop and reload polybar"
if [[ "$(xprop -root | grep -i "openbox")" > /dev/null ]]; then for i in ${WMS[@]}; do
CUR_WM="openbox" if [[ "$(wmctrl -m | grep -i name | awk '{print tolower($2)}')" == "$i" ]]; then
else WM=$i && break
CUR_WM=$(xprop -root | grep "_NET_WM_NAME(UTF8_STRING)" | cut -d " " -f 3 | sed 's/"//g' | awk '{print tolower($0)}') elif [[ "$(xprop -root -notype | grep "WM_NAME =" | tr -d '"' | awk '{print tolower($3)}')" == "$i" ]]; then
fi WM=$i && break
elif [[ "$(awk '{print tolower($0)}' <<< $XDG_CURRENT_DESKTOP)" == "$i" ]]; then
WM=$i && break
fi
done
# Reload openbox session case "$@" in
if [[ $1 == "--reload" ]] && [[ $CUR_WM == "openbox" ]]; then *help|-h)
echo -e $HELP && exit 0
;;
*reload|-r)
if [[ "$CUR_WM" == "openbox" ]]; then
openbox --restart openbox --restart
al-compositor --restart al-compositor --restart && al-tint2restart
al-tint2restart fi
elif [[ $1 == "--reload" ]]; then ;;
echo "[WARN]: Option [--reload] is meant for Openbox..." *)
fi :
;;
esac
# Drop out if tint2 is running
if pgrep tint2 >/dev/null; then if pgrep tint2 >/dev/null; then
echo "Tint is running... Exiting" echo "Tint is running... Exiting" && exit 0
exit 0
else else
# Terminate already running Bars
while pgrep polybar >/dev/null; do while pgrep polybar >/dev/null; do
pkill polybar pkill polybar && sleep 0.5
sleep 0.5
done done
# Launch each bar in BARS=() above
echo "Using $CUR_WM... Launching Bars" echo "Using $CUR_WM... Launching Bars"
for bar in "${BARS[@]}"; do for bar in "${BARS[@]}"; do
polybar -r --config=$CONFIG ${CUR_WM}-$bar & polybar -r --config=$CONFIG ${CUR_WM}-$bar &

View File

@ -1,7 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
while pgrep polybar >/dev/null; do while pgrep polybar >/dev/null; do
killall -q polybar killall -q polybar && sleep 0.5
sleep 0.5
done done
echo "Bars stopped..." echo "Bars stopped..."

View File

@ -1,9 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# if the script is passed --toggle # if the script is passed --toggle
if [[ "$1" == *toggle* ]] && pgrep caffeine >/dev/null; then if [[ $1 == *toggle* ]] && pgrep caffeine >/dev/null; then
killall caffeine && exit 0 killall caffeine && exit 0
elif [[ "$1" == *toggle* ]]; then elif [[ $1 == *toggle* ]]; then
caffeine &>/dev/null && exit 0 caffeine &>/dev/null && exit 0
fi fi

View File

@ -9,8 +9,12 @@ elif [[ $1 == *toggle* ]]; then
al-compositor --start && exit 0 al-compositor --start && exit 0
fi fi
if pgrep compton >/dev/null; then while true; do
if pgrep compton >/dev/null; then
echo "$on" echo "$on"
else else
echo "%{F#888888}$off" echo "%{F#888888}$off"
fi fi
sleep 2
done

View File

@ -4,25 +4,29 @@ if [[ $1 = "--toggle" ]] || [[ $1 = "-t" ]]; then
if pgrep redshift >/dev/null; then if pgrep redshift >/dev/null; then
pkill redshift pkill redshift
else else
redshift & redshift-gtk &
fi fi
exit 0 exit 0
fi fi
icon="" icon=""
pgrep -x redshift &> /dev/null
if [[ $? -eq 0 ]]; then while true; do
pgrep -x redshift &> /dev/null
if [[ $? -eq 0 ]]; then
temp=$(redshift -p 2>/dev/null | grep temp | cut -d' ' -f3) temp=$(redshift -p 2>/dev/null | grep temp | cut -d' ' -f3)
temp=${temp//K/} temp=${temp//K/}
fi fi
if [[ -z $temp ]]; then if [[ -z $temp ]]; then
echo " $icon " # Greyed out (not running) echo " $icon " # Greyed out (not running)
elif [[ $temp -ge 5000 ]]; then elif [[ $temp -ge 5000 ]]; then
echo "%{F#8039A0} $icon " # Blue echo "%{F#8039A0} $icon " # Blue
elif [[ $temp -ge 4000 ]]; then elif [[ $temp -ge 4000 ]]; then
echo "%{F#F203F0} $icon " # Yellow echo "%{F#F203F0} $icon " # Yellow
else else
echo "%{F#FF5B6C} $icon " # Orange echo "%{F#FF5B6C} $icon " # Orange
fi fi
sleep 2
done

View File

@ -6,165 +6,127 @@
# Written by Nathaniel Maia <natemaia10@gmail.com> # Written by Nathaniel Maia <natemaia10@gmail.com>
# #
yes="y"
no="n"
REPO=' REPO='
[archlabs_repo] [archlabs_repo]
Server = https://archlabs.github.io/archlabs_repo/$arch Server = https://archlabs.github.io/archlabs_repo/$arch
Server = https://downloads.sourceforge.net/project/archlabs-repo/archlabs_repo/$arch' Server = https://downloads.sourceforge.net/project/archlabs-repo/archlabs_repo/$arch'
HFILES=("$HOME/bin" "$HOME/.config" "$HOME/.themes" "$HOME/.gtkrc-2.0"
"$HOME/.gorice" "$HOME/.Xresources" "$HOME/.Xresources.template"
"$HOME/.mozilla" "$HOME/.zshrc" "$HOME/.bashrc" "$HOME/.icons"
"$HOME/.local" "$HOME/.xprofile" "$HOME/.xserverrc" "$HOME/.xinitrc")
CFILES=("$HOME/.config/awesome" "$HOME/.config/jgmenu" "$HOME/.config/bspwm"
"$HOME/.config/dunst" "$HOME/.config/i3" "$HOME/.config/obmenu-generator"
"$HOME/.config/qt5ct" "$HOME/.config/Thunar" "$HOME/.config/conky"
"$HOME/.config/geany" "$HOME/.config/neofetch" "$HOME/.config/polybar"
"$HOME/.config/termite" "$HOME/.config/xfce4" "$HOME/.config/openbox"
"$HOME/.config/ob-autostart")
SFILES=('/etc/skel/bin' '/etc/skel/.config' '/etc/skel/.themes' '/etc/skel/.gorice'
'/etc/skel/.Xresources' '/etc/skel/.Xresources.template' '/etc/skel/.mozilla'
'/etc/skel/.zshrc' '/etc/skel/.bashrc' '/etc/skel/.icons' '/etc/skel/.local'
'/etc/skel/.xprofile' '/etc/skel/.xserverrc' '/etc/skel/.xinitrc' '/etc/skel/.gtkrc-2.0')
KEYS=('AEFB411B072836CD48FF0381AE252C284B5DBA5D' KEYS=('AEFB411B072836CD48FF0381AE252C284B5DBA5D'
'9E4F11C6A072942A7B3FD3B0B81EB14A09A25EB0' '9E4F11C6A072942A7B3FD3B0B81EB14A09A25EB0'
'35F52A02854DCCAEC9DD5CC410443C7F54B00041') '35F52A02854DCCAEC9DD5CC410443C7F54B00041')
curWM=$(wmctrl -m | grep Name | cut -d " " -f2)
yes="y"
no="n"
WMS=(bspwm i3 openbox)
for i in ${WMS[@]}; do
if [[ "$(wmctrl -m | grep -i name | awk '{print tolower($2)}')" == "$i" ]]; then
WM=$i && break
elif [[ "$(xprop -root -notype | grep "WM_NAME =" | tr -d '"' | awk '{print tolower($3)}')" == "$i" ]]; then
WM=$i && break
elif [[ "$(awk '{print tolower($0)}' <<< $XDG_CURRENT_DESKTOP)" == "$i" ]]; then
WM=$i && break
fi
done
# Loop until network connected # Loop until network connected
net=$(ping -c1 8.8.8.8 2>&1)
while ! [[ $net >/dev/null ]]; do while ! [[ $net >/dev/null ]]; do
net=$(ping -c1 8.8.8.8 2>&1) net=$(ping -c1 8.8.8.8 2>&1)
echo -e "Please Connect to a Network Before Continuing" echo -e "Please Connect to a Network Before Continuing"
clear; sleep 1 clear; sleep 1
done done
setupKeyring() { setupKeyring() {
sudo dirmngr </dev/null
clear sudo pacman-key --init
echo "############################################################################################ sudo pacman-key --populate archlinux
######## Setting up keyring & Adding repo to pacman.conf ######### for key in ${KEYS[@]}; do
############################################################################################"
sleep 2
# import each key and populate the keyring
sudo pacman-key --init
sudo pacman-key --populate archlinux
for key in "${KEYS[@]}"; do
if ! sudo pacman-key --list-keys | grep $key > /dev/null 2>&1; then if ! sudo pacman-key --list-keys | grep $key > /dev/null 2>&1; then
gpg --receive-keys $key gpg --receive-keys $key
sudo pacman-key -r $key sudo pacman-key -r $key
fi fi
done done
sudo pacman -S archlabs-keyring --needed --noconfirm
sudo pacman-key --populate archlabs
if grep "archlabs_repo" /etc/pacman.conf > /dev/null 2>&1; then
# add $REPO to pacman.conf
if ! grep "archlabs_repo" /etc/pacman.conf > /dev/null 2>&1; then
echo "$REPO" | sudo tee -a /etc/pacman.conf > /dev/null 2>&1
else # if entries exist remove them
sudo sed -i '/archlabs_repo/d' /etc/pacman.conf sudo sed -i '/archlabs_repo/d' /etc/pacman.conf
echo "$REPO" | sudo tee -a /etc/pacman.conf > /dev/null 2>&1 fi
echo $REPO | sudo tee -a /etc/pacman.conf > /dev/null 2>&1
fi
# finish populating the keyring
sudo pacman -S archlabs-keyring --needed --noconfirm
sudo pacman-key --populate archlabs
} }
backupConfigs() { backupConfigs() {
if ! [ -e "$HOME/Downloads/$USER-backup.tar.gz" ]; then
clear tar czvf $HOME/Downloads/$USER-backup.tar.gz ${HFILES[@]} > /dev/null 2>&1
echo "############################################################################################ else
######## Backing up configs to /home/$USER/Downloads/$USER-config-backup.tar.gz #########
############################################################################################"
# Backup configs to $HOME/Downloads/ if backup doesn't exist already
if ! [ -e "$HOME/Downloads/$USER-config-backup.tar.gz" ]; then
tar czvf "$HOME/Downloads/$USER-config-backup.tar.gz" "$HOME"/.{config,Xresources,zshrc,bashrc,icons,xsession,xsessionrc,xinitrc} > /dev/null 2>&1
else
echo "[WARNING] Backup already exists... Not overwriting" echo "[WARNING] Backup already exists... Not overwriting"
sleep 2 sleep 2
fi
fi
} }
setupConfigs() { setupConfigs() {
sudo pacman -S clutter-gtk libgee archlabs-jgmenu --needed --noconfirm
clear sudo pacman -S gdk-pixbuf2 pango python-yaml --needed --noconfirm
echo "############################################################################################ rm -rf ${CFILES[@]}
######## Setting up new configs ######### cp -rf ${SFILES[@]} /etc/skel/.zshrc /etc/skel/.bashrc $HOME/
############################################################################################"
sleep 2
# install packages needed for configs
sudo pacman -S clutter-gtk libgee gdk-pixbuf2 pango python-yaml --needed --noconfirm
# cleanup ~/.config
rm -rf "$HOME"/.config/{bspwm,dunst,i3,obmenu-generator,qt5ct,Thunar,conky,geany,neofetch,polybar,termite,xfce4,openbox}
# clean /etc/skel
sudo rm -rf /etc/skel/*
# Copy configs to /etc/skel
sudo cp -rf "$PWD"/home/{bin,.ArchLabs-homepage,.config,.themes,.gorice,.Xresources,.Xresources.template,.mozilla,.zshrc,.bashrc,.icons,.local,.xsession,.xsessionrc,.xinitrc} /etc/skel/
# copy /etc (things like lightdm.conf, oblogout.conf, lsb-release)
sudo cp -rf "$PWD"/etc /
# copy /etc/skel to $HOME
cp -rf /etc/skel/{bin,.ArchLabs-homepage,.config,.themes,.gorice,.Xresources,.Xresources.template,.mozilla,.zshrc,.bashrc,.icons,.local,.xsession,.xsessionrc,.xinitrc} "$HOME"/
} }
# first setup Keyring # first setup Keyring
setupKeyring setupKeyring
# ask to setup configs # make sure skel package is installed and updated
clear if ! pacman -Q archlabs-user-skel >/dev/null 2>&1; then
printf "\nThis step will get the latest configs for polybar, tint2, openbox, i3, etc. sudo rm -rf ${SFILES[@]}
\n\nYour existing configs will be backed up to an archive located at: sudo pacman -S archlabs-user-skel --needed --noconfirm
\n\t$HOME/Downloads/$USER-config-backup.tar.gz\n\n\n\nDo you want to continue? [y/N]:" else
read -r answer sudo pacman -Syyu --noconfirm
if [ "${answer,,}" = "${yes,,}" ]; then
# backup configs before continuing
backupConfigs
# setupConfigs only if a backup was made
if [ -e "$HOME/Downloads/$USER-config-backup.tar.gz" ]; then
setupConfigs
fi
# finish up by running setup then reloading everything
$HOME/.config/setup
if [[ $curWM == i3 ]]; then
i3-msg restart
else
$HOME/.config/polybar/scripts/launch-polybar --reload > /dev/null 2>&1
fi
else # only setup skel if answered no
# remove old configs and copy new
sudo rm -rf /etc/skel/*
sudo cp -rf "$PWD"/home/{bin,.ArchLabs-homepage,.config,.themes,.gorice,.Xresources,.Xresources.template,.mozilla,.zshrc,.bashrc,.icons,.local,.xsession,.xsessionrc,.xinitrc} /etc/skel/
sudo cp -rf "$PWD"/etc /
fi fi
clear
printf "\nThis step will get the latest configs for polybar, openbox, i3 etc.
\n\nYour existing configs will be archived to:
\n\t$HOME/Downloads/$USER-backup.tar.gz\n\n\n\nDo you want to continue? [y/N]:"
read -r answer
if [ "${answer,,}" = "${yes,,}" ]; then
backupConfigs
if [ -e "$HOME/Downloads/$USER-backup.tar.gz" ]; then
setupConfigs
fi
rm -f $HOME/.config/keypack
sed -i '/keypack/d' $HOME/.config/openbox/autostart
$HOME/.config/setup
if [[ "$WM" == "i3" ]]; then
i3-msg restart
elif [[ "$WM" == "openbox" ]]; then
start-polybar --reload > /dev/null 2>&1
fi
fi
clear clear
echo "############################################################################################ echo "##########################################################
######## Setup Successfully Completed ######### ######## Setup Completed #########
############################################################################################" ##########################################################"
exit 0 exit 0