Large update to configs

This commit is contained in:
natemaia 2018-05-18 20:36:34 -07:00
parent 5252fc5cd3
commit 7ddcb2d563
65 changed files with 1596 additions and 1633 deletions

View File

@ -5,7 +5,7 @@
<name>Open in Terminal</name>
<unique-id>1499240572835265-1</unique-id>
<command>exo-open --launch TerminalEmulator %f</command>
<description></description>
<description>Open terminal emulator in current directory</description>
<patterns>*</patterns>
<startup-notify/>
<directories/>
@ -14,17 +14,17 @@
<icon>document-open</icon>
<name>Open as Root</name>
<unique-id>1498523394840843-5</unique-id>
<command>gksu thunar %f</command>
<description></description>
<command>pkexec thunar %f</command>
<description>Open a root instance of thunar</description>
<patterns>*</patterns>
<directories/>
</action>
<action>
<icon>archive-extract</icon>
<name>Extract Here</name>
<name>Extract</name>
<unique-id>1500573442438340-2</unique-id>
<command>file-roller -h %N</command>
<description></description>
<description>Extract selected archive</description>
<patterns>*</patterns>
<startup-notify/>
<other-files/>

View File

@ -23,7 +23,7 @@ local ati = {}
-- {{{ Define variables
local _units = { clock = { ["khz"] = 1, ["mhz"] = 1000 },
voltage = { ["v"] = 1, ["mv"] = 1000 } }
voltage = { ["v"] = 1, ["mv"] = 1000 } }
local _reps = {
["sclk"] = { name = "engine_clock", units = _units.clock, mul = 10 },
["mclk"] = { name = "memory_clock", units = _units.clock, mul = 10 },

View File

@ -42,7 +42,7 @@ local function worker(format, warg)
end
return {helpers.escape(np)}
end
-- }}}
end
-- }}}
return setmetatable(mpc, { __call = function(_, ...) return worker(...) end })
return setmetatable(mpc, { __call = function(_, ...) return worker(...) end })

View File

@ -25,7 +25,7 @@ local net = {}
local nets = {}
-- Variable definitions
local unit = { ["b"] = 1, ["kb"] = 1024,
["mb"] = 1024^2, ["gb"] = 1024^3
["mb"] = 1024^2, ["gb"] = 1024^3
}
-- {{{ Net widget type

View File

@ -57,7 +57,7 @@ function helpers.pathtotable(dir)
end
end
end
})
})
end
-- }}}

View File

@ -23,7 +23,7 @@ local net = {}
local nets = {}
-- Variable definitions
local unit = { ["b"] = 1, ["kb"] = 1024,
["mb"] = 1024^2, ["gb"] = 1024^3
["mb"] = 1024^2, ["gb"] = 1024^3
}
-- {{{ Net widget type

View File

@ -23,13 +23,7 @@ local function worker(format, warg)
local updates = 0
local manager = {
["Arch"] = { cmd = "pacman -Qu" },
["Arch C"] = { cmd = "checkupdates" },
["Arch S"] = { cmd = "yes | pacman -Sup", sub = 1 },
["Debian"] = { cmd = "apt-show-versions -u -b" },
["Ubuntu"] = { cmd = "aptitude search '~U'" },
["Fedora"] = { cmd = "yum list updates", sub = 3 },
["FreeBSD"] ={ cmd = "pkg_version -I -l '<'" },
["Mandriva"]={ cmd = "urpmq --auto-select" }
["Arch S"] = { cmd = "checkupdates" },
}
-- Check if updates are available

View File

@ -25,22 +25,22 @@ local function worker(format, warg)
["sys"] = {"/sys/class/thermal/", file = "temp", div = 1000},
["core"] = {"/sys/devices/platform/", file = "temp2_input",div = 1000},
["proc"] = {"/proc/acpi/thermal_zone/",file = "temperature"}
} -- Default to /sys/class/thermal
warg = type(warg) == "table" and warg or { warg, "sys" }
} -- Default to /sys/class/thermal
warg = type(warg) == "table" and warg or { warg, "sys" }
-- Get temperature from thermal zone
local _thermal = helpers.pathtotable(zone[warg[2]][1] .. warg[1])
-- Get temperature from thermal zone
local _thermal = helpers.pathtotable(zone[warg[2]][1] .. warg[1])
local data = warg[3] and _thermal[warg[3]] or _thermal[zone[warg[2]].file]
if data then
local data = warg[3] and _thermal[warg[3]] or _thermal[zone[warg[2]].file]
if data then
if zone[warg[2]].div then
return {data / zone[warg[2]].div}
else -- /proc/acpi "temperature: N C"
return {tonumber(string.match(data, "[%d]+"))}
end
end
end
return {0}
return {0}
end
-- }}}

View File

@ -124,9 +124,9 @@ volicon:buttons(awful.util.table.join(
awful.button({ }, 1,
function() awful.util.spawn_with_shell("pamixer -t") end),
awful.button({ }, 4,
function() awful.util.spawn_with_shell("pamixer -i 3") end),
function() awful.util.spawn_with_shell("pamixer -i 2") end),
awful.button({ }, 5,
function() awful.util.spawn_with_shell("pamixer -d 3") end)
function() awful.util.spawn_with_shell("pamixer -d 2") end)
))
volpct:buttons(volicon:buttons())
volspace:buttons(volicon:buttons())
@ -148,22 +148,6 @@ mem = wibox.widget.textbox()
vicious.register(mem, vicious.widgets.mem, "Mem: $1% Use: $2MB Total: $3MB Free: $4MB Swap: $5%", 2)
-- 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)
-- ))
-- End Gmail }}}
--
-- {{{ Start Wifi
wifiicon = wibox.widget.imagebox()
wifiicon:set_image(beautiful.widget_wifi)

View File

@ -41,6 +41,5 @@ bspc config pointer_action3 resize_corner
bspc rule -a thunar desktop='^1' state=floating follow=on
bspc rule -a firefox desktop='^2'
bspc rule -a Galculator state=floating
bspc rule -a Void_Exit_Session state=floating layer=above
bspc rule -a Exit_Session state=floating layer=above

View File

@ -26,23 +26,17 @@ no-fading-destroyed-argb = false;
# Backend
backend = "xrender";
vsync = "opengl";
mark-wmwin-focused = true;
mark-ovredir-focused = true;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
vsync = "none";
paint-on-overlay = true;
mark-wmwin-focused = true;
unredir-if-possible = true;
detect-transient = true;
detect-client-leader = true;
detect-rounded-corners = true;
# GLX backend
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
opacity-rule = [
"85:class_g *?= 'xterm'",
"0:_NET_WM_STATE@:32a * = '_NET_WM_STATE_HIDDEN'"
];

View File

@ -5,7 +5,7 @@ file:///home/liveuser/Pictures
file:///home/liveuser/Music
file:///home/liveuser/Videos
file:///home/liveuser/Templates
file:///home/liveuser/.config .config
file:///home/liveuser/.config
file:///home/liveuser/.config/polybar
file:///home/liveuser/.config/termite
file:///home/liveuser/.config/openbox

View File

@ -62,19 +62,13 @@ exec_always --no-startup-id al-polybar-session
exec_always --no-startup-id nitrogen --restore
exec_always --no-startup-id xrdb -load ~/.Xresources
# Trayer
exec_always --no-startup-id pkill trayer; trayer --edge bottom \
--align left --heighttype pixel --height 18 --widthtype request \
--SetDockType false --expand true --transparent true --alpha 255
# If you have a numpad you may want to enable this
# exec_always --no-startup-id numlockx on
# run once
exec --no-startup-id ksuperkey -e 'Super_L=Alt_L|F1'
exec --no-startup-id al-compositor --start
exec --no-startup-id nitrogen --restore
exec --no-startup-id xfsettingsd
exec --no-startup-id al-compositor --start
exec --no-startup-id ksuperkey -e 'Super_L=Alt_L|F1'
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
###########################################################

View File

@ -124,7 +124,7 @@ super + alt + shift + {h,j,k,l}
super + {Left,Down,Up,Right}
bspc node -v {-20 0,0 20,0 -20,20 0}
# volume control keys
XF86AudioMute
pamixer -t
XF86AudioRaiseVolume

View File

@ -2,6 +2,6 @@
<channel name="keyboards" version="1.0">
<property name="Default" type="empty">
<property name="Numlock" type="bool" value="true"/>
<property name="Numlock" type="bool" value="false"/>
</property>
</channel>

View File

@ -6,17 +6,17 @@
<property name="sleep-button-action" type="uint" value="1"/>
<property name="hibernate-button-action" type="uint" value="2"/>
<property name="brightness-switch-restore-on-exit" type="int" value="1"/>
<property name="brightness-switch" type="int" value="0"/>
<property name="brightness-switch" type="int" value="1"/>
<property name="lid-action-on-battery" type="uint" value="1"/>
<property name="lid-action-on-ac" type="uint" value="1"/>
<property name="logind-handle-lid-switch" type="bool" value="true"/>
<property name="dpms-on-ac-off" type="uint" value="0"/>
<property name="dpms-on-ac-sleep" type="uint" value="0"/>
<property name="blank-on-ac" type="int" value="0"/>
<property name="show-tray-icon" type="bool" value="true"/>
<property name="show-tray-icon" type="bool" value="false"/>
<property name="general-notification" type="bool" value="false"/>
<property name="inactivity-on-ac" type="uint" value="14"/>
<property name="lock-screen-suspend-hibernate" type="bool" value="false"/>
<property name="dpms-enabled" type="bool" value="false"/>
<property name="dpms-enabled" type="bool" value="true"/>
</property>
</channel>

View File

@ -28,8 +28,8 @@
<property name="KeyThemeName" type="empty"/>
<property name="ToolbarStyle" type="string" value="icons"/>
<property name="ToolbarIconSize" type="empty"/>
<property name="MenuImages" type="bool" value="false"/>
<property name="ButtonImages" type="bool" value="false"/>
<property name="MenuImages" type="bool" value="true"/>
<property name="ButtonImages" type="bool" value="true"/>
<property name="MenuBarAccel" type="empty"/>
<property name="CursorThemeName" type="string" value="ArchLabs-Light"/>
<property name="CursorThemeSize" type="empty"/>

View File

@ -28,8 +28,8 @@
<property name="KeyThemeName" type="empty"/>
<property name="ToolbarStyle" type="string" value="icons"/>
<property name="ToolbarIconSize" type="empty"/>
<property name="MenuImages" type="bool" value="false"/>
<property name="ButtonImages" type="bool" value="false"/>
<property name="MenuImages" type="bool" value="true"/>
<property name="ButtonImages" type="bool" value="true"/>
<property name="MenuBarAccel" type="empty"/>
<property name="CursorThemeName" type="string" value="ArchLabs-Light"/>
<property name="CursorThemeSize" type="empty"/>

View File

@ -41,7 +41,6 @@ kbdrate -d 400 -r 50
# 1/1 mouse acceleration
xset m 1/1
# Do NOT put commands below the exec lines
case $session in
i3|i3wm) exec i3 ;;
@ -49,6 +48,5 @@ case $session in
xfce|xfce4) exec startxfce4 ;;
openbox) exec openbox-session ;;
awesome) exec awesome ;;
dwm) exec dwm ;;
*) exec "$1" # Unknown, try running it
esac

View File

@ -5,6 +5,6 @@
[ -d /sbin ] && PATH="$PATH:/sbin"
[ -d /usr/sbin ] && PATH="$PATH:/usr/sbin"
[ -d ~/bin ] && PATH="$HOME/bin:$PATH"
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
export XDG_CONFIG_HOME="$HOME/.config"

View File

@ -1,5 +1,5 @@
# .zprofile
# sourced by zsh when used as a login shell
# automatically run startx when logging in to tty1
[[ -z $DISPLAY ]] && [[ $XDG_VTNR -eq 1 ]] && exec startx -- vt1 &>/dev/null
# automatically run startx when logging in on tty1
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx -- vt1 &>/dev/null

View File

@ -65,7 +65,7 @@ while getopts ":hvqwcbrl" opt; do
*Lock) i3lock-fancy ;;
*Logout) session-logout ;;
*Reboot) systemctl reboot ;;
*Shutdown) systemctl poweroff
*Shutdown) systemctl -i poweroff
esac
;;
*)

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
Name=$(basename "$0")
Version="0.1"
Version="0.2"
_usage() {
cat <<EOF
@ -43,7 +43,7 @@ toggle_polybar() {
toggle_compton() {
if [[ $opt -eq 1 ]]; then
if (( $opt == 1 )); then
if [[ $(pidof compton) ]]; then
al-compositor --stop
else
@ -65,7 +65,7 @@ toggle_compton() {
toggle_redshift() {
if [[ $opt -eq 1 ]]; then
if (( $opt == 1 )); then
if [[ $(pidof redshift) ]]; then
pkill redshift
else
@ -93,7 +93,7 @@ toggle_redshift() {
toggle_caffeine() {
if [[ $opt -eq 1 ]]; then
if (( $opt == 1 )); then
if [[ $(pidof caffeine) ]]; then
killall caffeine
else

View File

@ -8,26 +8,26 @@ total() { UPD=$(checkupdates | wc -l) ;}
while true; do
total
if hash notify-send &>/dev/null; then
if [[ $UPD -gt 50 ]]; then
if (( $UPD > 50 )); then
notify-send -u critical -i $ICON "You really need to update!!" "$UPD New packages"
elif [[ $UPD -gt 25 ]]; then
elif (( $UPD > 25 )); then
notify-send -u normal -i $ICON "You should update soon" "$UPD New packages"
elif [[ $UPD -gt 2 ]]; then
elif (( $UPD > 2 )); then
notify-send -u low -i $ICON "$UPD New packages"
fi
fi
while [[ $UPD -gt 0 ]]; do
if [[ $UPD -eq 1 ]]; then
while (( $UPD > 0 )); do
if (( $UPD == 1 )); then
echo "$UPD Update"
elif [[ $UPD -gt 1 ]]; then
elif (( $UPD > 1 )); then
echo "$UPD Updates"
fi
sleep 10
total
done
while [[ $UPD -eq 0 ]]; do
while (( $UPD == 0 )); do
echo $BAR_ICON
sleep 1800
total