From f6b140f417cc417d6e56948281c014b64885e1ec Mon Sep 17 00:00:00 2001 From: lanxu Date: Fri, 2 Nov 2018 01:05:38 +0200 Subject: [PATCH] Updated configurations --- .config/awesome/rc.lua | 49 +++++++++++++----- .config/awesome/themes/lanxu/theme.lua | 35 ++++++++++--- .../themes/lanxu/titlebar/close_focus.png | Bin 187 -> 1374 bytes .../themes/lanxu/titlebar/close_normal.png | Bin 254 -> 1419 bytes .../lanxu/titlebar/floating_focus_active.png | Bin 186 -> 491 bytes .../titlebar/floating_focus_inactive.png | Bin 154 -> 350 bytes .../lanxu/titlebar/floating_normal_active.png | Bin 217 -> 492 bytes .../titlebar/floating_normal_inactive.png | Bin 176 -> 350 bytes .../lanxu/titlebar/maximized_focus_active.png | Bin 264 -> 696 bytes .../titlebar/maximized_focus_inactive.png | Bin 176 -> 719 bytes .../titlebar/maximized_normal_active.png | Bin 244 -> 693 bytes .../titlebar/maximized_normal_inactive.png | Bin 174 -> 695 bytes .../lanxu/titlebar/ontop_focus_active.png | Bin 184 -> 609 bytes .../lanxu/titlebar/ontop_focus_inactive.png | Bin 161 -> 756 bytes .../lanxu/titlebar/ontop_normal_active.png | Bin 224 -> 619 bytes .../lanxu/titlebar/ontop_normal_inactive.png | Bin 171 -> 769 bytes .../lanxu/titlebar/sticky_focus_active.png | Bin 184 -> 717 bytes .../lanxu/titlebar/sticky_focus_inactive.png | Bin 155 -> 937 bytes .../lanxu/titlebar/sticky_normal_active.png | Bin 235 -> 726 bytes .../lanxu/titlebar/sticky_normal_inactive.png | Bin 165 -> 981 bytes .config/awesome/widgets.lua | 12 +++++ .config/mpv/mpv.conf | 1 + .config/ranger/scope.sh | 28 +++++----- .vimrc | 14 +++-- .zshrc | 1 + 25 files changed, 102 insertions(+), 38 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 6e0fec6..33013d7 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -18,7 +18,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 = "Roboto 10" +naughty.config.defaults.font = "sans 8" naughty.config.defaults.icon = "/usr/share/icons/Adwaita/48x48/status/dialog-information.png" naughty.config.defaults.icon_size = 48 naughty.config.defaults.fg = beautiful.fg_tooltip @@ -115,10 +115,13 @@ myawesomemenu = { { "restart", awesome.restart }, { "quit", function() awesome.quit() end} } - +lock = function() + awful.util.spawn("sync") + awful.util.spawn("xautolock -locknow") +end mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon }, { "open terminal", terminal }, - { "lock", "xlock"}, + { "lock", lock}, { "suspend", "systemctl suspend"} } }) @@ -250,7 +253,8 @@ awful.screen.connect_for_each_screen(function(s) --mykeyboardlayout, wibox.widget.systray(), spacer, - myserverstatus, + --myserverstatus, + ipaddress, spacer, volume, spacer, @@ -329,6 +333,8 @@ globalkeys = awful.util.table.join( awful.key({ modkey, }, "w", function () mymainmenu:show() end, {description = "show main menu", group = "awesome"}), + awful.key({ modkey, "Shift" }, "l", lock, + {description = "lock screen", group = "screen"}), -- Layout manipulation awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end, {description = "swap with next client by index", group = "client"}), @@ -551,6 +557,23 @@ awful.rules.rules = { placement = awful.placement.no_overlap+awful.placement.no_offscreen } }, + -- Maximized clients. + { rule_any = { + instance = { + }, + class = { + "Zathura", + "MComix" + }, + name = { + }, + role = { + } + }, properties = { + floating = true, + maximized = true + } + }, -- Floating clients. { rule_any = { @@ -565,8 +588,7 @@ awful.rules.rules = { "mpv", "Vlc", "Sxiv", - "Plugin-container", - "Mcomix" + "Plugin-container" }, name = { }, @@ -584,10 +606,10 @@ awful.rules.rules = { }, -- Window positioning - { rule = { class = "Firefox" }, - properties = { screen = primary_screen, tag = "Net" } }, { rule = { class = "Chromium" }, properties = { screen = primary_screen, tag = "Net" } }, + { rule = { class = "Firefox" }, + properties = { screen = primary_screen, tag = "Net" } }, { rule = { class = "Inkscape" }, properties = { screen = primary_screen, tag = "GFX" } }, { rule = { class = "Gimp" }, @@ -595,7 +617,7 @@ awful.rules.rules = { { rule = { class = "Blender" }, properties = { screen = primary_screen, tag = "GFX" } }, { rule = { class = "Steam", name = "Friends List" }, - properties = { screen = secondary_screen, tag = "Other", width = 300 } }, + properties = { screen = secondary_screen, tag = "Other", width = 300, height = 800, x = 3530, y = 30 } }, { rule = { class = "Steam", name = "Steam" }, properties = { screen = secondary_screen, tag = "Other" } }, } @@ -692,9 +714,11 @@ client.connect_signal("property::fullscreen", function(c) if #fullscreened_clients == 1 then awful.util.spawn("xset s off") awful.util.spawn("xset -dpms") - naughty.notify({ preset = naughty.config.presets.low, - title = "DPMS information", - text = "Display power management is now OFF"}) + naughty.notify({ + preset = naughty.config.presets.low, + title = "DPMS information", + text = "Display power management is now OFF" + }) end else remove_client(fullscreened_clients, c) @@ -708,6 +732,7 @@ client.connect_signal("unmanage", function(c) end) awful.util.spawn_with_shell("run-once pasystray") +awful.util.spawn_with_shell("run-once blueman-applet") --awful.util.spawn_with_shell("run-once conky") --awful.util.spawn_with_shell("run-once dropboxd") --awful.util.spawn_with_shell("run-once light-locker") diff --git a/.config/awesome/themes/lanxu/theme.lua b/.config/awesome/themes/lanxu/theme.lua index 797d0d0..4edb719 100644 --- a/.config/awesome/themes/lanxu/theme.lua +++ b/.config/awesome/themes/lanxu/theme.lua @@ -1,11 +1,15 @@ --------------------------- -- Default awesome theme -- --------------------------- +local theme_assets = require("beautiful.theme_assets") +local xresources = require("beautiful.xresources") +local dpi = xresources.apply_dpi + local theme = {} theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/lanxu" theme.wallpaper = theme.dir .. "/background.png" -theme.font = "Roboto 9" +theme.font = "Fira Sans 10" theme.bg_normal = "#222222" theme.bg_focus = "#8A2BE2" @@ -18,12 +22,15 @@ theme.fg_focus = "#ffffff" theme.fg_urgent = "#ffffff" theme.fg_minimize = "#ffffff" -theme.useless_gap = 0 -theme.border_width = 1 +theme.useless_gap = dpi(0) +theme.border_width = dpi(1) theme.border_normal = "#000000" theme.border_focus = "#535d6c" theme.border_marked = "#91231c" +theme.wibar_height = 20 +-- theme.wibar_border_width = 2 +-- theme.wibar_border_color = "#222222" -- There are other variable sets -- overriding the default one when -- defined, the sets are: @@ -36,14 +43,22 @@ theme.border_marked = "#91231c" --theme.taglist_bg_focus = "#ff0000" -- Display the taglist squares -theme.taglist_squares_sel = theme.dir .. "/icons/square_sel.png" -theme.taglist_squares_unsel = theme.dir .. "/icons/square_unsel.png" +--theme.taglist_squares_sel = theme.dir .. "/icons/square_sel.png" +--theme.taglist_squares_unsel = theme.dir .. "/icons/square_unsel.png" +local taglist_square_size = dpi(4) +theme.taglist_squares_sel = theme_assets.taglist_squares_sel( + taglist_square_size, theme.fg_normal +) +theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel( + taglist_square_size, theme.fg_normal +) + -- Variables set for theming the menu: -- menu_[bg|fg]_[normal|focus] -- menu_[border_color|border_width] theme.menu_submenu_icon = theme.dir .. "/submenu.png" -theme.menu_height = 15 -theme.menu_width = 100 +theme.menu_height = dpi(15) +theme.menu_width = dpi(100) -- You can add as many variables as -- you wish and access them by using @@ -97,7 +112,11 @@ theme.layout_cornerne = theme.dir .. "/layouts/cornernew.png" theme.layout_cornersw = theme.dir .. "/layouts/cornersww.png" theme.layout_cornerse = theme.dir .. "/layouts/cornersew.png" -theme.awesome_icon = theme.dir .. "/logo16.png" +theme.awesome_icon = theme_assets.awesome_icon( + theme.menu_height, theme.bg_focus, theme.fg_focus +) + +--theme.awesome_icon = theme.dir .. "/logo16.png" -- Define the icon theme for application icons. If not set then the icons -- from /usr/share/icons and /usr/share/icons/hicolor will be used. diff --git a/.config/awesome/themes/lanxu/titlebar/close_focus.png b/.config/awesome/themes/lanxu/titlebar/close_focus.png index b2051b02e9cdd2d3899e1da108c123b4a809d875..e4763b6c508b17d711f50ec7ad824b832af4fb35 100644 GIT bin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y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPtBR`Lc&KGrCL7CWEJ|pUXO@geCwM*fp;J diff --git a/.config/awesome/themes/lanxu/titlebar/close_normal.png b/.config/awesome/themes/lanxu/titlebar/close_normal.png index da6028c16cd531894d108ee3303eeef0c0a95374..770283937d8bc4abfa0bf791a51c1355eb5fdb2d 100644 GIT binary patch literal 1419 zcmV;61$6p}P)gnq7KtIVIwx{~7`u+N?s;;Vrf`WpAf`WpF6*Y`X&YnFxy0*6VJTML%0-gc31KWTR z;AZ#lXA!v!ToRFQqA2<;@3!S;z?m~=b_78%4V)5@mw-~r5C-@h_^{n>pFVNoM9X_4 z$-#h`nVGFywrqJ-MBV^)cnbSB@IjI!Z%t26|L!R!;MstgnVGF4BO{A+Qalf?8)NoI zQFPl^K2Mo~yj^!mDhVUMc!Gzq!!;oHt1~6eL;$cVz zKq?c4CLU4_g6Gbidvwr>qA0qelsX11KcLvMQfe}b__S?wHehykcK7P)>SCkO*q^>x z9jevpf-z=-jc11zP_9<13xmdw<9KX!b#<}XY&uWB&ISZQ@H(*17;_ zMYcpF(^MD7@tD^70Z@LGS~xwR`Cgt@T8uQn{ACsU7C#=Eg?{^jEvx-s`e}a>{@p2wve|@c^S)Gof0oE-0m@vWlj&-=53s#d zD!uG-zf%U(>-CGkiyQouITNx_uh$O%^V}=G$9x!uQ??jZ1Deg|<4Ka-pntafFD6*T z1FR)U@`P>qZ0!Q=cKZcOxlv=xg*cAKY_WXdAReF;1i=woEUN*=m~n?TjcTpuhhc)F z_#W1_TMf`!A9AP&x+Y{97;U5!kBA($m9ZKiB2T+i)+M*@kXAf^QtByN8JB4=?Y^G( z?l6e>E<0@n@-P5Anvg*}crri+s2CtnN&TJ zxCl(rIXFqngI1nEJ_dLb-y?$w*$q%i{gk4@C1Ap*_#R;xE^4i(NU_l>A~$ShT&6+S zg-T0A%3&CO=U6^9l}hC*Fo9zxXsxYncj*Ey26#{Vex&IRE)UOY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4&9F3iSPgK{l8UW r%LJF19tModszKb7#*IbhJaIrXwfVdM3qSV&YGd$p^>bP0l+XkKiSR0` diff --git a/.config/awesome/themes/lanxu/titlebar/floating_normal_active.png b/.config/awesome/themes/lanxu/titlebar/floating_normal_active.png index 576fa367913534824092dc75600e124abee7af1c..b9c70ca373a758d31eeef80ff8dec9a38705bc85 100644 GIT binary patch literal 492 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=EX7WqAsj$Z!;#Vf2?p zUk71ECym(^Ktah8*NBqf{Irtt#G+J&^73-M%)IR4SKW)B%;dzO*z#ljjSEczhg2Kb8D9UfIy~d1`~C0FOJnyho3UMZ zW15*bKf}Aa2$7?qt11l{(~3XZ@2ECfK7*m#jqwIkj!1*<0b&?w({(2R?T~I*+&ewG zeE-T-uU>B7>-~>q&Dl4F85bupGYFnHnI@MYz}gY*^}7CHn{hMi&Aqk!0!|i%-(st7lA@)o-U3d7N?UFBv?h5-Ex}t*fjBg zfR0g79Eh%;XLIY=fddCV{5)OFvsH&hCqU&1(;Bu7Cr&&yG%(okukzCh@l*au2?-BU zcYLf<+7+cHwCA*=pG1oD;RLOni62r;=3ZoEVAv=jX8iZ8mpsr$22WQ%mvv4FO#t0S BMAiTR diff --git a/.config/awesome/themes/lanxu/titlebar/floating_normal_inactive.png b/.config/awesome/themes/lanxu/titlebar/floating_normal_inactive.png index 4adc5e9dd1d24a6eff17dc531272dd4a8b2bcab0..55cbc0cce83c807509c134c6da86c71a08a1750c 100644 GIT binary patch literal 350 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=EX7WqAsj$Z!;#Vf2?p zUk71ECym(^Ktah8*NBqf{Irtt#G+J&^73-M%)IR4RrB`n2@J{hOQIi%VNnJb#7nG&MN? z*-~kppkc|bom;LgE0lSEWN!HKLyP7uR8nd?v!}5wVDx literal 176 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6n3BBRT^Rni_n+Ah4nJ za0`PlBg3pY5H=O_J@r8+*bPE9)&Le3ORbZIEHAPPfn1CYM9k-vw);}z{+PI7(P))@2jE4%J`Hne-2j91S=W!NfU|8^!>+)R} RHhrLB44$rjF6*2UngBsiGcEuC diff --git a/.config/awesome/themes/lanxu/titlebar/maximized_focus_active.png b/.config/awesome/themes/lanxu/titlebar/maximized_focus_active.png index 7d9a11a1204c73d8113ebc5b4ba069b29e569797..dad461d33ccffb8cf3e13cfa3cc1a9e05a3bfbcf 100644 GIT binary patch literal 696 zcmV;p0!RIcP)Ji{duw}slu|R-W zz;U4N6{>88O^kRYPVDhGzvaqga>5Gpt=O9@PJ$& zFd?FAX5JH;ua#yEk??^1DEcQm!9o0c0lEJexdHH;IL9tB{xOnUz%esl#@<0Tr~RSu zo<5QL5{NF5lBKQ-jWb}d1g-FZ-XYjqf@XL?w+aL$Xom;%%V4X765)X|eZV&frNRSc zTj83S=R{N^WB5=joVyR`VnRgM&2#ln-qYt2c+I%}7V?IF2@MDeAfhwmm5_^RbAUoqJzX3_EKVmUNU(}9yX7?HY4iP0 zPe@3JNd4C~v9Yl+@l~X}8XFtiu~!1u_P@xA{4lf5qMV8O@qT+A9#6af5)u+KHm*!O zq_*SKAKv75i@bKcZmEcr*wnlIkLoRk4jy5!%KwrxB~sLGJ`8K~HF&e+#Q&3qYybau zZq6vmx&42`WTpQbS00sS+ZNod$TmmDH`j!fL5f91_TQ!6K%fH|JYD@<);T3K0RV#R BUp@c; diff --git a/.config/awesome/themes/lanxu/titlebar/maximized_focus_inactive.png b/.config/awesome/themes/lanxu/titlebar/maximized_focus_inactive.png index bce1d000547aa78ae817db4039d4d1e8fbc112f9..3cc46fefe001f47f938afa5a5845f9ca8df6fcae 100644 GIT binary patch literal 719 zcmV;=0xmCFlI3 zOWmeveiuctzkGea-+x#xmzxj^du z3rtOdYj^;U(_o*37F1FlIp-Q?_i>Yw;l6vg+p0pIWd0d9oy zJl`VXZQGa-VkM<~;+)^P)NY#QS66tg^+pKc6`mjnV$45B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/awesome/themes/lanxu/titlebar/ontop_normal_inactive.png index a9a3206846dedf2cc615841df4de2de58da8af9c..9917b9e54d8d8d2db479802eb0c4a17ea0d3c554 100644 GIT binary patch literal 769 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=EX7WqAsj$Z!;#Vf2?p zUk71ECym(^Ktah8*NBqf{Irtt#G+J&^73-M%)IR4}&0Atpg`|tbQ7F#p;MFg(u`@ZkJeTl9jM>5CZ0!5y~tke096+1*`tbN{* z(L6JI-t)QHX0zpEDl9Y|vTIrF%U%TA*H=w{{`05b^3OZ7rYqGqhjAYMz+k-o@%cxL z50*TyT>tCuzlE!6wR9CYnr!Di->b05_;!q4?CPs=%QAPZ_ga36i=*kl`s=UHGsH*< z@1Br)GiuhdW1l;9wKN-MuDqDBhG|EX!o72w-e?+!Z?X>!a+suY`b?7BrUMX8B#*yK(C64a!KwN{g29aQ zpZ{dsG%`zk=I^z#f7zUk4H{iyof$hl%1$LH?Yf<{Rj!9yvj33FmX@2*HVgvB`ZJwe z@3HblO(<;r$n5NB=(K@#ZCawWrNk15Bzopr0FgRO*8l(j literal 171 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6n3BBRT^Lrfwp-Kzd7K3vk;M!Q z+`=Ht$S`Y;1W=H@#M9T6{Vu17kd?AV@%_I*AsbH@#}JM4$q5on4T1-4npJX`(hV18 z8l)Mxi6%G(ALw7#%If;PzO9yrhsTV^ho^mmrohoOT}O95P6mbr*I4^A&rf>|G>5^{ L)z4*}Q$iB}i?u8N diff --git a/.config/awesome/themes/lanxu/titlebar/sticky_focus_active.png b/.config/awesome/themes/lanxu/titlebar/sticky_focus_active.png index a9bc8a214f99bfd90a3c39fbd1a86853831ae6fa..80194630bef14d6dfee880663c6caf13063f5e64 100644 GIT binary patch literal 717 zcmV;;0y6!HP)WM;~S{!ukl}MfBi~8|)d_Tb9)gAzfZ}*l{&WCYkDDNqwgo=Ro{MZr4P4!F!%=GU7bEewA<_T4um9~$B_EkGMHAXK0{&+pcVcilO6TT)L+$P9R0qwN-e7g9p11i1+1dA`HU zpHa{7SscgP-EQ~0lrA7p1~BvP3b9)A`CL2;#4}*U)h`jx0`UxB<~M7^X?gFjZattV zihJJsPgu|BIWzC{`~9y?>8c`{0p9z!4aA6vNbD?--U3aPvmZA!&Ob;S(9{+a+o~IX z6&C$5!pzUHVD*UT4uB_>_xIlWp9|X7ttT!`u#(tCoO9a%zLf8+Rx9mvI(cXvYFl7B zon|;Mk)5{N?LtF`ngOHH=oCOX>5Pb$trs?m>LEx(+1cX{Ee)y$FmrbHC|>_xg!X6f z0Qk#@;Ak6=0YDT*o0$QXmCr6|CW@*7-urUpH!}k!lgS}~<0MIrGy=87xZ(#kYZch0Cd^k XWMQt=Tst2E4P@|i^>bP0l+XkK?$|d3 diff --git a/.config/awesome/themes/lanxu/titlebar/sticky_focus_inactive.png b/.config/awesome/themes/lanxu/titlebar/sticky_focus_inactive.png index 5493d8ec21c113c59bec23fead7d2959811a22a9..6d7fe40a1b116326bade182baba6ea9994bc411b 100644 GIT binary patch literal 937 zcmV;a16KTrP)d}jWDBeA2K~RdQ6i;faf_m}f!3ZTtjk`0G9NKCHv9+7$!31m3noVZX z73aH6X5O1OUnaXV0UQp8!{Kl^91e%WkuI1yqm;U;l-g=*4$oHNW?^PeYkeKSX#mf( z);%`nNv!~_^<@Ajs?82&er#hWq*eeC^)LEJz`{;QrGRp|ypfqZf78{$%wr}cq*6eo zQt4Zw+o*(83Sj2le;Hy-LMjCSSZW8UX>)ECMH&8v)MyLbPT`|0P75;t^jxo;CZD| zxt7c2UMEdpRX`L)y`JX{0yqp{jiIz3i0C#Ey_lVyec9F3HQh`yYXYQ{+lXisK)b=T zMIzcOgm`Z%p_PM>QffO9jlt~V-!XHa$;AVf1jKPX1K^9nltm&s;QM}PFedvw$h~sz|zrGFPI^yoxtLi7#1t_I10N7J)GJq>Y)JsHaiLjZuxw%KS zYXd9`kWwBcqJe7jGZFQ7c6JU3A@YBDJ3Q#_?*3}Cwi?z1L{YSvh;HJ?S>p{e?+`-V zsr3gzP+;c$f7l7upZ+zh2nfS)wdZ-m0M-Jy<$2yN-}lECkNe#@ftiPd5F<9~Y8gtY zA*IweDdk{2~bRNASOdRTq$ z|6de~#q~<5lgyl1?pl_G$;rvJ%Uy%R;cz${4u`|xa5x+eM?HK8jdf87>5Eus00000 LNkvXXu0mjfxZjx% literal 155 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6n3BBRT^Lrfwp-Kzd7K3vk;M!Q z+`=Ht$S`Y;1W=H@#M9T6{Vu17kTo+G+qn{;kdCK|V~EE2todRjKK%5Y{L^JOOCv2L1^uMb_>>eGHzielF{r5}E*kCMk;m diff --git a/.config/awesome/themes/lanxu/titlebar/sticky_normal_active.png b/.config/awesome/themes/lanxu/titlebar/sticky_normal_active.png index 1e150f5856db4d824d2ea94280e353a592c6ff04..0d003efe1d7ac2fc2e3c92019ccab630ec4277ad 100644 GIT binary patch literal 726 zcmV;{0xA88P)~!50ZL8TKNqFCd5)(Sw^^5Eu5i=xhk-_L9L-6Uih~T`sBbk_=2${rRW5 z)2RT8q9}@@D2k#eTL^I%h~xMOz_krhoP}Z7Elbaz>~JN{aTmb#4dPGB60!)xnfxl? z!+;Cn_HU0A3ahJLvU##~ga{c>5Me)AR)Zx8m*JYqi=dPCXgk3>XXsDONXN zTCdlqoO&|!93U+~8Z|&#fHZ1=uR_D&@OFWE)g(!7a_Y(OWGn>sGv5CpS z{#yV5qA1!Uq7Nu$_>_otyWQ>=E?t194j`g~HELA=uy+A_2dw$@GuXSpM+ZFHpiad( zcXj6hNs`>L*1pGPM$fFZd;Na@Q(3z5uy%lR?s*9{0%Hu@UchZYS>x=mq&$DYy$6)F z#MqYV)*pqr{}|aPqJ>Y-T6>F#?q}D|x!1;+uS@b2ohPo0my_Tk;yB&~@G-ltR4O-G zt=2c+I>eShwOSqH*NE)0*=(Lk=nylY(P&%($UgL#h*q5!mWuQyIG(?rNC^-%fQZKP zx9s!(Wr!MJtvv>QGr~LnMF(U?NFdz-V_=Ir0Q0pU1i^N8z+^Hx1#r=Bx6dVYh!RE7 zp=5pOB>-d0ThaQG#R0%McO+R~+<-Jq-$`pw6h%=KMNzhqpWFD7Phrs*nE(I)07*qo IM6N<$f*zPc*8l(j literal 235 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPtBR`KRw};tIYoJhtr;B5V#p$;btoa-q7+mK2doFw~ z=eIQIm1#&d@AANv7bh!7?f2T0*xGXGbz0ZSGY8IRn?xSDd4fr0qCC^A$S%wh<{H2QwFIF>Uq*yK@QL(=D`?Dp~- Z7)$;r-ruYnW&?BsgQu&X%Q~loCIHDpQAz*+ diff --git a/.config/awesome/themes/lanxu/titlebar/sticky_normal_inactive.png b/.config/awesome/themes/lanxu/titlebar/sticky_normal_inactive.png index 7e6c99b66699d29411799f479788303298d36d02..f1e8789233554358b6a22fd3705573b0a5eea28a 100644 GIT binary patch literal 981 zcmV;`11kK9P)JN6iF1vzps>WLQqjyfnz+ss?a491e%W;cz${j_(lq+6l}>5Cn_z`TQv&IwPfg zXk!gwL(~Mm?~9I(j&nrx8-QC;6m7P#PG$}0>FGHIV5BzeBBD{H)F#vGWYz#?-uu6g zR>49iWYT~nN!9^a-C(MVh;EoPA(IBAY1%u-v{4f>X#f#z|H322Ovt1G0Osm|Iz~*$ zoB>LyLjX3;^YI0nkg0=Et@x8IguYHh%i_B?N*nV`130_Ac! zKRrFY3&1Z#BmpcpB&`8F0B~Cfakjs||8BDaRt-=}braEHX7&IqH6;6lng0TCM+ot^ z=Xoy|B4+Is2*Yp-fH7uXX;5}5P1C-ip`m|F30moZIF5g0=1~AE49Y&PR;z`AyTM*#W&JZn+nn$6;YHrxiKl#>7oXw8HxhST|kwp@p$l#|T-N0VXy zRw|V-D+$e_Ee3>P*hNIgn++Qt9)4>jp;=frpj<957D8OY$G-;EFU1kjReM=|z`6l5 zGc$hz*ijoYfYZ#}4dD44VXrznJFnZ$4X|uL9LECy4%UX#M6_2*d9Ze0@5AReMpY;j z-q_5ojx_^HrP2mwzJT{T_*CAu~@G#}JM4$q5os4|?uOTF0@)wHY5v z?-5+26A{v-R4gIr6Q}a87>aZ`d+XoFrvgo2@O1TaS?83{ F1OVZ^D<=Q| diff --git a/.config/awesome/widgets.lua b/.config/awesome/widgets.lua index 65b7c01..6532dc4 100644 --- a/.config/awesome/widgets.lua +++ b/.config/awesome/widgets.lua @@ -105,9 +105,13 @@ vicious.register(mydpmsstatus, dpmsstatus, function(widget, args) end end) +local notification = { + font = "Monospace 10" +} -- Servers local mcstatus = require("lanxu/mcstatus") myserverstatus = mcstatus({ + notification_preset = notification, settings = function() widget.markup = create_markup("PLAYERS", totalplayers, "", valuecolor) end @@ -115,8 +119,16 @@ myserverstatus = mcstatus({ local cloudstatus = require("lanxu/cloudstatus") mycloudstatus = cloudstatus({ + notification_preset = notification, settings = function() widget.markup = create_markup("CLOUD", currentstatus, "", valuecolor) end }) +local ip = require("lanxu/ip") +ipaddress = ip({ + homeaddress = "91.157.104.247", + settings = function() + widget.markup = create_markup("IP", address, "", valuecolor) + end +}) diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index a28642e..234be4d 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -1,3 +1,4 @@ profile=opengl-hq hwdec=auto osd-font-size=14 +ao=pulse diff --git a/.config/ranger/scope.sh b/.config/ranger/scope.sh index 383035f..5af4370 100755 --- a/.config/ranger/scope.sh +++ b/.config/ranger/scope.sh @@ -58,11 +58,11 @@ handle_extension() { exit 1;; # PDF - pdf) - # Preview as text conversion - pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - && exit 5 - exiftool "${FILE_PATH}" && exit 5 - exit 1;; + #pdf) + # # Preview as text conversion + # pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - && exit 5 + # exiftool "${FILE_PATH}" && exit 5 + # exit 1;; # BitTorrent torrent) @@ -91,7 +91,7 @@ handle_image() { case "${FILE_EXTENSION_LOWER}" in # Comic book previews cbz|cbr|epub) - comicthumb "${FILE_PATH}" "${IMAGE_CACHE_PATH}" 512 > /dev/null 2>&1 && exit 6 + comicthumb.py "${FILE_PATH}" "${IMAGE_CACHE_PATH}" 512 > /dev/null 2>&1 && exit 6 exit 1;; esac @@ -123,14 +123,14 @@ handle_image() { exit 1;; # PDF - # application/pdf) - # pdftoppm -f 1 -l 1 \ - # -scale-to-x 1920 \ - # -scale-to-y -1 \ - # -singlefile \ - # -jpeg -tiffcompression jpeg \ - # -- "${FILE_PATH}" "${IMAGE_CACHE_PATH%.*}" \ - # && exit 6 || exit 1;; + application/pdf) + pdftoppm -f 1 -l 1 \ + -scale-to-x 1920 \ + -scale-to-y -1 \ + -singlefile \ + -jpeg -tiffcompression jpeg \ + -- "${FILE_PATH}" "${IMAGE_CACHE_PATH%.*}" \ + && exit 6 || exit 1;; esac } diff --git a/.vimrc b/.vimrc index 5bd4e1d..2a952d5 100644 --- a/.vimrc +++ b/.vimrc @@ -1,6 +1,5 @@ " set the runtime path to include Vundle and initialize "call has('python3') - " Start plugins call plug#begin('~/.vim/plugged') " Sensible defaults @@ -11,6 +10,9 @@ Plug 'heavenshell/vim-jsdoc', {'for': 'javascript'} Plug 'sheerun/vim-polyglot' " C/C++ Plug 'vim-scripts/DoxygenToolkit.vim', {'for': 'cpp'} +" Rust +Plug 'rust-lang/rust.vim', {'for': 'rust'} +Plug 'racer-rust/vim-racer', {'for': 'rust'} " Syntax checking "Plug 'Valloric/YouCompleteMe' " alternative #1, full-blown @@ -24,6 +26,7 @@ Plug 'jlanzarotta/bufexplorer' Plug 'ctrlpvim/ctrlp.vim' Plug 'ervandew/supertab' Plug 'reedes/vim-lexical' +Plug 'majutsushi/tagbar' " Snippets Plug 'sirver/ultisnips' @@ -56,6 +59,7 @@ let base16colorspace=256 colorscheme base16-default-dark " Other +set encoding=utf-8 set autoindent " Automatically indent set cindent " Indentation for c set number " Add line numbers @@ -129,6 +133,7 @@ autocmd Filetype cpp setlocal ts=4 sw=4 sts=0 expandtab autocmd Filetype javascript setlocal ts=2 sw=2 sts=0 expandtab autocmd Filetype vue setlocal ts=2 sw=2 sts=0 expandtab autocmd Filetype json setlocal ts=2 sw=2 sts=0 expandtab +autocmd Filetype lua setlocal ts=2 sw=2 sts=0 expandtab autocmd Filetype html setlocal ts=4 sw=4 sts=0 expandtab " ultisnips @@ -143,6 +148,7 @@ augroup lexical autocmd FileType text call lexical#init({ 'spell': 0 }) augroup END -"let g:ale_linters = { -""\ 'cpp': ['cppcheck'], -""\} +let g:ale_linters = { +\ 'javascript': ['standard'], +\ 'vue': ['standard --plugin html "**/*.{js,vue}"'] +\} diff --git a/.zshrc b/.zshrc index 41914c8..bfb6bde 100644 --- a/.zshrc +++ b/.zshrc @@ -63,3 +63,4 @@ source $HOME/.config/base16-shell/scripts/base16-default-dark.sh # TERM=xterm-256color #bindkey "${terminfo[khome]}" beginning-of-line #bindkey "${terminfo[kend]}" end-of-line +export TERMCMD=termite