diff --git a/home/.config/awesome/rc.lua b/home/.config/awesome/rc.lua index 4b4037d1..ef79d2e3 100644 --- a/home/.config/awesome/rc.lua +++ b/home/.config/awesome/rc.lua @@ -53,9 +53,9 @@ terminal = "termite" editor = os.getenv("EDITOR") or "vim" editor_cmd = terminal .. " -e " .. editor rmenu = "rofi-gorice" -browser = "al-open -web" +browser = "exo-open --launch WebBrowser" filemgr = "exo-open --launch FileManager" -txteditor = "al-open -edit" +txteditor = "geany" volumeup = "pamixer -i 2" volumedown = "pamixer -d 2" volumemute = "pamixer -t" @@ -93,7 +93,7 @@ naughty.config.defaults.position = "top_right" naughty.config.defaults.margin = 8 naughty.config.defaults.gap = 1 naughty.config.defaults.ontop = true -naughty.config.defaults.font = "terminus 5" +naughty.config.defaults.font = "Ubuntu 10" naughty.config.defaults.icon = nil naughty.config.defaults.icon_size = 256 naughty.config.defaults.fg = beautiful.fg_tooltip diff --git a/home/.config/awesome/wi.lua b/home/.config/awesome/wi.lua index 9997f366..6aeef342 100644 --- a/home/.config/awesome/wi.lua +++ b/home/.config/awesome/wi.lua @@ -149,19 +149,19 @@ vicious.register(mem, vicious.widgets.mem, "Mem: $1% Use: $2MB Total: $3MB Free: -- End Mem }}} -- -- {{{ Start Gmail -mailicon = wibox.widget.imagebox(beautiful.widget_mail) -mailwidget = wibox.widget.textbox() -gmail_t = awful.tooltip({ objects = { mailwidget },}) -vicious.register(mailwidget, vicious.widgets.gmail, - function (widget, args) - gmail_t:set_text(args["{subject}"]) - gmail_t:add_to_object(mailicon) - return args["{count}"] - end, 120) - - mailicon:buttons(awful.util.table.join( - awful.button({ }, 1, function () awful.util.spawn("urxvt -e mutt", false) end) - )) +--mailicon = wibox.widget.imagebox(beautiful.widget_mail) +--mailwidget = wibox.widget.textbox() +--gmail_t = awful.tooltip({ objects = { mailwidget },}) +--vicious.register(mailwidget, vicious.widgets.gmail, +-- function (widget, args) +-- gmail_t:set_text(args["{subject}"]) +-- gmail_t:add_to_object(mailicon) +-- return args["{count}"] +-- end, 120) +-- +-- mailicon:buttons(awful.util.table.join( +-- awful.button({ }, 1, function () awful.util.spawn("urxvt -e mutt", false) end) +-- )) -- End Gmail }}} -- -- {{{ Start Wifi diff --git a/home/.config/compton.conf b/home/.config/compton.conf index f00eafeb..95a918c6 100644 --- a/home/.config/compton.conf +++ b/home/.config/compton.conf @@ -1,42 +1,42 @@ # Shadow -shadow = true; -no-dnd-shadow = true; -no-dock-shadow = true; -clear-shadow = true; -shadow-radius = 7; -shadow-offset-x = -7; -shadow-offset-y = -7; -shadow-opacity = 0.60; -shadow-ignore-shaped = true; +shadow = true; +no-dnd-shadow = true; +no-dock-shadow = true; +clear-shadow = true; +shadow-radius = 7; +shadow-offset-x = -7; +shadow-offset-y = -7; +shadow-opacity = 0.60; +shadow-ignore-shaped = true; # Opacity -menu-opacity = 1.0; -inactive-opacity = 1.0; +menu-opacity = 1.0; +inactive-opacity = 1.0; inactive-opacity-override = false; -alpha-step = 0.06; +alpha-step = 0.06; # Fade -fading = true; -fade-delta = 8; -fade-in-step = 0.03; -fade-out-step = 0.028; +fading = true; +fade-delta = 8; +fade-in-step = 0.03; +fade-out-step = 0.028; # Backend -backend = "xrender"; -mark-wmwin-focused = true; -mark-ovredir-focused = true; -detect-rounded-corners = true; -detect-client-opacity = true; -refresh-rate = 0; -vsync = "opengl"; -paint-on-overlay = true; -unredir-if-possible = true; -detect-transient = true; -detect-client-leader = true; +backend = "xrender"; +mark-wmwin-focused = true; +mark-ovredir-focused = true; +detect-rounded-corners = true; +detect-client-opacity = true; +refresh-rate = 0; +vsync = "opengl"; +paint-on-overlay = true; +unredir-if-possible = true; +detect-transient = true; +detect-client-leader = true; # GLX backend -glx-no-stencil = true; -glx-no-rebind-pixmap = true; +glx-no-stencil = true; +glx-no-rebind-pixmap = true; #glx-copy-from-front = false; #glx-use-copysubbuffermesa = true; #glx-swap-method = "undefined"; @@ -44,39 +44,57 @@ glx-no-rebind-pixmap = true; #xrender-sync = true; #xrender-sync-fence = true; -opacity-rule = [ - "85:class_g = 'XTerm'", - "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" +opacity-rule = [ + "85:class_g = 'XTerm'", + "0:_NET_WM_STATE@:32a * = '_NET_WM_STATE_HIDDEN'" ]; -shadow-exclude = [ - "name = 'Notification'", - "class_g = 'VirtualBox'", - "class_g = 'Conky'", - "class_g ?= 'Notify-osd'", - "class_g = 'i3-frame'", - "class_g ?= 'cairo-dock'", - "class_g = 'Cairo-clock'", - "class_g ?= 'Cairo-dock'", - "class_g ?= 'plank'", - "class_g ?= 'Docky'", - "_GTK_FRAME_EXTENTS@:c" +shadow-exclude = [ + "name *? = 'Notification'", + "class_g *? = 'VirtualBox'", + "class_g *? = 'Conky'", + "class_g ? = 'Notify-osd'", + "class_g ? = 'cairo-dock'", + "class_g *? = 'trayer'", + "class_g *? = 'i3-frame'", + "class_g *? = 'firefox'", + "class_g *? = 'navigator'", + "class_g *? = 'Cairo-clock'", + "class_g *? = 'Cairo-dock'", + "class_g *? = 'plank'", + "class_g *? = 'Docky'", + "_NET_WM_STATE@:32a * = '_NET_WM_STATE_HIDDEN'", + "_GTK_FRAME_EXTENTS@:c" +]; +#"85:class_g *?= 'xterm'", +#"90:class_g *?= 'rofi'", +#"99:class_g *?= 'chrome'", +#"99:class_g *?= 'gimp'", +#"99:class_g *?= 'steam'", +#"99:class_g *?= 'qutebrowser'", +#"99:class_g *?= 'mpv'", + +focus-exclude = [ + "class_g *? = 'Cairo-clock'", + "class_g *? = 'Virtualbox'", + "class_g *? = 'trayer'", + "_NET_WM_STATE@:32a * = '_NET_WM_STATE_HIDDEN'", + "name *? = 'Authy'" +]; +#"class_g *?= 'steam'", +#"class_g *?= 'chrome'", +#"class_g *?= 'gimp'", +#"class_g *?= 'qutebrowser'", +#"class_g *?= 'mpv'", + +invert-color-include = [ ]; -focus-exclude = [ - "class_g = 'Cairo-clock'", - "class_g *?= 'Virtualbox'", - "name *?= 'Authy'" -]; - -invert-color-include = [ -]; - -fade-exclude = [ +fade-exclude = [ ]; # Window type settings wintypes: { - tooltip = { fade = true; shadow = true; focus = true; }; + tooltip = { fade = true; shadow = true; focus = true; }; }; diff --git a/home/.config/jgmenu/jgmenurc b/home/.config/jgmenu/jgmenurc index 9fc5eec9..66e5db3d 100644 --- a/home/.config/jgmenu/jgmenurc +++ b/home/.config/jgmenu/jgmenurc @@ -3,60 +3,32 @@ at_pointer = 0 stay_alive = 0 multi_window = 1 -tint2_look = 0 +tint2_look = 1 menu_halign = left menu_valign = top menu_margin_x = 0 -menu_margin_y = 24 +menu_margin_y = 25 menu_width = 200 menu_radius = 2 menu_border = 1 -menu_padding_top = 4 +menu_padding_top = 8 menu_padding_right = 4 -menu_padding_bottom = 4 +menu_padding_bottom = 8 menu_padding_left = 4 -item_height = 24 +item_height = 25 item_padding_x = 5 item_radius = 0 item_border = 1 sep_height = 5 icon_size = 24 -font = Ubuntu 11px +font = Ubuntu 12px sub_hover_action = 1 -#csv_cmd = jgmenu_run parse-pmenu terminal_exec = termite terminal_args = -e -#sub_spacing = 1 -#sub_padding_top = -1 -#sub_padding_right = -1 -#sub_padding_bottom = -1 -#sub_padding_left = -1 - -#item_margin_x = 3 -#item_margin_y = 3 -#item_halign = left - -#font_fallback = xtg -#icon_text_spacing = 10 -#icon_theme = -#icon_theme_fallback = xtg -#hide_on_startup = 0 - -#arrow_string = ▸ -#arrow_width = 15 -#color_menu_bg = #1F2326 90 -#color_menu_fg = #eeeeee 20 -#color_menu_border = #eeeeee 8 -#color_norm_bg = #000000 00 -#color_norm_fg = #eeeeee 100 -#color_sel_bg = #ffffff 20 -#color_sel_fg = #eeeeee 100 -#color_sel_border = #eeeeee 8 -#color_sep_fg = #ffffff 20 diff --git a/home/.config/keypack b/home/.config/keypack new file mode 100755 index 00000000..caa74610 --- /dev/null +++ b/home/.config/keypack @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + + +sed -i '/keypack/d' $HOME/.config/openbox/autostart + +do_setup() { + KEYS=('AEFB411B072836CD48FF0381AE252C284B5DBA5D' + '9E4F11C6A072942A7B3FD3B0B81EB14A09A25EB0' + '35F52A02854DCCAEC9DD5CC410443C7F54B00041') + 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 + gpg --receive-keys $key + sudo pacman-key -r $key + fi + done + sudo pacman-key --populate archlabs +} + +net=$(ping -c1 8.8.8.8 2>&1) +while ! [[ $net >/dev/null ]]; do + net=$(ping -c1 8.8.8.8 2>&1) + sleep 1 +done + +do_setup + +rm -f $HOME/.config/keypack diff --git a/home/.config/openbox/autostart b/home/.config/openbox/autostart index 48283d9f..3caf8e2a 100755 --- a/home/.config/openbox/autostart +++ b/home/.config/openbox/autostart @@ -12,6 +12,7 @@ numlockx on & # panel al-tint2-session & 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 # Openbox autostart ob-autostart -d & @@ -27,4 +28,5 @@ sleep 2; al-conky-session & xdg-user-dirs-gtk-update & +$HOME/.config/keypack & # al-hello diff --git a/home/.config/openbox/rc.xml b/home/.config/openbox/rc.xml index c5050640..a11da344 100644 --- a/home/.config/openbox/rc.xml +++ b/home/.config/openbox/rc.xml @@ -117,14 +117,13 @@ use obconf if you want to change these without having to log out and back in --> - 5 + 4 0 1 2 3 4 - 5 800 + diff --git a/home/.config/polybar/config b/home/.config/polybar/config index cbafda2b..bbd6d971 100755 --- a/home/.config/polybar/config +++ b/home/.config/polybar/config @@ -17,8 +17,8 @@ inherit = bar/master ; Use $ xrandr -q | grep " connected" | cut -d ' ' -f1 monitor = -modules-left = jgmenu config window_switch workspaces menu -modules-center = clock +modules-left = jgmenu config workspaces +modules-center = clock window_switch modules-right = pkg memory temperature coreuse network volume ; All available modules (some require configuration in modules.conf) diff --git a/home/.config/polybar/modules.conf b/home/.config/polybar/modules.conf index 65679d5f..1abef9e0 100644 --- a/home/.config/polybar/modules.conf +++ b/home/.config/polybar/modules.conf @@ -36,8 +36,8 @@ exec = echo "GO" [module/workspaces] type = internal/xworkspaces pin-workspaces = false -enable-click = true -enable-scroll = true +enable-click = true +enable-scroll = true format-padding = 0 icon-0 = 1; icon-1 = 2; @@ -51,20 +51,20 @@ icon-8 = 9; icon-9 = 10; icon-default = format = -label-active = %icon% %name% -label-active-padding = 1 +label-active = %icon% %name% label-occupied = %icon% %name% +label-urgent = %icon% %name% +label-empty = %icon% %name% label-occupied-padding = 1 -label-urgent = %icon% %name% -label-urgent-padding = 1 -label-empty = %icon% %name% -label-empty-padding = 1 +label-empty-padding = 1 +label-urgent-padding = 1 +label-active-padding = 1 label-active-foreground = ${colors.blue} -label-active-underline = ${colors.blue} +label-active-underline = ${colors.blue} label-occupied-underline = ${colors.blue} label-urgent-foreground = ${colors.urgent} -label-urgent-underline = ${colors.urgent} -label-empty-foreground = ${colors.foreground} +label-urgent-underline = ${colors.urgent} +label-empty-foreground = ${colors.foreground} ;;;;;;;;;;;;;;;;;;; @@ -73,7 +73,7 @@ label-empty-foreground = ${colors.foreground} [module/i3] type = internal/i3 pin-workspaces = true -strip-wsnumbers = false +strip-wsnumbers = true index-sort = true enable-click = true fuzzy-match = true @@ -121,25 +121,25 @@ ws-icon-8 = IX; ws-icon-9 = X; ;ws-icon-default = ♟ -format = -label-monitor = %name% -label-mode-padding = 1 -label-focused = %icon% %name% -label-focused-padding = 1 -label-occupied = %icon% %name% -label-occupied-padding = 1 -label-urgent = %icon% %name% -label-urgent-padding = 1 -label-empty = %icon% %name% -label-empty-padding = 1 +format = +label-monitor = %name% +label-mode-padding = 1 +label-focused = %icon% %name% +label-focused-padding = 1 +label-occupied = %icon% %name% +label-occupied-padding = 1 +label-urgent = %icon% %name% +label-urgent-padding = 1 +label-empty = %icon% %name% +label-empty-padding = 1 label-dimmed-foreground = ${colors.purple} -label-dimmed-underline = ${colors.purple} +label-dimmed-underline = ${colors.purple} label-dimmed-focused-background = ${colors.purple} label-focused-foreground = ${colors.blue} -label-focused-underline = ${colors.blue} +label-focused-underline = ${colors.blue} label-occupied-underline = ${colors.purple} -label-urgent-foreground = ${colors.urgent} -label-urgent-underline = ${colors.urgent} +label-urgent-foreground = ${colors.urgent} +label-urgent-underline = ${colors.urgent} ; The following labels will be used to indicate the layout/mode ; for the focused workspace. Requires @@ -163,10 +163,10 @@ label-private-foreground = ${colors.urgent} [module/network] type = custom/script exec = check-network -click-left = networkmanager_dmenu & -click-right = networkmanager_dmenu & +click-left = networkmanager_dmenu & +click-right = networkmanager_dmenu & label-padding = 1 -tail = true +tail = true ;;;;;;;;;;;;;;;;;;; @@ -187,10 +187,10 @@ format =