From 9b42c1d297bf75280da0ac04650b53d7a9c1b429 Mon Sep 17 00:00:00 2001 From: josiah Date: Sat, 9 May 2020 12:42:23 -0500 Subject: [PATCH] Add basic battery widget - this gives me a place to mouse over and check but the dynamic updates are not working yet!! --- .../batteryarc-widget/10_c.png | Bin 0 -> 1034 bytes .../batteryarc-widget/10_d.png | Bin 0 -> 956 bytes .../batteryarc-widget/20_c.png | Bin 0 -> 1109 bytes .../batteryarc-widget/20_d.png | Bin 0 -> 1031 bytes .../batteryarc-widget/80_c.png | Bin 0 -> 2166 bytes .../batteryarc-widget/80_d.png | Bin 0 -> 1108 bytes .../batteryarc-widget/README.md | 45 ++++++ .../batteryarc-widget/batteryarc.lua | 135 +++++++++++++++++ .config/awesome/jlj-theme.lua | 140 ++++++++++++++++++ .config/awesome/rc.lua | 8 +- readme.org | 7 + 11 files changed, 334 insertions(+), 1 deletion(-) create mode 100644 .config/awesome/awesome-wm-widgets/batteryarc-widget/10_c.png create mode 100644 .config/awesome/awesome-wm-widgets/batteryarc-widget/10_d.png create mode 100644 .config/awesome/awesome-wm-widgets/batteryarc-widget/20_c.png create mode 100644 .config/awesome/awesome-wm-widgets/batteryarc-widget/20_d.png create mode 100644 .config/awesome/awesome-wm-widgets/batteryarc-widget/80_c.png create mode 100644 .config/awesome/awesome-wm-widgets/batteryarc-widget/80_d.png create mode 100644 .config/awesome/awesome-wm-widgets/batteryarc-widget/README.md create mode 100644 .config/awesome/awesome-wm-widgets/batteryarc-widget/batteryarc.lua create mode 100644 .config/awesome/jlj-theme.lua diff --git a/.config/awesome/awesome-wm-widgets/batteryarc-widget/10_c.png b/.config/awesome/awesome-wm-widgets/batteryarc-widget/10_c.png new file mode 100644 index 0000000000000000000000000000000000000000..3faf7531c6eb211b540c83ff22d64200e7754538 GIT binary patch literal 1034 zcmV+l1oiugP)F(?fdb(~q{TirQ2XYM!Ox%1tF&KIWP?18-V=_gN4PZCO7 zjRVO=gjblRX_;m$W?iw(&*S8k7_$l4lFHZ7X`%PO{wiF#&4^#PUP`o2bQw?xYiBC6F`uQqq~Vu?g@D3hI zUvm9#e6_4llHfK%-(v$I5JE)uMBE~4CR7$CoIyJ3SdJq7#QuRtzaxpxSPmks{?i9P6GlWn) zZX<*o#|?r2TR8JZDm|CXyq@ZN);7}2s|LasN-4$|rG#@HkyeOw?8-n=N(muKX(@YZ<+YDL%)flO z^y6>%cvNyx`e_~jh6=+9Ou~__;8yH2^|@Kr4;SM>%1BkJu_M z4PCm>NsAc<00__PQW^eqpyJ<%?C06-}P04Yyr5St6dPFiDEUIc*M(t4LNAthzh zFbvLl`pLs&MskDmM%OOW%HXBB!t~zK_Gb zDW#lqA%s#2V@wD!41-bxJGH0hBv#V{5y*vfBL~ ze4J*SbJH{_rG#LFkk(oX$%P1lh$GFvYMssL6vLUsKdQLGrU3;roB#j-07*qoM6N<$ Eg5_4&?*IS* literal 0 HcmV?d00001 diff --git a/.config/awesome/awesome-wm-widgets/batteryarc-widget/10_d.png b/.config/awesome/awesome-wm-widgets/batteryarc-widget/10_d.png new file mode 100644 index 0000000000000000000000000000000000000000..c9aa8d3a0643f6327a1a6f435c0dddf23390e58d GIT binary patch literal 956 zcmV;t14I0YP)WnA2n#?26!Gu^1%kpLC)g%7u`PQ%B(~$n%v5(hShR7Rk<;n%%4b!5 z`<&|2w{G1kRzCj{P9FHXAAfXaY=j5AzOm_yImQ%9DkWtmn|V!&PyWzvh#;G#<-luy zd|MbOnexUE%)a1hTpH_aaq!$YkDkB3H#E;JzTYxL9xtG_XE1>trQpY*T`G-@2;vX#{gXzil*(ijW6W5qb*QzTGtuW=ROu3V8SEB<@1M_tF>CE{ zY~}OCoocOGnK3(ioulP^f3M!$-l^7-Wr9Q|qX1|fHk(c7oQDTchhOyWE9I}}1Q8ME z);i~1+qR0OZUEl7t(8@$!_Lw2>Hgl;Ta|=5V~lm=vJ9-zXok_z%VeE(&I>`Dcoel= zvir7T?5wSKmd|!{mCW|;*7EApG*U=GWUSR%Crs^}<3v2*-g)a%E#=!Ee$Y30acTNy za5!osbN}aG0ThSJ31Sii!2F+s{#P%&a`k-xrO~00%Wn<8^JdT3i}9;ahX9Cp8c+Kk z>h;oSIcSM)Ev*1JJwUflpt9DZT(hw1t6ek`6JikZ$i0K6Sr zD>rZVUKnq+Wx@ymh!T_x3_x7SVWScM2>{06J%jfLEhFZ{{FGR)-0d7X+iHuX0AQQV z1ZBMG4!-?3?hgk0qnH!(Q^GX#`rY}~tehDg22ig(Oi)^5iHLLV%o96*b8%^K>U9^H z2XlYN5h4O$ZF>!3?YBy+t=@@o01xICl5AN=1R+IaqBt^h?P~zFnc3RR>|tih=17T+ z#rsbz#NefgQ@uS=y}ta*tpu44weyZRmqI4clvKpI^X|ZXN_g)d_pQN86XnZO0PcMH z<#z4gXDA(nAR+>eK3XhQj!xlkuk}jIRLH0c2gCDUA^{MJkpQ0XTSJ%eRe**xa9_M z7|y$9LmPXXn-T!B^~R&6wc4H8)!TpCHfu97QM4N=sW@@Y0|w^dt+B?~r=684!A|Dw e^oabQ1pEhInv(2K&roFm0000FVLRVp~iW<`rwm6hUtX)Dmy7VeJqj-)hQ+kCv*jMFrY zK)^%@aV{LkbsRUB^B(>Txh%xvxTi;@$G|k{!h9=aBp8b9l{WL4IaagcsYJ&>pS@q* zJ1J+HrUe2f0630o+qRTaDFpzvnkp3JPxplocr=ZMQjpK%Qc0c~D-!Jj03~I)P!x>E zQ;Fz6Uv?(bV4op`LZKi+$g*tD^RS6yZ$zTk!?D*R?PEbbs?`eKqd8uyk?{#Mnnw5U zN#?bL8pIFGLDnx=6s9LK>XK7T6~95iW&AdE-=o4tBl(mYtO z^Q$5`MEm>Uj~QI4G*!xXKD?cH`O5NxU!THKQgV;=kBxwW{Oq5{?Ha{xFu8IFZJ>}`AP`#eZB_*Q}jwZ%{8Qa8JHeyqB#ESC|Xr1|o#PS0L^ z{xYun%RCPN5Ty;A2q6HFQUZV$CQjMOf1Qm@b}0pb5Fk)eVdF`RAK#?bGV|TfU988_ zbR7V=<1}#khYn*50F}8);k#Vo?PSMr=abbD;x%~`qq?p$#>6@ux;0EA|IX9(LN@@gGB4cO_S+i(G`Zi8w6&6bs)!@kuSI%$ zJj;6g@V5pw*L9_oloDOn#i7W3vbCS7c@?gNa<|!jrdGJKEgfkX2Bkzwd0H%`6gqlA zj9kB#e)BZ|_~o&(iaDS z`EP$Xk;$)%>tcUxN-1NEb1tRC7!yKtU8j`z&@C_l0DAw+FZ?fizdC#OoAt$|Q@tQe z)9{a5ourhu?fAW|1yN?%m9>rH;!@*#@VJ~Y#tg%tloEmwLP{yY1>@ZFJoq0%XY+N6 b;Y{iu?11TNx=}>b00000NkvXXu0mjffrt(t literal 0 HcmV?d00001 diff --git a/.config/awesome/awesome-wm-widgets/batteryarc-widget/20_d.png b/.config/awesome/awesome-wm-widgets/batteryarc-widget/20_d.png new file mode 100644 index 0000000000000000000000000000000000000000..15fabeddcd43f06832207c42cb18d62928bfd621 GIT binary patch literal 1031 zcmV+i1o-=jP)gDi&rx?Z68Ti{8sP2dw%!*-Z|%8w zg7GGfFbu;q49hYv59wb`pur){&`Cb8giy`Py7AekR!$sBV-*u*_9He|AOf$vsggEKTyTM?f0Bg zsd7-FH5-3ta{$oV-5C^kf&qYY4ghxP+1#Cb;ZrC3$F3oa7k|F*+3wX(KFZB40)Xqv zy*)%IsXu({Q!_nRhH=eX=6L{sC=FmDgaAOw=ZPFT8NE0@ww+!<2$TX)3M2eqlF6!l zo!FdR=s4F?D@)UL0N{=j!1OO2#uxzJ=s9!Y#_0Urdpm0xrCu9~YM&SGTt2(=~S%0P4*5Dt6W~F9b0;J{IkadzH%S z$*}(N{O!P!M&1FBBg9pmQo5;Cy3{R+KmOo9*@vZ>pYCj>ml~QNOw;hM+e`gN+P34@wkAMX#opiC&Zn1x`{3(* z#uzgUgHlQeMhGdT1Q(3+SN6&VymdUMQw+xv{{rJRuJ}CPql^Fm002ovPDHLkV1m#p B@D~68 literal 0 HcmV?d00001 diff --git a/.config/awesome/awesome-wm-widgets/batteryarc-widget/80_c.png b/.config/awesome/awesome-wm-widgets/batteryarc-widget/80_c.png new file mode 100644 index 0000000000000000000000000000000000000000..e6dae750423a9ede3630fc20424720e56223ab79 GIT binary patch literal 2166 zcmV-+2#NQJP)9F9c~Azyc7+g(^i$44~|_+1p0{pujd7Lz6rA{OlLM-1XAFlBCt^R#hS;%SN+g z$+b{RsRGnGn^RK25EC0Ff*{8vDFLWbB_ihC_kV7jJvx2lr6Y&iRc~QwQDZKA$eNV^ zf)X+VfKe#8XG|}qx^qSmilRO+6a~TcNr|mvlY35_kb%bb<45;SAC^=t%{|JRnGC5q zYc(ZO7{ggrRK0hSHT9x1&Uqi4Pb#4ZMF{5B(sHZW^4@LPI=1WJ6dPWgdz@n=1_1;J zAu|YY8Ab@?thZYB>ivP)^l~iv8c)`r_N24iT>1EmbB|UQZC^1yF}`>Ej)6ww;r%%P z7OZ8o))0^-v9+R-QZC5Wih>mFX0z06tj(#4F&Y^fT3K4U@x@HH-I+RmWN2)3b!oZP zY$0dfEQ^sCr0^L&5!$^%Q6DHOjV5^E{P^iS2C-giF1WQ;?@85OpSv#Go^$uBBNvfz>i+Ue>tAHiLLS}gPUL!DBS65aRmzNG6nclf? z@8{<)a?Y$EKna;ZfD^E4U#L~NtPR&QYn5UfWz$#tPwwCG#{&gn)t_DL_QtuC~@p5s;;fmGMI(EE=LxmR7gZ zKQcTzx$Viu`r6|K|NIOIq%aC)Y*0!4P66lr%G#>*n{WN-q@Aj*jI^7>(ej>I zG9%k}7G!)vVB6_-Of8J=-{ri!e`UrA04PBL23QcSbiKa$-aCh;r?1V-!1I=U6Q5i^ zcX$5glIyHKnSc1{g}V!LJ*w>(+}c@c8m5swJIM0mo3~T9G^)ngh@35zRn=Fkn~bWg z$XQc_wW{;lci-ITb>@~An5yJqY*LO=WSYBmw}OmJZvVPy83ielL1}o+V&BWhM-Ch) z>$MGufSfvU;?<+C;z1X;S8@97iPL8m9(=iVYKs)*?R(b~;@I|WJmHl|Z{BOzHjJ9B0K>o0SEsP$TH203CcK*}KmrOnX+04r<;E0iFNY)!T%C5a#@ z+~C%ckFU*K`s~8i@kvy*LEk@I6zFc)fL__@_1e}O=Ui2lV1{8;6(|!MHj=Zb3L|QE zMNxzR!#8f<9-Y`~JMB*4eBo=&^$i3Ye28ULc6*yVZ4zb_5JZMTBqo=o;Tkqdv)j8h z_u$*FA06D$_{ZNqfXD7;DeEP?S4lPFhZ=(@%gnIMj;Hdx%GfBNMQxTef62^*T%;u zkDYwwqidffYQOj6?>GB8mrZl;mU>=V+hs@bD1P$cW$TAeocx{@zIWqGqmY~}ld6(} zv*sABcd({#E`gfOW`ww;A?Eq(vm8@g+t}c~V!3J`|G``R+qcHG*6jJq_=+R|$v_A; zBP7;#b^Gegl&Zneq0?`@g={|j^FJTmTHROG^L!bex`mnLzkhI{*|7(XztR{UX+2$g zbn8wkD^+#Q1CW>PEG2k;?h9_gjw(ZJ}+epVxpPGLAqznGjzx=g1 zzocJ1I0PgE5PXKsY@)SFt>(tzW7ETvlMsFIXl4E0>e8kA%?ppp*^P&@>!O2azW45_ zGiOxd#g9IjzjM!s8i6&26%cW3Vy|++8RM!H!Cd&z-e{gbdsb3ZBC}=R)YQ@Gw}1HF z-sywc(r5qr_r0@Mf^P05tUP0D(H5P z_sCCv`u?{4dsC_|pFQ`*C!g9X*FzyWlM1sT5hC*5w|iY;_C83G6svksV}-FyMD)8q z{jpZ7u`v%HJUD;u+`}*L6s;=#yZ6hd>rUaV zWg*JXoE2b!@Utk2Y?&LrURLS)g-f?*XQvJyI&k#x;K*=aQD@P)2M=ysowT|^x$N&HU07*qoM6N<$f@z^NV*mgE literal 0 HcmV?d00001 diff --git a/.config/awesome/awesome-wm-widgets/batteryarc-widget/80_d.png b/.config/awesome/awesome-wm-widgets/batteryarc-widget/80_d.png new file mode 100644 index 0000000000000000000000000000000000000000..220c8e31178b9e9a1785695eaab69c9af7ec6b05 GIT binary patch literal 1108 zcmV-a1grarP){eHp!UWE3Zq-5>40@6@AcRCwVp)!5 zx&2fov9NMdC=v#;!P?>s1#4HUwq-P#OWEA+;)-xWJE*|rwpQk_Tzb=*VT?)A001n@ zF$^QivZ5#ez%xuCnSQ3$;`7j@!%{svaB9okVgmq0mJ5lrB!~_w(9+hr9bHtZ41|!$ zWJCzjG{f`!%Lx@V0I+rV>;Zp#CR%Tuo!Y9zK_=@6v^UzU{PD?tBK10kAP9`HC`v5L zsz~RzcHP~S@$w~gwHM=)Z@&q=J+krl^ch=Xtg`hrCMxtPhMloWx7<>RZZ;g zBmkhf&7}f+hWm8{Mmh|@SiEi9bMpevySh3_bJOZ?fAS1Ba`#SRc@+S%Yyb9t2$!7p z+P80OZoxOyuc`Vf@H_w@olb?+5%^hVxln8$9j3;w6q6Z*Kv4h`MT1UdS(*j_t)8ge zR&w#Ny~9`idrS}jAgUIPKr`4#VuBDDwzZ2|dGLqG^MfDV6j<)G7!;*4FqzE&Ad7X> zJI}D`wT)_9tz8rV9OVlt~*(A!s}Dh>DU@|?W!V42gwX`blg38T@u9X`er55 z>h}OZc`skrG2EG3thUwu)&KzHHsUH+ZZqEOb^C^T*QcfnyQ#wN^HY{uiM^QFab*Mm z(yQxr*?Jn^K2uxai7~Uw$nF`4*;U~eks(}v;ZLX z@R2M@0HAeuhTPquk&o|q273YE@q>r)+4(o}#dH=E*y8tEd>-FWpTzTutOy)uwpm@F z&a0o_bw|Pg5c~bn#?;I??nLzUy`L&0=CHhQ|JPJ(t#;Ty)Yo_WeZpvbc}nEC*&pxM zrFNzV2{cnoX40`W^?UG@u^nAXEU!{yqpmR3U}+|dMxLgR^TnO{rE{pAS*?rtI@Q31 ajQ;>r-^%-|<4I2d0000 12 and charge < 25 then + batteryarc.colors = { beautiful.widget_yellow } + mirrored_text_with_background.bg = beautiful.widget_yellow + mirrored_text_with_background.fg = beautiful.bg_normal + elseif charge < 100 then + if status == 'Charging' then + batteryarc.colors = { beautiful.widget_green } + mirrored_text_with_background.bg = beautiful.bg_normal + mirrored_text_with_background.fg = beautiful.fg_normal + else + batteryarc.colors = { beautiful.widget_main_color } + end + else + batteryarc.colors = { beautiful.widget_main_color } + end + + if charge == 100 then + --text.text = string.format("%03d", charge) + text.text = "OK" + text.font = "Play 10" + else + text.text = charge + text.font = "Play 12" + end + end, + batteryarc) + +-- Popup with battery info +-- One way of creating a pop-up notification - naughty.notify +local notification +function show_battery_status() + awful.spawn.easy_async([[bash -c 'acpi']], + function(stdout, _, _, _) + notification = naughty.notify { + text = stdout, + title = "Battery status", + timeout = 5, + hover_timeout = 0.5, + } + end) +end + +batteryarc:connect_signal("mouse::enter", function() show_battery_status() end) +batteryarc:connect_signal("mouse::leave", function() naughty.destroy(notification) end) + +-- Alternative to naughty.notify - tooltip. You can compare both and choose the preferred one + +--battery_popup = awful.tooltip({objects = {battery_widget}}) + +-- To use colors from beautiful theme put +-- following lines in rc.lua before require("battery"): +-- beautiful.tooltip_fg = beautiful.fg_normal +-- beautiful.tooltip_bg = beautiful.bg_normal + +--[[ Show warning notification ]] +function show_battery_warning() + naughty.notify { + preset = naughty.config.presets.critical, + icon = "/usr/share/icons/Arc/emblems/128/emblem-danger.png", + icon_size = 200, + text = "La batterie est bientôt épuisée !", + title = "ATTENTION !", + timeout = 5, + hover_timeout = 0.5, + position = "bottom_right", + } +end + +return batteryarc_widget diff --git a/.config/awesome/jlj-theme.lua b/.config/awesome/jlj-theme.lua new file mode 100644 index 0000000..4061b00 --- /dev/null +++ b/.config/awesome/jlj-theme.lua @@ -0,0 +1,140 @@ +--------------------------- +-- Default awesome theme -- +--------------------------- + +local theme_assets = require("beautiful.theme_assets") +local xresources = require("beautiful.xresources") +local dpi = xresources.apply_dpi + +local gfs = require("gears.filesystem") +local themes_path = gfs.get_themes_dir() + +local theme = {} + +theme.font = "sans 8" + +theme.bg_normal = "#222222" +theme.bg_focus = "#535d6c" +theme.bg_urgent = "#ff0000" +theme.bg_minimize = "#444444" +theme.bg_systray = theme.bg_normal + +theme.fg_normal = "#aaaaaa" +theme.fg_focus = "#ffffff" +theme.fg_urgent = "#ffffff" +theme.fg_minimize = "#ffffff" + +theme.useless_gap = dpi(0) +theme.border_width = dpi(1) +theme.border_normal = "#000000" +theme.border_focus = "#535d6c" +theme.border_marked = "#91231c" + +-- customize the battery widget +-- as of 2020-05-09 this is not working, fuckin. -jlj +theme.widget_main_color = "#74aeab" +theme.widget_red = "#e53935" +theme.widget_yellow = "#c0ca33" +theme.widget_green = "#43a047" +theme.widget_black = "#000000" +theme.widget_transparent = "#00000000" + +-- There are other variable sets +-- overriding the default one when +-- defined, the sets are: +-- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile] +-- tasklist_[bg|fg]_[focus|urgent] +-- titlebar_[bg|fg]_[normal|focus] +-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color] +-- mouse_finder_[color|timeout|animate_timeout|radius|factor] +-- prompt_[fg|bg|fg_cursor|bg_cursor|font] +-- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font] +-- Example: +--theme.taglist_bg_focus = "#ff0000" + +-- Generate taglist squares: +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 notifications: +-- notification_font +-- notification_[bg|fg] +-- notification_[width|height|margin] +-- notification_[border_color|border_width|shape|opacity] + +-- Variables set for theming the menu: +-- menu_[bg|fg]_[normal|focus] +-- menu_[border_color|border_width] +theme.menu_submenu_icon = themes_path.."default/submenu.png" +theme.menu_height = dpi(15) +theme.menu_width = dpi(100) + +-- You can add as many variables as +-- you wish and access them by using +-- beautiful.variable in your rc.lua +--theme.bg_widget = "#cc0000" + +-- Define the image to load +theme.titlebar_close_button_normal = themes_path.."default/titlebar/close_normal.png" +theme.titlebar_close_button_focus = themes_path.."default/titlebar/close_focus.png" + +theme.titlebar_minimize_button_normal = themes_path.."default/titlebar/minimize_normal.png" +theme.titlebar_minimize_button_focus = themes_path.."default/titlebar/minimize_focus.png" + +theme.titlebar_ontop_button_normal_inactive = themes_path.."default/titlebar/ontop_normal_inactive.png" +theme.titlebar_ontop_button_focus_inactive = themes_path.."default/titlebar/ontop_focus_inactive.png" +theme.titlebar_ontop_button_normal_active = themes_path.."default/titlebar/ontop_normal_active.png" +theme.titlebar_ontop_button_focus_active = themes_path.."default/titlebar/ontop_focus_active.png" + +theme.titlebar_sticky_button_normal_inactive = themes_path.."default/titlebar/sticky_normal_inactive.png" +theme.titlebar_sticky_button_focus_inactive = themes_path.."default/titlebar/sticky_focus_inactive.png" +theme.titlebar_sticky_button_normal_active = themes_path.."default/titlebar/sticky_normal_active.png" +theme.titlebar_sticky_button_focus_active = themes_path.."default/titlebar/sticky_focus_active.png" + +theme.titlebar_floating_button_normal_inactive = themes_path.."default/titlebar/floating_normal_inactive.png" +theme.titlebar_floating_button_focus_inactive = themes_path.."default/titlebar/floating_focus_inactive.png" +theme.titlebar_floating_button_normal_active = themes_path.."default/titlebar/floating_normal_active.png" +theme.titlebar_floating_button_focus_active = themes_path.."default/titlebar/floating_focus_active.png" + +theme.titlebar_maximized_button_normal_inactive = themes_path.."default/titlebar/maximized_normal_inactive.png" +theme.titlebar_maximized_button_focus_inactive = themes_path.."default/titlebar/maximized_focus_inactive.png" +theme.titlebar_maximized_button_normal_active = themes_path.."default/titlebar/maximized_normal_active.png" +theme.titlebar_maximized_button_focus_active = themes_path.."default/titlebar/maximized_focus_active.png" + +theme.wallpaper = themes_path.."default/background.png" + +-- You can use your own layout icons like this: +theme.layout_fairh = themes_path.."default/layouts/fairhw.png" +theme.layout_fairv = themes_path.."default/layouts/fairvw.png" +theme.layout_floating = themes_path.."default/layouts/floatingw.png" +theme.layout_magnifier = themes_path.."default/layouts/magnifierw.png" +theme.layout_max = themes_path.."default/layouts/maxw.png" +theme.layout_fullscreen = themes_path.."default/layouts/fullscreenw.png" +theme.layout_tilebottom = themes_path.."default/layouts/tilebottomw.png" +theme.layout_tileleft = themes_path.."default/layouts/tileleftw.png" +theme.layout_tile = themes_path.."default/layouts/tilew.png" +theme.layout_tiletop = themes_path.."default/layouts/tiletopw.png" +theme.layout_spiral = themes_path.."default/layouts/spiralw.png" +theme.layout_dwindle = themes_path.."default/layouts/dwindlew.png" +theme.layout_cornernw = themes_path.."default/layouts/cornernww.png" +theme.layout_cornerne = themes_path.."default/layouts/cornernew.png" +theme.layout_cornersw = themes_path.."default/layouts/cornersww.png" +theme.layout_cornerse = themes_path.."default/layouts/cornersew.png" + +-- Generate Awesome icon: +theme.awesome_icon = theme_assets.awesome_icon( + theme.menu_height, theme.bg_focus, theme.fg_focus +) + +-- 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. +theme.icon_theme = nil + +return theme + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 8adcc45..1634081 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -21,6 +21,10 @@ require("awful.hotkeys_popup.keys") -- volume import local volume_widget = require("awesome-wm-widgets.volume-widget.volume") +-- battery import and customization +local battery_widget = require("awesome-wm-widgets.batteryarc-widget.batteryarc") + + -- {{{ Error handling -- Check if awesome encountered an error during startup and fell back to -- another config (This code will only ever execute for the fallback config) @@ -48,7 +52,8 @@ end -- {{{ Variable definitions -- Themes define colours, icons, font and wallpapers. -beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua") +beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua") -- this is the OG theme +-- beautiful.init(gears.filesystem.get_themes_dir() .. "jlj-theme.lua") -- this is my shitty test theme -- This is used later as the default terminal and editor to run. terminal = "konsole" @@ -217,6 +222,7 @@ awful.screen.connect_for_each_screen(function(s) wibox.widget.systray(), mytextclock, volume_widget({display_notification = true}), + battery_widget, s.mylayoutbox, }, } diff --git a/readme.org b/readme.org index 0b846ad..8a781ec 100644 --- a/readme.org +++ b/readme.org @@ -12,3 +12,10 @@ ** adding new files - ~git add -f ~ + +** awesomeWM +awesome does a lot for me. it also relies on a lot of bullshit: + - acpi: battery stuff + - arc icons: icons for the task bar + - alsamixer: volume widget + - more to come lol.