From 379ebcf00dfe6c7ac59722bc4629398f1c196e64 Mon Sep 17 00:00:00 2001 From: lanxu Date: Sat, 23 Mar 2019 17:28:58 +0200 Subject: [PATCH] Updated dotfiles to the latest --- .config/awesome/lanxu/ip.lua | 53 +++++++++ .config/awesome/rc.lua | 7 +- .config/awesome/themes/lanxu/icons/ac.png | Bin 106 -> 0 bytes .../awesome/themes/lanxu/icons/battery.png | Bin 148 -> 0 bytes .../themes/lanxu/icons/battery_empty.png | Bin 132 -> 0 bytes .../themes/lanxu/icons/battery_low.png | Bin 131 -> 0 bytes .../awesome/themes/lanxu/icons/centerfair.png | Bin 179 -> 0 bytes .../awesome/themes/lanxu/icons/centerwork.png | Bin 195 -> 0 bytes .../themes/lanxu/icons/centerworkh.png | Bin 195 -> 0 bytes .config/awesome/themes/lanxu/icons/cpu.png | Bin 185 -> 478 bytes .../awesome/themes/lanxu/icons/dwindle.png | Bin 208 -> 0 bytes .config/awesome/themes/lanxu/icons/fairh.png | Bin 203 -> 0 bytes .config/awesome/themes/lanxu/icons/fairv.png | Bin 214 -> 0 bytes .../awesome/themes/lanxu/icons/floating.png | Bin 198 -> 0 bytes .config/awesome/themes/lanxu/icons/gpu.png | Bin 0 -> 475 bytes .config/awesome/themes/lanxu/icons/hdd.png | Bin 253 -> 0 bytes .../awesome/themes/lanxu/icons/magnifier.png | Bin 228 -> 0 bytes .config/awesome/themes/lanxu/icons/mail.png | Bin 189 -> 0 bytes .../awesome/themes/lanxu/icons/mail_on.png | Bin 213 -> 0 bytes .config/awesome/themes/lanxu/icons/max.png | Bin 228 -> 0 bytes .config/awesome/themes/lanxu/icons/mem.png | Bin 93 -> 0 bytes .config/awesome/themes/lanxu/icons/net.png | Bin 193 -> 0 bytes .../awesome/themes/lanxu/icons/net_wired.png | Bin 186 -> 0 bytes .config/awesome/themes/lanxu/icons/note.png | Bin 196 -> 0 bytes .../awesome/themes/lanxu/icons/note_on.png | Bin 175 -> 0 bytes .config/awesome/themes/lanxu/icons/ram.png | Bin 0 -> 464 bytes .../awesome/themes/lanxu/icons/scissors.png | Bin 130 -> 0 bytes .config/awesome/themes/lanxu/icons/spiral.png | Bin 206 -> 0 bytes .../awesome/themes/lanxu/icons/square_sel.png | Bin 81 -> 0 bytes .../themes/lanxu/icons/square_unsel.png | Bin 88 -> 0 bytes .../awesome/themes/lanxu/icons/submenu.png | Bin 142 -> 0 bytes .config/awesome/themes/lanxu/icons/task.png | Bin 189 -> 0 bytes .config/awesome/themes/lanxu/icons/temp.png | Bin 119 -> 0 bytes .../awesome/themes/lanxu/icons/termfair.png | Bin 972 -> 0 bytes .config/awesome/themes/lanxu/icons/tile.png | Bin 195 -> 0 bytes .../awesome/themes/lanxu/icons/tilebottom.png | Bin 200 -> 0 bytes .../awesome/themes/lanxu/icons/tileleft.png | Bin 193 -> 0 bytes .../awesome/themes/lanxu/icons/tiletop.png | Bin 199 -> 0 bytes .config/awesome/themes/lanxu/icons/vol.png | Bin 123 -> 0 bytes .../awesome/themes/lanxu/icons/vol_low.png | Bin 193 -> 0 bytes .../awesome/themes/lanxu/icons/vol_mute.png | Bin 227 -> 0 bytes .config/awesome/themes/lanxu/icons/vol_no.png | Bin 127 -> 0 bytes .../awesome/themes/lanxu/icons/wall-clock.png | Bin 0 -> 587 bytes .../themes/lanxu/titlebar/minimize_focus.png | Bin 0 -> 277 bytes .../themes/lanxu/titlebar/minimize_normal.png | Bin 0 -> 272 bytes .config/awesome/widgets.lua | 88 +++++++++++---- .config/ranger/rc.conf | 106 ++++++++++++++++-- .config/ranger/scope.sh | 104 ++++++++++++++++- .vimrc | 4 +- .zprofile | 3 + .zshrc | 4 +- 51 files changed, 318 insertions(+), 51 deletions(-) create mode 100644 .config/awesome/lanxu/ip.lua delete mode 100644 .config/awesome/themes/lanxu/icons/ac.png delete mode 100644 .config/awesome/themes/lanxu/icons/battery.png delete mode 100644 .config/awesome/themes/lanxu/icons/battery_empty.png delete mode 100644 .config/awesome/themes/lanxu/icons/battery_low.png delete mode 100644 .config/awesome/themes/lanxu/icons/centerfair.png delete mode 100644 .config/awesome/themes/lanxu/icons/centerwork.png delete mode 100644 .config/awesome/themes/lanxu/icons/centerworkh.png delete mode 100644 .config/awesome/themes/lanxu/icons/dwindle.png delete mode 100644 .config/awesome/themes/lanxu/icons/fairh.png delete mode 100644 .config/awesome/themes/lanxu/icons/fairv.png delete mode 100644 .config/awesome/themes/lanxu/icons/floating.png create mode 100644 .config/awesome/themes/lanxu/icons/gpu.png delete mode 100644 .config/awesome/themes/lanxu/icons/hdd.png delete mode 100644 .config/awesome/themes/lanxu/icons/magnifier.png delete mode 100644 .config/awesome/themes/lanxu/icons/mail.png delete mode 100644 .config/awesome/themes/lanxu/icons/mail_on.png delete mode 100644 .config/awesome/themes/lanxu/icons/max.png delete mode 100644 .config/awesome/themes/lanxu/icons/mem.png delete mode 100644 .config/awesome/themes/lanxu/icons/net.png delete mode 100644 .config/awesome/themes/lanxu/icons/net_wired.png delete mode 100644 .config/awesome/themes/lanxu/icons/note.png delete mode 100644 .config/awesome/themes/lanxu/icons/note_on.png create mode 100644 .config/awesome/themes/lanxu/icons/ram.png delete mode 100644 .config/awesome/themes/lanxu/icons/scissors.png delete mode 100644 .config/awesome/themes/lanxu/icons/spiral.png delete mode 100644 .config/awesome/themes/lanxu/icons/square_sel.png delete mode 100644 .config/awesome/themes/lanxu/icons/square_unsel.png delete mode 100644 .config/awesome/themes/lanxu/icons/submenu.png delete mode 100644 .config/awesome/themes/lanxu/icons/task.png delete mode 100644 .config/awesome/themes/lanxu/icons/temp.png delete mode 100644 .config/awesome/themes/lanxu/icons/termfair.png delete mode 100644 .config/awesome/themes/lanxu/icons/tile.png delete mode 100644 .config/awesome/themes/lanxu/icons/tilebottom.png delete mode 100644 .config/awesome/themes/lanxu/icons/tileleft.png delete mode 100644 .config/awesome/themes/lanxu/icons/tiletop.png delete mode 100644 .config/awesome/themes/lanxu/icons/vol.png delete mode 100644 .config/awesome/themes/lanxu/icons/vol_low.png delete mode 100644 .config/awesome/themes/lanxu/icons/vol_mute.png delete mode 100644 .config/awesome/themes/lanxu/icons/vol_no.png create mode 100644 .config/awesome/themes/lanxu/icons/wall-clock.png create mode 100644 .config/awesome/themes/lanxu/titlebar/minimize_focus.png create mode 100644 .config/awesome/themes/lanxu/titlebar/minimize_normal.png diff --git a/.config/awesome/lanxu/ip.lua b/.config/awesome/lanxu/ip.lua new file mode 100644 index 0000000..0a4fcb2 --- /dev/null +++ b/.config/awesome/lanxu/ip.lua @@ -0,0 +1,53 @@ +local naughty = require("naughty") +local wibox = require("wibox") +local json = require("lanxu/dkjson") +local gears = require("gears") +local focused = require("awful.screen").focused +local easy_async = require("awful.spawn").easy_async + +local function factory(args) + local args = args or {} + local calluri = args.uri or "https://api.ipify.org" + local settings = args.settings or function() end + local homeaddress = args.homeaddress or nil + + local ip = { widget = wibox.widget.textbox() } + ip.widget:set_markup("N/A") + + function ip.attach(obj) + obj:connect_signal("button::press", function() + ip.update() + end) + end + + function ip.update() + local cmd = string.format("curl -s " .. "'" .. calluri .. "'") + + address = "N/A" + settings() + + easy_async(cmd, function(response, stderr, reason, exit_code) + address = response + address = string.gsub(address, "[^0-9.]", "") + if address == homeaddress then + address = "Home" + end + + ip.address = address + widget = ip.widget + + settings() + end) + end + + ip.attach(ip.widget) + + address = "N/A" + settings() + + ip.update() + + return ip +end + +return factory diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 33013d7..fc73210 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -260,8 +260,8 @@ awful.screen.connect_for_each_screen(function(s) spacer, mydpmsstatus, spacer, - mycloudstatus, - spacer, + --mycloudstatus, + --spacer, mycpu, spacer, mymem, @@ -269,11 +269,8 @@ awful.screen.connect_for_each_screen(function(s) myweather, spacer, mycputemp, - spacer, mygputemp, - spacer, mytextclock, - spacer, s.mylayoutbox, } -- Only show everything on the first screen diff --git a/.config/awesome/themes/lanxu/icons/ac.png b/.config/awesome/themes/lanxu/icons/ac.png deleted file mode 100644 index 96efcb4e657c94635f7518fd5277b19de2dd7c91..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 106 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|m3_V>OLp07OCrH>Ooc^!-pHr(b zfyqlDO;J0=F`R+XuIEJ5%o9Z>X0J~aT1<2_2w`COQZ8$rCTLv()Xd=N>gTe~DWM4f DZq^-* diff --git a/.config/awesome/themes/lanxu/icons/battery.png b/.config/awesome/themes/lanxu/icons/battery.png deleted file mode 100644 index 8c85596da55be5c09cbfac3b49b6ffe8577a9bc6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 148 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|mqCH(4Lp08Bofyb}F}Gpj#;^Q|u4iT}OAh|hzF>CEzT{iy fo3sVktQi>II|u~-(iQy)G?u~B)z4*}Q$iB}C?+gu diff --git a/.config/awesome/themes/lanxu/icons/battery_low.png b/.config/awesome/themes/lanxu/icons/battery_low.png deleted file mode 100644 index 29f3fc5878f55ab5441f769ff021929434507c03..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 131 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|mygXeTLp07OCrB_Qoc^!-|Kd@J zKv9Joc0Crp2baxhY~*xS{4SPPVkpM*xGwotL!uC~@?rTyYJVNR^O;TFz`!$kL*-o7 ea0Q++1_t*g{@_>LK`KB~89ZJ6T-G@yGywpwd?`Nw diff --git a/.config/awesome/themes/lanxu/icons/centerfair.png b/.config/awesome/themes/lanxu/icons/centerfair.png deleted file mode 100644 index c4f64b0f1d746c6fbf9fa586b7de90d66496d020..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 179 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|wj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&pI+QHFz4juLthcm7$NK6zcdZpUN&)jp^{Cn_O1qS&FIeGR^ SJiI`&7(8A5T-G@yGywpGh%+Dn diff --git a/.config/awesome/themes/lanxu/icons/centerwork.png b/.config/awesome/themes/lanxu/icons/centerwork.png deleted file mode 100644 index 90715169a2159b60c24d5ed69a2349abbbd2de5d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 195 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|wj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&pI+QHF=jY}w3=Y@kqpr;B5V#p&cf|Nq-Fn=%M9Pd)I! zxPx_O@%ML;6%Cr&(#ArM9+wL4VsiSUD01V(!v@|5lhPHB{XcTzaj$93Iz`KC9aH6- jHoA52Gxr?cF2Ts~^M$^6?siTcpxF$bu6{1-oD!M<>&pI+QHF!D-0hq?K(iSg3Tg3euD741Y#W6(Ua_>b&Kj%P!)`$7C zv{W)DiwUvple(;y9LeHwtuVatz@~}Y*_)JE4o|*Xy8Y3z^-JD!<`oqkomu}Zg)QK8 zghBTFJSUD7=dbC-%fCO9eQ{@h(aUQ=!F-dCo2g5EJzMu--Q(6-MPjN^J@-znU)$O& zx2W6b!jF%M&keTtTlPEU3g+eRiK_l`H{4nJ za0`PlBg3pY5H=O_WO*&!U{&h&U+^Sg}gjn978nDC!3@w@XU~4+q&r4|Fi!C zJ=dsRH8L`|V&vqJQs{O?q2Z-_=#iF{43phg9S&UU@Jw;%%AfX|Sd98P@5*jaIPiG) cLg9l9J6}qFoXoaj1<+ImPgg&ebxsLQ0JP#ey8r+H diff --git a/.config/awesome/themes/lanxu/icons/dwindle.png b/.config/awesome/themes/lanxu/icons/dwindle.png deleted file mode 100644 index 649ea993e64c3d85e2cb7d7f4821034183a3e8cc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 208 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|wj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&kwgQCL_(ar)msen6pEPZ!4!i_^&_CMGEh*bip-b-6pffg}%y85}Sb4q9e0JqaUKL7v# diff --git a/.config/awesome/themes/lanxu/icons/fairh.png b/.config/awesome/themes/lanxu/icons/fairh.png deleted file mode 100644 index 62d3d99eb168e2b96a0ce89ccdad4a472c72a38c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 203 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|wj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&kwgQCL`k&qn8 z8x@Mf*3bJZe~gdUH&x}x@z+WvtSvv36*gq13lyCZINZ+YmX#_f=Cp0$a`~8(4XpE- rVmJk6AJl0%)G@*0>fwwJOO+Yg>+}z2+KE>J?O^b9^>bP0l+XkKW6V5k diff --git a/.config/awesome/themes/lanxu/icons/fairv.png b/.config/awesome/themes/lanxu/icons/fairv.png deleted file mode 100644 index 131dd0f91316ef71f2f44b449a4d03f3f748d06d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 214 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|wj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&kwgQCL{s@{Yfs3Q#E7)5S5w;&if!iAl-=wuGbwLJ~D> z8x@Mf*3bJZKmE{!3n6YPKSAUiw#49uJjPv(7QBa^Yc1N_cGlE{Q@JL~gG;$aPffF@ zqt7(yP{)c0WwoA;Z&C|OT&5ZvQa^7|(=Es#>}_o?yG`8@XdQ#6tDnm{r-UW|`r|=$ diff --git a/.config/awesome/themes/lanxu/icons/floating.png b/.config/awesome/themes/lanxu/icons/floating.png deleted file mode 100644 index d25c47b961afcc7b578d15aedb0fcab32e6c6745..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 198 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|wj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&kwgQCL{TtiWkcFHk7h)5S5w;&k$#|NrfoO&Nrlryh7< z+`&5g!QI{IoNRM8Z8B7LY~G-$l5)|2FXz?~sUn3#H-0e5=C4uAR#B4_=&1|hO;$90 lD3~jtdC!rp=kRt3Mutz;isp>+tsoaOc)I$ztaD0e0sshjImiG2 diff --git a/.config/awesome/themes/lanxu/icons/gpu.png b/.config/awesome/themes/lanxu/icons/gpu.png new file mode 100644 index 0000000000000000000000000000000000000000..49266993554f215c2d4f27660cf4e6118d94860b GIT binary patch literal 475 zcmeAS@N?(olHy`uVBq!ia0vp^{2nK7?H6LD74bk#W6(Ua__~BxlE1%tq=1B zL?aX$nWKw@{bYQ+1O}$*Y^t|!`*=Cy?$o$n$F%p^#J;GW>@Tt;C;E2PoO`#n7A^U& zeveVw84Y~O#nQ4`{H6*(SMFBNPf@}!RPb(=;EJ|f4FE7{2%*!rLPAo{(%P&fw T{mw=TsEEPS)z4*}Q$iB}9>Jmf literal 0 HcmV?d00001 diff --git a/.config/awesome/themes/lanxu/icons/hdd.png b/.config/awesome/themes/lanxu/icons/hdd.png deleted file mode 100644 index 0fb6833992cd57152c44d29af64c0979da002ff2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|mn3BBRT^Rni_n+Ah4nJ za0`PlBg3pY5H=O_WO*&!t!#JuD|_(LVcbtjv*T7&tBTd%VfyY`tbe>6)P(* zCB=&Y_Y^|zaGASlncp#(lG6~;pk=Bnt?=$*TL-u5j?G^+w<$-T{yyWQ_miTX2d0Lv ztyP{-u|a|1qFP+nwxqL0%<{K;W!^+?(Y`SCV8Vvt+z-MV#AC8nF!!@cf_Z;UAbPY*cm>?$w+EbQy!EtDnm{r-UW|V`f{{ diff --git a/.config/awesome/themes/lanxu/icons/magnifier.png b/.config/awesome/themes/lanxu/icons/magnifier.png deleted file mode 100644 index 60d3e0d85ba044c549c08457bfc6a1ee490d9471..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 228 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|wj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&kwgQCL`>q1o%04p6Aj)5S5w;`H4s7kM27c~}E-b*?1# zBxos@c)a&kTC{iSj|tc9IhXHfa#6Xf;Wz!2t;TugtJfBDd#_A!y0*l__@3gml&ja) zs^z@RIBIib?;A;H4xiivj>ZcPN|{DZ0StOutoaW8P)XuHt=@l5``3H(PmE_QJ?v+& SuTleA&fw|l=d#Wzp$PyN#7s~C diff --git a/.config/awesome/themes/lanxu/icons/mail.png b/.config/awesome/themes/lanxu/icons/mail.png deleted file mode 100644 index 474e602046d817ced35d65a8f329ae1dbd9368e2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 189 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|mn3BBRT^Rni_n+Ah4nJ za0`PlBg3pY5H=O_WO*&!YWExGcrB^h5S5S978nDU%lwa#h}2!;$Z%3?)$g3 zWgMAnSM)v2oaiW$ShP;%{lYg3b@T#wChsv6b~>sQ{N?5rVPiE$%{gDMaH$oRvMy(Q gyYBG%{kxq+-~X2Mf0{bq7icnrr>mdKI;Vst0K4%#?*IS* diff --git a/.config/awesome/themes/lanxu/icons/mail_on.png b/.config/awesome/themes/lanxu/icons/mail_on.png deleted file mode 100644 index 19106d7bb921f60cd5bdc832756020be7665f3e2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 213 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|wj^(N7l!{JxM1({$v_d#0*}aI z1_r((Aj~*bn@<`j$X?><>&kwgQCL`3FL%|-M4(WTr;B5V#pz@d6O)t$YzavVgd~o! zZCt>8Ce-w=f6uWex0g$P+{F>gXxNrunz3%x%leu&)%$j5JI-E>ILt9UaR<-AOaUL} zO^G*-Okh;rHl;U5+eg{Va1Yx=>Fl1xmAM>JEDT%Yji$5O=>!99WAJqKb6Mw<&;$Ss C07L)) diff --git a/.config/awesome/themes/lanxu/icons/max.png b/.config/awesome/themes/lanxu/icons/max.png deleted file mode 100644 index 5b0a5b711ad7fa926a039c3abf58cc41491eed3f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 228 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|wj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&kwgQCL{n;>K=vU!YK-r;B5V#p%0OF7i4E@~{Tv>Rd_e zNzhU*@p$j8v}o_t9}}+Ib1vV}-ZzrY96q@T9E}$olroK+0vPnRSo0nFp_0UZTD||A_OJKmpBT?rdf3lk SU!?}LoWax8&t;ucLK6T_!c4RP diff --git a/.config/awesome/themes/lanxu/icons/mem.png b/.config/awesome/themes/lanxu/icons/mem.png deleted file mode 100644 index 7860a1a0ee9f48c57d7c3119b6dd18736fc7eb46..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 93 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|mR6JcALp07OCrI!moURY?5lV0| q=VYvTP~>xDhKsFh318De4u;(?`4`Mec&`Uk&*16m=d#Wzp$P!-9~r*@ diff --git a/.config/awesome/themes/lanxu/icons/net.png b/.config/awesome/themes/lanxu/icons/net.png deleted file mode 100644 index bc42fdc3e5bca1e9fd3f8662f410630012c898b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 193 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|mn3BBRT^Rni_n+Ah4nJ za0`PlBg3pY5H=O_WO*&!pfSPxYa@Gf;?RuLp07Oo1`f4%#dK4uOyb@_qm>B z_cX!Pi=O>IA#}pV?TSLf%+@tBhplF)tXkRgqVeV*`MWYa_f7w=PhFGh@{J*EatGJ) kXa8S3n~;4;A%KNpnwgmVwsqxufTlBey85}Sb4q9e0Iaz`oB#j- diff --git a/.config/awesome/themes/lanxu/icons/net_wired.png b/.config/awesome/themes/lanxu/icons/net_wired.png deleted file mode 100644 index e8cc2bded95cee82ea42f1cd5dd16bb6deeaeb6a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 186 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|wj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&kwgQCL`6xP<*5FHp$c)5S5w;&gI?1gl81ZuGW4_cx`U zuHPkj!lQ@rMUtJJoy4yQ4?_m|ghQzv{r&vPX0tu{_=CP01WB2Nlxuo!bTbw2Wje*c YU}~zopr0G=%~+5i9m diff --git a/.config/awesome/themes/lanxu/icons/note.png b/.config/awesome/themes/lanxu/icons/note.png deleted file mode 100644 index baa29c325da150a0cc75f87e021624822a7c2bef..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 196 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|mn3BBRT^Rni_n+Ah4nJ za0`PlBg3pY5H=O_WO*&!m<>&kwgQCL{U@aN8{SAjw{o-U3d7N?UbP0l+XkKH~=`V diff --git a/.config/awesome/themes/lanxu/icons/ram.png b/.config/awesome/themes/lanxu/icons/ram.png new file mode 100644 index 0000000000000000000000000000000000000000..7f61ac2c7e102bc45aca1613345f48c2a2b0b8fc GIT binary patch literal 464 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6SkfJR9T^xl_H+M9WCijSl0AZa z85pY67#JE_7#My5g&JNkFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenMVO6iP5s=4O z;1OBOz`%C|gc+x5^GO2**-JcqUD+Qq3WzeArdVi30fpvyx;TbtoIiR|H;<`MgyqBi z`p5v&TtS_bLYC_xg$;6Sz77Wj4PqGLkGgU+g%mM}NVzhvU$okT;bhO8{^`>n{`4>m z+rRjK+ODuFF7~C1l3p&ju=z1g>xq@Izz{Kj6a_^(OV!e!gf`2Bv?*cZF*>20OB z*qUQogzWwtxpLr0c-PwAwkK=UR`ZCbn?6jLa67tr`s!cG8TM75zr2xsz|V9n#V zixQwqRZCnWN>UO_QmvAUQh^kMk%6J5u7RPhp;?HLft7)wm8r2dkTfumxc~S+iiX_$ zl+3hB+!`{QqMd;nBtbR==ckpFCl;kLl$V$5W#(lUCnpx9>g5-u&wghk1ysb~>FVdQ I&MBb@05D6M`Tzg` literal 0 HcmV?d00001 diff --git a/.config/awesome/themes/lanxu/icons/scissors.png b/.config/awesome/themes/lanxu/icons/scissors.png deleted file mode 100644 index f8c700de3a10d2ceab2c75b373d8fd505df318d4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 130 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|Pfr)e5R22v2@m-Yys^b4)!$U{a$m4-d~iAZBafS+J{ng_zrw{;h!q bEes5PT3#AFvZjVWLm50>{an^LB{Ts5!crwr diff --git a/.config/awesome/themes/lanxu/icons/spiral.png b/.config/awesome/themes/lanxu/icons/spiral.png deleted file mode 100644 index d9ee0f6b1c3a6115073ce080a36ef4bf67a73265..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 206 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|wj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&kwgQCL_;^>MP}3ZPK5r;B5V#pz@d6O)t$YzavVgd}R% zHYyZ{t)KT-KGrcKLrYn&a1Pr-Z3i=k=|2QGm1`JgmwT9T*e0Ab>zEOtY}Jz>Rk*XS tGb+(#Q+EfSa*WyGBZVi8`R*sNFzh;^;ksv)y*SVs22WQ%mvv4FO#s^oJFox% diff --git a/.config/awesome/themes/lanxu/icons/square_sel.png b/.config/awesome/themes/lanxu/icons/square_sel.png deleted file mode 100644 index 1102a9f1cbaf6a28919c09ff7dee2d965f9e8477..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 81 zcmeAS@N?(olHy`uVBq!ia0vp^EI`c1!3HEbvi3>Idk{PgWHpVY8X6S{an^LB{Ts5i~tj! diff --git a/.config/awesome/themes/lanxu/icons/square_unsel.png b/.config/awesome/themes/lanxu/icons/square_unsel.png deleted file mode 100644 index 7386b85f6438ffe9a710a6e1d5e55ce9ee62b300..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 88 zcmeAS@N?(olHy`uVBq!ia0vp^EI`c1!3HEbvi3>oRO!#M_qC4nJ za0`PlBg3pY5H=O_WO*&!ZM;qcNKy(`+2%JhG?8mHc3(7nIXY8Ur9`2@lX3r z1-i;&u4n%Twg$QuM6|E!eSd diff --git a/.config/awesome/themes/lanxu/icons/temp.png b/.config/awesome/themes/lanxu/icons/temp.png deleted file mode 100644 index 6793a9fba821d053dcbe5a9e3b85a7da32a5bb98..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 119 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|J5LwK5R22v2@^V0#J+(KI zp4rbMankU@@#E~y^1>VS4yJQ>>K%Nlx`<~%m*R~ZKNy5#7tPJl?`68h#Ngs?korw` R-Bh4S44$rjF6*2UngCC0B#i(7 diff --git a/.config/awesome/themes/lanxu/icons/termfair.png b/.config/awesome/themes/lanxu/icons/termfair.png deleted file mode 100644 index 3e060236f3145079534fb517b539c42ecea81fad..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 972 zcmaJ=zi-n(7&VGOs8WaWW1!RFE+93wFR5K(#iXenQ%iLer4db;>e$!DYV9+=3vs$o zF~NdhKmtY>*w_&RtYrYP6(;@ykXTrd$~lcw27+b#e(1gTefNFu9yIDVrl)47IF6gP zR*WVa&!yklGwgr!_|sle`PO5YkT#UySL+( zJic-rloOQ+1c*8y33fxGCK^A~RoOh<7I`p)&>f9GPO5D;fR1AXWTBXMB?y6{2yj7G z6gUqG5-f-kdzCy~P-R6eEP~O)vuLrmr8W(76pO7izDsGOiekUt7y3m3$J-(-l}f2b zp^#^YJQ;-4N%A3?%M=Vm+}Mw(k3*0uIvw1j8qYF4K0*+UWkWJ56DydQIFSeiDLqmK zwC(>xgJ6s%w24mg{iiT#4I(5q5y8FKWsTdKOG8Df9wUe1xP|dejaQ%t%z0{WT) zuB`i^hx_E}5O3S66%y)%F0u@bX9|Mvd#bT0$+a3ZtBP5LuvT1FV9_v_uR&cenX;*8 zTm!qk0EIN;dSh-un#fJ95JW7pfnxs-^2`_qV0dKJpPY*^QE$ZcCguWb6S*QwMob&~ zSEI8n=ALvqwk=zXjgLa+_L$lF`J=m^*p*najA|?S+WCESRLRNQ`P`HD--`E7KO?`s zZ@kE@ZhUz<^QwAyVKa9)?_D-$;Qr%VpDVNGOJ|`>DogvPxPza<>&kwgQCL`pW7!_ryFj4;PZ!4!i_^&_CMGEh*b<>&kwgQCL{oIO1E99Z)FL)5S5w;&if!iAl-=wuGbwLJ~D> z8x@Mf*3bJpKcaWx!j(N1yoZ)CNFPXhsKBorbeL1pAV}NsQP0*37ed^eYW5_ytZNXc o=SUU&5}|x#dDR-;eFjVnmuIV7uKFEv8E656r>mdKI;Vst0BT-7KL7v# diff --git a/.config/awesome/themes/lanxu/icons/tileleft.png b/.config/awesome/themes/lanxu/icons/tileleft.png deleted file mode 100644 index 8e3d2d62e1ef7cce65d983c8b02763c7f628b8ee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 193 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|wj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&kwgQCL`7;f{y$1E7$fr;B5V#pz@d6O)t$YzavVgd}R% zHYyZ{t)KT-KGrcKLrYn&a1Pr-Z3i=k=@x#?8#I+}X1_SMv`S)Pj(}mJ;}*xoi7s^# gf<{vce~2kFTou)~uh{?W9nfS3Pgg&ebxsLQ01)#x-~a#s diff --git a/.config/awesome/themes/lanxu/icons/tiletop.png b/.config/awesome/themes/lanxu/icons/tiletop.png deleted file mode 100644 index 3da75a195a59ef0b96d48e3c431fa7d1acd08061..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 199 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|wj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&kwgQCL`-xlTW55>P0_)5S5w;&if!iAl-=wuGbwLJ~D> z8x@Mf*3bJZe~gdUH&x}x@z+WvtSvvBH8xB<+$dqkV-Te6xJe*c+N?qDg-(k|0`m@gO_&+H9f z&G0Z}nZK~-h(tm{(xDEW_A~0IT$fZ#?2JnE+~Rm+k8@CuVs+;Yi6t7p+!;#&|;OXk;vd$@?2>=T<>&kwYnMYV$RMJK^7bxWC>Eak-aXL9cg0-1F#-jL{z2U1F z9)?d2%``r<w9RBcMrMg!nULaRs()SrBy9}Rv*j4b1 h=k4Npkqd$h3@1319``bY{{foJ;OXk;vd$@?2>{)OJgNWy diff --git a/.config/awesome/themes/lanxu/icons/vol_mute.png b/.config/awesome/themes/lanxu/icons/vol_mute.png deleted file mode 100644 index e855fd24fe7ce939af2103bbc4b9113c2ccfa3f3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 227 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|wj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&kwYnU_OVv-pi%K2WH@)5S5w;`G~z-dqP1cwF3d=c#w! z`OmWXL?Ktu+ha{roI*899!955tbD?(^RId0(&gv-J$iVy_AqPNgG-Da zZp+?v<{k0QOA!k-*XA;v<9e00k^1!2Nzh{3P{j02m RUIOiA@O1TaS?83{1OP=mP67Y` diff --git a/.config/awesome/themes/lanxu/icons/vol_no.png b/.config/awesome/themes/lanxu/icons/vol_no.png deleted file mode 100644 index bbe917bddd40fad1749912c76417dff1563dccd9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 127 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|H%}MG5R22v2@@gO_&+H9f z&FC;qIXz9cNBrEJ#A8dRwTgsG%$V^<^|b4f21dgU!B@F%o051e_vp>BJnZ!Og*$$z+EaigGI+ZBxvXJ{uDK8*e`WbW^~~#P(>W_{ zMt+d1xTyW$h%1NAsWnxex_g6h`BoWfs|#c1(u;v8k?X3M?**SXY8TErERK(!v>gTe~DWM4fUS`hs literal 0 HcmV?d00001 diff --git a/.config/awesome/themes/lanxu/titlebar/minimize_focus.png b/.config/awesome/themes/lanxu/titlebar/minimize_focus.png new file mode 100644 index 0000000000000000000000000000000000000000..ff427b36f616c0243ec05544db08ce78fce05340 GIT binary patch literal 277 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_Gz7y~NYkmHj>ko3Ij7ZnahtP-u~-i(^Q|t+&@UavnAiU=5fn9qyOE zb_VMl&P|SPTYj%7TKeT63p-Ee#pAt0`Wav L{an^LB{Ts5esO19 literal 0 HcmV?d00001 diff --git a/.config/awesome/themes/lanxu/titlebar/minimize_normal.png b/.config/awesome/themes/lanxu/titlebar/minimize_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..aa4744730757534a7d4be08b406e12fe0f4f9ec1 GIT binary patch literal 272 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_Gz7y~NYkmHj>ko3N_Rzc(ARfI@RUT^vIyZoR#Bkn@m%2-}1GN)<(0 z$^^w%2)|&_yL7SWm1f*httAf@9(`}kdP$|$UU3f#P!|yVbGrWPp^5KwmF+6ek6zi+ zXyvE>I4E1TJ+Weoj?FrYC&3?2AKw1pPU&4+&tQgjQ|b3F(#-$Aet7>r10#n615-w5 zSxETLN`|f13e^>-s9c|4-W0#<@LE&Hm%r=yAU5o&WJ-t<-;%lHP#s9X)78&qol`;+ E08>L`*8l(j literal 0 HcmV?d00001 diff --git a/.config/awesome/widgets.lua b/.config/awesome/widgets.lua index 6532dc4..b40f4f6 100644 --- a/.config/awesome/widgets.lua +++ b/.config/awesome/widgets.lua @@ -5,10 +5,16 @@ local lain = require("lain") local vicious = require("vicious") -- Custom local beautiful = require("beautiful") -- CPU temp local wibox = require("wibox") +local gears = require("gears") -- Variables local valuecolor = "white" +icons_dir = os.getenv("HOME") .. "/.config/awesome/themes/lanxu/icons/" +cpuicon = wibox.widget.imagebox() +cpuicon.image = icons_dir .. "cpu.png" +cpuicon.resize = false + -- Helpers function file_exists(name) local f = io.open(name,"r") @@ -39,8 +45,18 @@ mymem = lain.widget.mem({ }) -- GPU -mygputemp = wibox.widget.textbox() -vicious.register(mygputemp, gputemp, create_markup("GPU", "$0", "℃", valuecolor), 15, "AMD") +mygputemp_text = wibox.widget.textbox() +mygputemp_text.align = "center" +vicious.register(mygputemp_text, gputemp, +function(widget, args) + temp = string.format("%.0f", tonumber(args[0])) + return create_markup("", temp, "℃", valuecolor) +end, 15, "AMD") +mygputemp = wibox.container.background() +mygputemp.forced_width = 70 +mygputemp:set_widget(mygputemp_text) +--mytextclock:set_shape(gears.shape.hexagon) +mygputemp:set_bg('#5e35b1') -- Hubic myhubic = wibox.widget.textbox() @@ -62,27 +78,42 @@ volume = lain.widget.pulse({ }) -- Text clock -mytextclock = wibox.widget.textclock(create_markup("Date","%Y-%m-%d %H:%M","", valuecolor)) - -lain.widget.calendar({ +mytextclock_text = wibox.widget.textclock(create_markup("","%Y-%m-%d %H:%M","", valuecolor)) +mytextclock_text.align = "center" +lain.widget.cal({ followtag = true, - attach_to = {mytextclock} + attach_to = {mytextclock_text}, + notification_preset = { + font = "Monospace 11", fg = "#FFFFFF", bg = "#000000" + } }) +mytextclock = wibox.container.background() +mytextclock.forced_width = 130 +mytextclock:set_widget(mytextclock_text) +mytextclock:set_bg('#512da8') + -- CPU temperature -local tempfile = "/sys/bus/pci/drivers/k10temp/0000:00:18.3/hwmon/hwmon2/temp1_input" +local tempfile = "/sys/bus/pci/drivers/k10temp/0000:00:18.3/hwmon/hwmon1/temp1_input" +--local tempfile = "/sys/bus/pci/drivers/k10temp/0000:00:18.3/hwmon/hwmon2/temp1_input" if file_exists(tempfile) == false then tempfile = "/sys/class/thermal/thermal_zone0/temp" end -mycputemp = lain.widget.temp({ +mycputemp_text = lain.widget.temp({ tempfile = tempfile, settings = function() - widget.markup = create_markup("CPU", coretemp_now, "℃", valuecolor) + temp = string.format("%.0f", tonumber(coretemp_now)) + widget.markup = create_markup("", temp, "℃", valuecolor) end }) +mycputemp_text.widget.align = "center" +mycputemp = wibox.container.background() +mycputemp.forced_width = 70 +mycputemp:set_widget(mycputemp_text.widget) +mycputemp:set_bg('#9575cd') -- Weather Widget myweather = lain.widget.weather({ city_id = 634963, @@ -90,11 +121,19 @@ myweather = lain.widget.weather({ followtag = true, settings = function() widget.markup = create_markup("Tampere", weather_now.main.temp, "℃", valuecolor) - end + end, + notification_preset = { + font = "Monospace 11", fg = "#FFFFFF", bg = "#000000" + } }) -- DPMS mydpmsstatus = wibox.widget.textbox() +-- mydpmsstatus.container.background.bg = '#ff0000' +--mydpmsstatus = { +-- widget = wibox.widget.textbox +--} + vicious.register(mydpmsstatus, dpmsstatus, function(widget, args) color = valuecolor if args[0] == "Enabled" then @@ -109,21 +148,21 @@ 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 -}) +--local mcstatus = require("lanxu/mcstatus") +--myserverstatus = mcstatus({ + --notification_preset = notification, + --settings = function() + --widget.markup = create_markup("PLAYERS", totalplayers, "", valuecolor) + --end +--}) -local cloudstatus = require("lanxu/cloudstatus") -mycloudstatus = cloudstatus({ - notification_preset = notification, - settings = function() - widget.markup = create_markup("CLOUD", currentstatus, "", valuecolor) - end -}) +--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({ @@ -132,3 +171,4 @@ ipaddress = ip({ widget.markup = create_markup("IP", address, "", valuecolor) end }) + diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf index dd8bc42..fafef35 100644 --- a/.config/ranger/rc.conf +++ b/.config/ranger/rc.conf @@ -1,7 +1,8 @@ # =================================================================== # This file contains the default startup commands for ranger. -# To change them, it is recommended to create the file -# ~/.config/ranger/rc.conf and add your custom commands there. +# To change them, it is recommended to create either /etc/ranger/rc.conf +# (system-wide) or ~/.config/ranger/rc.conf (per user) and add your custom +# commands there. # # If you copy this whole file there, you may want to set the environment # variable RANGER_LOAD_DEFAULT_RC to FALSE to avoid loading it twice. @@ -85,6 +86,10 @@ set preview_images true # width of 8 and height of 11 are used. To use other values, set the options # iterm2_font_width and iterm2_font_height to the desired values. # +# * terminology: +# Previews images in full color in the terminology terminal emulator. +# Supports a wide variety of formats, even vector graphics like svg. +# # * urxvt: # Preview images in full color using urxvt image backgrounds. This # requires using urxvt compiled with pixbuf support. @@ -92,7 +97,28 @@ set preview_images true # * urxvt-full: # The same as urxvt but utilizing not only the preview pane but the # whole terminal window. -set preview_images_method w3m +# +# * kitty: +# Preview images in full color using kitty image protocol. +# Requires python PIL or pillow library. +# If ranger does not share the local filesystem with kitty +# the transfer method is changed to encode the whole image; +# while slower, this allows remote previews, +# for example during an ssh session. +# Tmux is unsupported. +# +# * ueberzug: +# Preview images in full color with the external command "ueberzug". +# Images are shown by using a child window. +# Only for users who run X11 in GNU/Linux. +set preview_images_method ueberzug + +# Delay in seconds before displaying an image with the w3m method. +# Increase it in case of experiencing display corruption. +set w3m_delay 0.02 + +# Manually adjust the w3mimg offset when using a terminal which needs this +set w3m_offset 0 # Default iTerm2 font size (see: preview_images_method: iterm2) set iterm2_font_width 8 @@ -101,6 +127,10 @@ set iterm2_font_height 11 # Use a unicode "..." character to mark cut-off filenames? set unicode_ellipsis false +# BIDI support - try to properly display file names in RTL languages (Hebrew, Arabic). +# Requires the python-bidi pip package +set bidi_support false + # Show dotfiles in the bookmark preview box? set show_hidden_bookmarks true @@ -124,8 +154,11 @@ set status_bar_on_top false # currently running tasks which support progress bars? set draw_progress_bar_in_status_bar true -# Draw borders around columns? -set draw_borders false +# Draw borders around columns? (separators, outline, both, or none) +# Separators are vertical lines between columns. +# Outline draws a box around all the columns. +# Both combines the two. +set draw_borders none # Display the directory name in tabs? set dirname_in_tabs false @@ -137,6 +170,9 @@ set mouse_enabled true set display_size_in_main_column true set display_size_in_status_bar true +# Display the free disk space in the status bar? +set display_free_space_in_status_bar true + # Display files tags in all columns or only in main column? set display_tags_in_all_columns true @@ -144,7 +180,7 @@ set display_tags_in_all_columns true set update_title false # Set the title to "ranger" in the tmux program? -set update_tmux_title false +set update_tmux_title true # Shorten the title if it gets long? The number defines how many # directories are displayed at once, 0 turns off this feature. @@ -216,6 +252,10 @@ set cd_tab_fuzzy false # disable this feature. set preview_max_size 0 +# The key hint lists up to this size have their sublists expanded. +# Otherwise the submaps are replaced with "...". +set hint_collapse_threshold 10 + # Add the highlighted file to the path in the titlebar set show_selection_in_titlebar true @@ -232,9 +272,14 @@ set metadata_deep_search false # Clear all existing filters when leaving a directory set clear_filters_on_dir_change false -# Disable displaying line numbers in main column +# Disable displaying line numbers in main column. +# Possible values: false, absolute, relative. set line_numbers false +# When line_numbers=relative show the absolute line number in the +# current line. +set relative_current_zero false + # Start line numbers from 1 instead of 0 set one_indexed false @@ -249,6 +294,13 @@ set wrap_scroll false # directories, files and symlinks respectively. set global_inode_type_filter +# This setting allows to freeze the list of files to save I/O bandwidth. It +# should be 'false' during start-up, but you can toggle it by pressing F. +set freeze_files false + +# Print file sizes in bytes instead of the default human-readable format. +set size_in_bytes false + # =================================================================== # == Local Options # =================================================================== @@ -270,8 +322,8 @@ alias qall quitall alias qall! quitall! alias setl setlocal -alias filter scout -prt -alias find scout -aeit +alias filter scout -prts +alias find scout -aets alias mark scout -mr alias unmark scout -Mr alias search scout -rs @@ -296,6 +348,8 @@ map change_mode normal map ~ set viewmode! map i display_file +map scroll_preview 1 +map scroll_preview -1 map ? help map W display_log map w taskview_open @@ -311,6 +365,8 @@ map r chain draw_possible_programs; console open_with%%space map f console find%space map cd console cd%space +map chain console; eval fm.ui.console.history_move(-1) + # Change the line mode map Mf linemode filename map Mi linemode fileinfo @@ -374,6 +430,7 @@ map L history_go 1 map ] move_parent 1 map [ move_parent -1 map } traverse +map { traverse_backwards map ) jump_non map gh cd ~ @@ -385,9 +442,10 @@ map gL cd -r %f map go cd /opt map gv cd /var map gm cd /media +map gi eval fm.cd('/run/media/' + os.getenv('USER')) map gM cd /mnt map gs cd /srv -map gt cd /tmp +map gp cd /tmp map gr cd / map gR eval fm.cd(ranger.RANGERDIR) map g/ cd / @@ -400,6 +458,7 @@ map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh map yp yank path map yd yank dir map yn yank name +map y. yank name_without_extension # Filesystem Operations map = chmod @@ -474,6 +533,8 @@ map tab_open 6 map tab_open 7 map tab_open 8 map tab_open 9 +map tab_shift 1 +map tab_shift -1 # Sorting map or set sort_reverse! @@ -503,6 +564,8 @@ map zc set collapse_preview! map zd set sort_directories_first! map zh set show_hidden! map set show_hidden! +copymap +copymap map zI set flushinput! map zi set preview_images! map zm set mouse_enabled! @@ -514,6 +577,21 @@ map zv set use_preview_script! map zf console filter%space copymap zf zz +# Filter stack +map .n console filter_stack add name%space +map .m console filter_stack add mime%space +map .d filter_stack add type d +map .f filter_stack add type f +map .l filter_stack add type l +map .| filter_stack add or +map .& filter_stack add and +map .! filter_stack add not +map .r console filter_stack rotate +map .c filter_stack clear +map .* filter_stack decompose +map .p filter_stack pop +map .. filter_stack show + # Bookmarks map ` enter_bookmark %any map ' enter_bookmark %any @@ -558,8 +636,11 @@ cmap eval fm.ui.console.move(left=1) cmap eval fm.ui.console.move(right=1) cmap eval fm.ui.console.move(right=0, absolute=True) cmap eval fm.ui.console.move(right=-1, absolute=True) -cmap eval fm.ui.console.move_word(left=1) -cmap eval fm.ui.console.move_word(right=1) +cmap eval fm.ui.console.move_word(left=1) +cmap eval fm.ui.console.move_word(right=1) + +copycmap +copycmap # Line Editing cmap eval fm.ui.console.delete(-1) @@ -571,6 +652,7 @@ cmap eval fm.ui.console.delete_rest(-1) cmap eval fm.ui.console.paste() # And of course the emacs way +copycmap copycmap copycmap copycmap diff --git a/.config/ranger/scope.sh b/.config/ranger/scope.sh index 5af4370..95718ed 100755 --- a/.config/ranger/scope.sh +++ b/.config/ranger/scope.sh @@ -31,7 +31,7 @@ IMAGE_CACHE_PATH="${4}" # Full path that should be used to cache image preview PV_IMAGE_ENABLED="${5}" # 'True' if image previews are enabled, 'False' otherwise. FILE_EXTENSION="${FILE_PATH##*.}" -FILE_EXTENSION_LOWER="${FILE_EXTENSION,,}" +FILE_EXTENSION_LOWER="$(printf "%s" "${FILE_EXTENSION}" | tr '[:upper:]' '[:lower:]')" # Settings HIGHLIGHT_SIZE_MAX=262143 # 256KiB @@ -60,9 +60,10 @@ handle_extension() { # PDF #pdf) # # Preview as text conversion - # pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - && exit 5 + # pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - | fmt -w ${PV_WIDTH} && exit 5 + # mutool draw -F txt -i -- "${FILE_PATH}" 1-10 | fmt -w ${PV_WIDTH} && exit 5 # exiftool "${FILE_PATH}" && exit 5 - # exit 1;; + # exit 1;; # BitTorrent torrent) @@ -82,10 +83,20 @@ handle_extension() { lynx -dump -- "${FILE_PATH}" && exit 5 elinks -dump "${FILE_PATH}" && exit 5 ;; # Continue with next handler on failure + + # JSON + json) + jq --color-output . "${FILE_PATH}" && exit 5 + python -m json.tool -- "${FILE_PATH}" && exit 5 +;; esac } handle_image() { + # Size of the preview if there are multiple options or it has to be rendered + # from vector graphics. If the conversion program allows specifying only one + # dimension while keeping the aspect ratio, the width will be used. + local DEFAULT_SIZE="1920x1080" local mimetype="${1}" case "${FILE_EXTENSION_LOWER}" in @@ -98,9 +109,15 @@ handle_image() { case "${mimetype}" in # SVG image/svg+xml) - convert "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6 + convert -- "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6 exit 1;; + # DjVu + # image/vnd.djvu) + # ddjvu -format=tiff -quality=90 -page=1 -size="${DEFAULT_SIZE}" \ + # - "${IMAGE_CACHE_PATH}" < "${FILE_PATH}" \ + # && exit 6 || exit 1;; + # Image image/*) local orientation @@ -125,12 +142,80 @@ handle_image() { # PDF application/pdf) pdftoppm -f 1 -l 1 \ - -scale-to-x 1920 \ + -scale-to-x "${DEFAULT_SIZE%x*}" \ -scale-to-y -1 \ -singlefile \ -jpeg -tiffcompression jpeg \ -- "${FILE_PATH}" "${IMAGE_CACHE_PATH%.*}" \ - && exit 6 || exit 1;; + && exit 6 || exit 1;; + # ePub, MOBI, FB2 (using Calibre) + # application/epub+zip|application/x-mobipocket-ebook|application/x-fictionbook+xml) + # ebook-meta --get-cover="${IMAGE_CACHE_PATH}" -- "${FILE_PATH}" > /dev/null \ + # && exit 6 || exit 1;; + + # ePub (using ) + # application/epub+zip) + # epub-thumbnailer \ + # "${FILE_PATH}" "${IMAGE_CACHE_PATH}" "${DEFAULT_SIZE%x*}" \ + # && exit 6 || exit 1;; + + # Font + application/font*|application/*opentype) + preview_png="/tmp/$(basename "${IMAGE_CACHE_PATH%.*}").png" + if fontimage -o "${preview_png}" \ + --pixelsize "120" \ + --fontname \ + --pixelsize "80" \ + --text " ABCDEFGHIJKLMNOPQRSTUVWXYZ " \ + --text " abcdefghijklmnopqrstuvwxyz " \ + --text " 0123456789.:,;(*!?') ff fl fi ffi ffl " \ + --text " The quick brown fox jumps over the lazy dog. " \ + "${FILE_PATH}"; + then + convert -- "${preview_png}" "${IMAGE_CACHE_PATH}" \ + && rm "${preview_png}" \ + && exit 6 + else + exit 1 + fi + ;; + + # Preview archives using the first image inside. + # (Very useful for comic book collections for example.) + # application/zip|application/x-rar|application/x-7z-compressed|\ + # application/x-xz|application/x-bzip2|application/x-gzip|application/x-tar) + # local fn=""; local fe="" + # local zip=""; local rar=""; local tar=""; local bsd="" + # case "${mimetype}" in + # application/zip) zip=1 ;; + # application/x-rar) rar=1 ;; + # application/x-7z-compressed) ;; + # *) tar=1 ;; + # esac + # { [ "$tar" ] && fn=$(tar --list --file "${FILE_PATH}"); } || \ + # { fn=$(bsdtar --list --file "${FILE_PATH}") && bsd=1 && tar=""; } || \ + # { [ "$rar" ] && fn=$(unrar lb -p- -- "${FILE_PATH}"); } || \ + # { [ "$zip" ] && fn=$(zipinfo -1 -- "${FILE_PATH}"); } || return + # + # fn=$(echo "$fn" | python -c "import sys; import mimetypes as m; \ + # [ print(l, end='') for l in sys.stdin if \ + # (m.guess_type(l[:-1])[0] or '').startswith('image/') ]" |\ + # sort -V | head -n 1) + # [ "$fn" = "" ] && return + # [ "$bsd" ] && fn=$(printf '%b' "$fn") + # + # [ "$tar" ] && tar --extract --to-stdout \ + # --file "${FILE_PATH}" -- "$fn" > "${IMAGE_CACHE_PATH}" && exit 6 + # fe=$(echo -n "$fn" | sed 's/[][*?\]/\\\0/g') + # [ "$bsd" ] && bsdtar --extract --to-stdout \ + # --file "${FILE_PATH}" -- "$fe" > "${IMAGE_CACHE_PATH}" && exit 6 + # [ "$bsd" ] || [ "$tar" ] && rm -- "${IMAGE_CACHE_PATH}" + # [ "$rar" ] && unrar p -p- -inul -- "${FILE_PATH}" "$fn" > \ + # "${IMAGE_CACHE_PATH}" && exit 6 + # [ "$zip" ] && unzip -pP "" -- "${FILE_PATH}" "$fe" > \ + # "${IMAGE_CACHE_PATH}" && exit 6 + # [ "$rar" ] || [ "$zip" ] && rm -- "${IMAGE_CACHE_PATH}" + # ;; esac } @@ -155,6 +240,13 @@ handle_mime() { # pygmentize -f "${pygmentize_format}" -O "style=${PYGMENTIZE_STYLE}" -- "${FILE_PATH}" && exit 5 exit 2;; + # DjVu + image/vnd.djvu) + # Preview as text conversion (requires djvulibre) + djvutxt "${FILE_PATH}" | fmt -w ${PV_WIDTH} && exit 5 + exiftool "${FILE_PATH}" && exit 5 + exit 1;; + # Image image/*) # Preview as text conversion diff --git a/.vimrc b/.vimrc index 3dd16fa..3fd155c 100644 --- a/.vimrc +++ b/.vimrc @@ -38,8 +38,8 @@ Plug 'honza/vim-snippets' "Plug 'tomasr/molokai' "Plug 'flazz/vim-colorschemes' "Plug 'morhetz/gruvbox' -Plug 'chriskempson/base16-vim' - +"Plug 'chriskempson/base16-vim' " Original but not updated +Plug 'danielwe/base16-vim' " Fork. updated. https://github.com/chriskempson/base16-vim/issues/197 " Airline Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' diff --git a/.zprofile b/.zprofile index 3f1e080..63007c7 100644 --- a/.zprofile +++ b/.zprofile @@ -53,3 +53,6 @@ export PATH="$NPM_PACKAGES/bin:$PATH" # Rust export PATH="${HOME}/.cargo/bin:$PATH" + +# Caffe +export CAFFE_DIR="${HOME}/Koodit/github/caffe/build/install" diff --git a/.zshrc b/.zshrc index bfb6bde..35bbe5e 100644 --- a/.zshrc +++ b/.zshrc @@ -44,7 +44,7 @@ alias lp="lastpass.sh" alias ranger="TERMCMD=termite ranger" alias search="search.sh" #alias ls="ls -N --time-style=long-iso --color=auto" -alias ls="ls --time-style=long-iso --color=auto" +alias ls="ls --time-style=long-iso --color=auto --human-readable --group-directories-first --classify" alias rhc='RUBYOPT="-W0" rhc' # Other alias fixsteam='find ~/.steam/root/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" \) -print -delete' @@ -52,7 +52,7 @@ alias runsteam="LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /us alias steamgamesdir='cd ~/.local/share/Steam/SteamApps/common' alias emsdksetup='source $EMSDK/emsdk_env.sh' alias runwinesteam="MESA_GL_VERSION_OVERRIDE=3.3COMPAT PULSE_LATENCY_MSEC=60 run-desktop.py ~/.local/share/applications/wine/Programs/Steam/Steam.desktop" -alias rbackup="restic -r rclone:hubic:default/Backups/ChimeraLinux" +alias rbackup="restic -r rclone:hubic:ChimeraLinux" # https://github.com/chriskempson/base16-shell # git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell source $HOME/.config/base16-shell/scripts/base16-default-dark.sh