2020-01-11 22:04:45 +01:00
<?xml version="1.0" encoding="utf-8"?>
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en" xml:lang = "en" >
< head >
2022-05-09 10:05:23 +02:00
<!-- 2022 - 05 - 09 lun. 10:04 -->
2020-01-11 22:04:45 +01:00
< meta http-equiv = "Content-Type" content = "text/html;charset=utf-8" / >
< title > Polybar Configuration< / title >
< meta name = "author" content = "Dehaeze Thomas" / >
2021-04-25 19:10:57 +02:00
< meta name = "generator" content = "Org Mode" / >
2021-01-01 20:12:34 +01:00
< link rel = "stylesheet" type = "text/css" href = "./dist/style.css" / >
< script type = "text/javascript" src = "./dist/script.js" > < / script >
2020-01-11 22:04:45 +01:00
< / head >
< body >
< div id = "org-div-home-and-up" >
< a accesskey = "h" href = "./index.html" > UP < / a >
|
< a accesskey = "H" href = "./index.html" > HOME < / a >
2021-10-25 14:37:10 +02:00
< / div > < div id = "content" class = "content" >
2020-01-11 22:04:45 +01:00
< h1 class = "title" > Polybar Configuration< / h1 >
2021-10-25 14:37:10 +02:00
< div id = "table-of-contents" role = "doc-toc" >
2020-01-11 22:04:45 +01:00
< h2 > Table of Contents< / h2 >
2021-10-25 14:37:10 +02:00
< div id = "text-table-of-contents" role = "doc-toc" >
2020-01-11 22:04:45 +01:00
< ul >
2022-05-09 10:05:23 +02:00
< li > < a href = "#org23093f7" > Colors< / a > < / li >
< li > < a href = "#org3a3f201" > VM< / a > < / li >
< li > < a href = "#org56f016e" > Top Bar< / a > < / li >
< li > < a href = "#org28d0433" > Show Windows Title< / a > < / li >
< li > < a href = "#org1bb1329" > I3 - Information about workspaces and active one< / a > < / li >
< li > < a href = "#org57e5512" > Music using MPD< / a > < / li >
< li > < a href = "#orgf3bb2b1" > Backlight level< / a > < / li >
< li > < a href = "#org4814b45" > CPU Usage< / a > < / li >
< li > < a href = "#orge0fd380" > Date< / a > < / li >
< li > < a href = "#org5d661e1" > Sound Volume< / a > < / li >
< li > < a href = "#orgd5b3549" > Battery< / a > < / li >
< li > < a href = "#org01f6889" > Temperature< / a > < / li >
< li > < a href = "#org0395cfb" > Unread Mails< / a >
2020-01-11 22:04:45 +01:00
< ul >
2022-05-09 10:05:23 +02:00
< li > < a href = "#org7fbba5b" > Unread Mail Scripts< / a > < / li >
< li > < a href = "#org9132e45" > Refresh Mail Scripts< / a > < / li >
< li > < a href = "#org7b20227" > Open Mails< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
2022-05-09 10:05:23 +02:00
< li > < a href = "#org65e9a41" > Unread News< / a >
2020-04-05 11:30:26 +02:00
< ul >
2022-05-09 10:05:23 +02:00
< li > < a href = "#orgc131299" > Unread News Scripts< / a > < / li >
< li > < a href = "#orgfc9c44a" > Refresh News Scripts< / a > < / li >
< li > < a href = "#org4009ff1" > Open Newsboat< / a > < / li >
2020-04-05 11:30:26 +02:00
< / ul >
< / li >
2022-05-09 10:05:23 +02:00
< li > < a href = "#org7319ad8" > Calendar< / a >
2020-05-26 08:40:15 +02:00
< ul >
2022-05-09 10:05:23 +02:00
< li > < a href = "#org5aef96a" > Calendar Status Scripts< / a > < / li >
< li > < a href = "#org91bad30" > Open Calendar< / a > < / li >
2020-05-26 08:40:15 +02:00
< / ul >
< / li >
2022-05-09 10:05:23 +02:00
< li > < a href = "#org311e763" > Redshift< / a >
2020-01-11 22:04:45 +01:00
< ul >
2022-05-09 10:05:23 +02:00
< li > < a href = "#orgda54f98" > Redshift - Status< / a > < / li >
< li > < a href = "#org4307668" > Toggle Redshift< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
2022-05-09 10:05:23 +02:00
< li > < a href = "#org039d261" > Packages< / a >
2020-03-01 22:51:16 +01:00
< ul >
2022-05-09 10:05:23 +02:00
< li > < a href = "#orgfe0acea" > Packages Status script< / a > < / li >
< li > < a href = "#org0793482" > Refresh New Packages script< / a > < / li >
< li > < a href = "#orgd9a1739" > Packages Update< / a > < / li >
2020-03-01 22:51:16 +01:00
< / ul >
< / li >
2022-05-09 10:05:23 +02:00
< li > < a href = "#orgd69c0e2" > Dunst< / a >
2020-01-11 22:04:45 +01:00
< ul >
2022-05-09 10:05:23 +02:00
< li > < a href = "#org5a99d64" > Dunst Status script< / a > < / li >
< li > < a href = "#org3cefd8c" > Dunst Toggle< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
2022-05-09 10:05:23 +02:00
< li > < a href = "#org6cab217" > Lock Screen< / a >
2020-01-11 22:04:45 +01:00
< ul >
2022-05-09 10:05:23 +02:00
< li > < a href = "#orgc187ea1" > Lock screen Status script< / a > < / li >
< li > < a href = "#org4bf0e14" > Toggle Automatic Lock Screen< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
2022-05-09 10:05:23 +02:00
< li > < a href = "#org36340a9" > Network< / a >
2020-04-05 11:30:26 +02:00
< ul >
2022-05-09 10:05:23 +02:00
< li > < a href = "#orgc70de40" > Run Network Manager< / a > < / li >
< li > < a href = "#orgeb3e621" > Toggle Wifi or Ethernet< / a > < / li >
2020-04-05 11:30:26 +02:00
< / ul >
< / li >
2022-05-09 10:05:23 +02:00
< li > < a href = "#org5b4ce07" > Bluetooth< / a >
2020-05-26 08:40:15 +02:00
< ul >
2022-05-09 10:05:23 +02:00
< li > < a href = "#orgee442d6" > < code > bluetooth-run.sh< / code > - Bluetooth Run Manager< / a > < / li >
< li > < a href = "#orgf3d5b30" > < code > bluetooth-status.sh< / code > - Bluetooth Connection Status< / a > < / li >
< li > < a href = "#orgc2b2e0a" > < code > bluetooth-toggle.sh< / code > - Toggle Bluetooth Connection< / a > < / li >
2020-05-26 08:40:15 +02:00
< / ul >
< / li >
2022-05-09 10:05:23 +02:00
< li > < a href = "#orgb29849d" > NordVPN< / a >
2021-01-08 01:43:48 +01:00
< ul >
2022-05-09 10:05:23 +02:00
< li > < a href = "#org836d582" > Nordvpn Status script< / a > < / li >
< li > < a href = "#orgf7e77c5" > Nordvpn Toggle< / a > < / li >
2021-01-08 01:43:48 +01:00
< / ul >
< / li >
2022-05-09 10:05:23 +02:00
< li > < a href = "#org26a9227" > High cursor< / a >
2020-01-11 22:04:45 +01:00
< ul >
2022-05-09 10:05:23 +02:00
< li > < a href = "#orgad6a518" > Cursor - Status< / a > < / li >
< li > < a href = "#orgc14dd88" > Toggle Cursor< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
2022-05-09 10:05:23 +02:00
< li > < a href = "#orgb3fc699" > Mounted Drives< / a >
2021-01-01 20:12:34 +01:00
< ul >
2022-05-09 10:05:23 +02:00
< li > < a href = "#org324f63f" > Drive - Status< / a > < / li >
2021-01-01 20:12:34 +01:00
< / ul >
< / li >
2022-05-09 10:05:23 +02:00
< li > < a href = "#orgedf2999" > Screenshot< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org23093f7" class = "outline-2" >
< h2 id = "org23093f7" > Colors< / h2 >
< div class = "outline-text-2" id = "text-org23093f7" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > colors< / span > ]
< span class = "org-variable-name" > bg< / span > = ${xrdb:background}
< span class = "org-variable-name" > red< / span > = ${xrdb:color1}
< span class = "org-variable-name" > green< / span > = ${xrdb:color2}
< span class = "org-variable-name" > yellow< / span > = ${xrdb:color3}
< span class = "org-variable-name" > blue< / span > = ${xrdb:color4}
< span class = "org-variable-name" > purple< / span > = ${xrdb:color5}
< span class = "org-variable-name" > aqua< / span > = ${xrdb:color6}
< span class = "org-variable-name" > gray< / span > = ${colors.color7}
< span class = "org-variable-name" > darkgray< / span > = ${colors.color8}
< span class = "org-variable-name" > darkred< / span > = ${xrdb:color9}
< span class = "org-variable-name" > darkgreen< / span > = ${xrdb:color10}
< span class = "org-variable-name" > darkyellow< / span > = ${xrdb:color11}
< span class = "org-variable-name" > darkblue< / span > = ${xrdb:color12}
< span class = "org-variable-name" > darkpurple< / span > = ${xrdb:color13}
< span class = "org-variable-name" > darkaqua< / span > = ${xrdb:color14}
< span class = "org-variable-name" > fg< / span > = ${xrdb:foreground}
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org3a3f201" class = "outline-2" >
< h2 id = "org3a3f201" > VM< / h2 >
< div class = "outline-text-2" id = "text-org3a3f201" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > global/wm< / span > ]
< span class = "org-variable-name" > margin-top< / span > = < span class = "org-highlight-numbers-number" > 0< / span >
< span class = "org-variable-name" > margin-bottom< / span > = < span class = "org-highlight-numbers-number" > 0< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org56f016e" class = "outline-2" >
< h2 id = "org56f016e" > Top Bar< / h2 >
< div class = "outline-text-2" id = "text-org56f016e" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > bar/top< / span > ]
< span class = "org-variable-name" > enable-ipc< / span > = true
2021-10-25 14:37:10 +02:00
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > override-redirect = false< / span >
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > bottom< / span > = false
< span class = "org-variable-name" > fixed-center< / span > = false
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > width< / span > = 100%
< span class = "org-variable-name" > height< / span > = < span class = "org-highlight-numbers-number" > 27< / span >
< span class = "org-variable-name" > radius< / span > = < span class = "org-highlight-numbers-number" > 0.0< / span >
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > background< / span > = ${colors.bg}
< span class = "org-variable-name" > foreground< / span > = ${colors.fg}
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > line-size< / span > = < span class = "org-highlight-numbers-number" > 2< / span >
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > border-size< / span > = < span class = "org-highlight-numbers-number" > 0< / span >
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > padding-left< / span > = < span class = "org-highlight-numbers-number" > 2< / span >
< span class = "org-variable-name" > padding-right< / span > = < span class = "org-highlight-numbers-number" > 12< / span >
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > module-margin-left< / span > = < span class = "org-highlight-numbers-number" > 1< / span >
< span class = "org-variable-name" > module-margin-right< / span > = < span class = "org-highlight-numbers-number" > 1< / span >
2020-01-11 22:04:45 +01:00
2022-05-09 10:05:23 +02:00
< span class = "org-variable-name" > font-0< / span > = Hack Nerd Font:style=Regular:pixelsize=< span class = "org-highlight-numbers-number" > 10< / span > ;< span class = "org-highlight-numbers-number" > 1< / span >
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > font-1< / span > = unifont:fontformat=truetype:size=< span class = "org-highlight-numbers-number" > 8< / span > :antialias=false;< span class = "org-highlight-numbers-number" > 0< / span >
2020-01-11 22:04:45 +01:00
2021-10-25 14:37:10 +02:00
< span class = "org-variable-name" > modules-left< / span > = i3 xwindow
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > modules-center< / span > =
2022-05-09 10:05:23 +02:00
< span class = "org-variable-name" > modules-right< / span > = pulseaudio drive_monochromator drive_tmp drive_homelab drive_groupshare drive_data_id21 drive_unix_home dunst cursor unread_mail calendar battery date
2020-01-11 22:04:45 +01:00
2021-10-25 14:37:10 +02:00
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > wm-restack = i3< / span >
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > tray-position< / span > = right
< span class = "org-variable-name" > tray-detached< / span > = true
< span class = "org-variable-name" > tray-padding< / span > = < span class = "org-highlight-numbers-number" > 0< / span >
< span class = "org-variable-name" > tray-background< / span > = ${colors.bg}
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org28d0433" class = "outline-2" >
< h2 id = "org28d0433" > Show Windows Title< / h2 >
< div class = "outline-text-2" id = "text-org28d0433" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/xwindow< / span > ]
< span class = "org-variable-name" > type< / span > = internal/xwindow
< span class = "org-variable-name" > label< / span > = %title:< span class = "org-highlight-numbers-number" > 0< / span > :< span class = "org-highlight-numbers-number" > 30< / span > :...%
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org1bb1329" class = "outline-2" >
< h2 id = "org1bb1329" > I3 - Information about workspaces and active one< / h2 >
< div class = "outline-text-2" id = "text-org1bb1329" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/i3< / span > ]
< span class = "org-variable-name" > type< / span > = internal/i3
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > enable-scroll< / span > = false
< span class = "org-variable-name" > wrapping-scroll< / span > = false
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > < span class = "org-variable-name" > format< / span > = < label-state> < label-mode>
< span class = "org-variable-name" > index-sort< / span > = true
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > < span class = "org-variable-name" > label-mode-foreground< / span > = ${colors.bg}
< span class = "org-variable-name" > label-mode-background< / span > = ${colors.fg}
< span class = "org-variable-name" > label-mode-padding< / span > = < span class = "org-highlight-numbers-number" > 1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > focused = Active workspace on focused monitor< / span >
< span class = "org-variable-name" > label-focused< / span > = %icon% %index%
< span class = "org-variable-name" > label-focused-foreground< / span > = ${colors.fg}
< span class = "org-variable-name" > label-focused-background< / span > = ${colors.bg}
< span class = "org-variable-name" > label-focused-underline< / span > = ${colors.aqua}
< span class = "org-variable-name" > label-focused-padding< / span > = < span class = "org-highlight-numbers-number" > 1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > unfocused = Inactive workspace on any monitor< / span >
< span class = "org-variable-name" > label-unfocused< / span > = %icon% %index%
< span class = "org-variable-name" > label-unfocused-foreground< / span > = ${colors.fg}
< span class = "org-variable-name" > label-unfocused-background< / span > = ${colors.bg}
< span class = "org-variable-name" > label-unfocused-underline< / span > = ${colors.bg}
< span class = "org-variable-name" > label-unfocused-padding< / span > = < span class = "org-highlight-numbers-number" > 1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > visible = Active workspace on unfocused monitor< / span >
< span class = "org-variable-name" > label-visible< / span > = %icon% %index%
< span class = "org-variable-name" > label-visible-background< / span > = ${colors.bg}
< span class = "org-variable-name" > label-visible-underline< / span > = ${colors.aqua}
< span class = "org-variable-name" > label-visible-padding< / span > = < span class = "org-highlight-numbers-number" > 1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > urgent = Workspace with urgency hint set< / span >
< span class = "org-variable-name" > label-urgent< / span > = %icon% %index%
< span class = "org-variable-name" > label-urgent-background< / span > = ${colors.red}
< span class = "org-variable-name" > label-urgent-padding< / span > = < span class = "org-highlight-numbers-number" > 1< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org57e5512" class = "outline-2" >
< h2 id = "org57e5512" > Music using MPD< / h2 >
< div class = "outline-text-2" id = "text-org57e5512" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/mpd< / span > ]
< span class = "org-variable-name" > type< / span > = internal/mpd
2021-10-25 14:37:10 +02:00
< span class = "org-variable-name" > format-online< / span > = < icon-prev> < toggle> < icon-next> %{A1:$TERMINAL -e ncmpcpp & :}< label-song> %{A}
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > format-online-spacing< / span > = < span class = "org-highlight-numbers-number" > 0< / span >
< span class = "org-variable-name" > format-online-padding< / span > = < span class = "org-highlight-numbers-number" > 0< / span >
< span class = "org-variable-name" > label-offline< / span > = mpd is offline
< span class = "org-variable-name" > format-offline< / span > = < label-offline>
< span class = "org-variable-name" > format-offline-foreground< / span > = < span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > 777< / span >
< span class = "org-variable-name" > label-song< / span > = %artist% - %title%
< span class = "org-variable-name" > label-song-maxlen< / span > = < span class = "org-highlight-numbers-number" > 30< / span >
< span class = "org-variable-name" > label-song-ellipsis< / span > = true
< span class = "org-variable-name" > icon-prev< / span > = 寧
< span class = "org-variable-name" > icon-stop< / span > = 栗
< span class = "org-variable-name" > icon-play< / span > = 契
< span class = "org-variable-name" > icon-pause< / span > = 
< span class = "org-variable-name" > icon-next< / span > = 嶺
< span class = "org-variable-name" > icon-random< / span > = 咽
< span class = "org-variable-name" > icon-repeat< / span > = 凌
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Used to display the state of random/repeat/repeatone/single< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Only applies if < icon-[random|repeat|repeatone|single]> is used< / span >
< span class = "org-variable-name" > toggle-on-foreground< / span > = ${colors.fg}
< span class = "org-variable-name" > toggle-off-foreground< / span > = ${colors.gray}
< span class = "org-variable-name" > bar-progress-width< / span > = < span class = "org-highlight-numbers-number" > 15< / span >
< span class = "org-variable-name" > bar-progress-indicator< / span > = |
< span class = "org-variable-name" > bar-progress-fill< / span > = ─
< span class = "org-variable-name" > bar-progress-empty< / span > = ─
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgf3bb2b1" class = "outline-2" >
< h2 id = "orgf3bb2b1" > Backlight level< / h2 >
< div class = "outline-text-2" id = "text-orgf3bb2b1" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/xbacklight< / span > ]
< span class = "org-variable-name" > type< / span > = internal/xbacklight
< span class = "org-variable-name" > format< / span > = < ramp>
< span class = "org-variable-name" > ramp-0< / span > = 
< span class = "org-variable-name" > ramp-1< / span > = 
< span class = "org-variable-name" > ramp-2< / span > = 
< span class = "org-variable-name" > ramp-3< / span > = 
< span class = "org-variable-name" > ramp-4< / span > = 
< span class = "org-variable-name" > ramp-5< / span > = 
< span class = "org-variable-name" > ramp-6< / span > = 
< span class = "org-variable-name" > ramp-7< / span > = 
< span class = "org-variable-name" > ramp-8< / span > = 
< span class = "org-variable-name" > ramp-9< / span > = 
< span class = "org-variable-name" > ramp-10< / span > = 
< span class = "org-variable-name" > ramp-11< / span > = 
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org4814b45" class = "outline-2" >
< h2 id = "org4814b45" > CPU Usage< / h2 >
< div class = "outline-text-2" id = "text-org4814b45" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/cpu< / span > ]
< span class = "org-variable-name" > type< / span > = internal/cpu
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 2< / span >
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > format-prefix-foreground< / span > = ${colors.fg}
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
2020-01-11 22:04:45 +01:00
2021-10-25 14:37:10 +02:00
< span class = "org-variable-name" > label< / span > = %{A1:$TERMINAL -e htop & :}﬙ %percentage:2%%%{A}
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orge0fd380" class = "outline-2" >
< h2 id = "orge0fd380" > Date< / h2 >
< div class = "outline-text-2" id = "text-orge0fd380" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/date< / span > ]
< span class = "org-variable-name" > type< / span > = internal/date
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 1< / span >
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Open google calendar on left right< / span >
2021-10-25 14:37:10 +02:00
< span class = "org-variable-name" > date< / span > = %{A1:$TERMINAL --title khal -e ikhal & :} %d-%m%{A}
< span class = "org-variable-name" > date-alt< / span > = < span class = "org-string" > "%{A1:$TERMINAL --title khal -e ikhal & :} %d-%m-%Y%{A}"< / span >
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > time< / span > =  %H:%M
< span class = "org-variable-name" > time-alt< / span > =  %H:%M:%S
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > label< / span > = %date% %time%
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org5d661e1" class = "outline-2" >
< h2 id = "org5d661e1" > Sound Volume< / h2 >
< div class = "outline-text-2" id = "text-org5d661e1" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/pulseaudio< / span > ]
< span class = "org-variable-name" > type< / span > = internal/pulseaudio
2022-05-09 10:05:23 +02:00
< span class = "org-variable-name" > sink< / span > = alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire_2__sink
2020-11-03 16:27:09 +01:00
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Open pavucontrol on left right< / span >
< span class = "org-variable-name" > format-volume< / span > =%{A1:pavucontrol & :}< label-volume> < bar-volume> %{A}
< span class = "org-variable-name" > label-volume< / span > = %percentage%%
< span class = "org-variable-name" > label-volume-foreground< / span > = ${root.foreground}
< span class = "org-variable-name" > label-muted< / span > = ﱝ muted
< span class = "org-variable-name" > bar-volume-width< / span > = < span class = "org-highlight-numbers-number" > 10< / span >
< span class = "org-variable-name" > bar-volume-foreground-0< / span > = ${colors.green}
< span class = "org-variable-name" > bar-volume-foreground-1< / span > = ${colors.green}
< span class = "org-variable-name" > bar-volume-foreground-2< / span > = ${colors.blue}
< span class = "org-variable-name" > bar-volume-foreground-3< / span > = ${colors.blue}
< span class = "org-variable-name" > bar-volume-foreground-4< / span > = ${colors.red}
< span class = "org-variable-name" > bar-volume-foreground-5< / span > = ${colors.red}
< span class = "org-variable-name" > bar-volume-foreground-6< / span > = ${colors.red}
< span class = "org-variable-name" > bar-volume-gradient< / span > = false
< span class = "org-variable-name" > bar-volume-indicator< / span > = |
< span class = "org-variable-name" > bar-volume-indicator-font< / span > = < span class = "org-highlight-numbers-number" > 2< / span >
< span class = "org-variable-name" > bar-volume-fill< / span > = ─
< span class = "org-variable-name" > bar-volume-fill-font< / span > = < span class = "org-highlight-numbers-number" > 2< / span >
< span class = "org-variable-name" > bar-volume-empty< / span > = ─
< span class = "org-variable-name" > bar-volume-empty-font< / span > = < span class = "org-highlight-numbers-number" > 2< / span >
< span class = "org-variable-name" > bar-volume-empty-foreground< / span > = ${colors.fg}
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgd5b3549" class = "outline-2" >
< h2 id = "orgd5b3549" > Battery< / h2 >
< div class = "outline-text-2" id = "text-orgd5b3549" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/battery< / span > ]
< span class = "org-variable-name" > type< / span > = internal/battery
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > battery< / span > = BAT0
< span class = "org-variable-name" > adapter< / span > = AC
< span class = "org-variable-name" > full-at< / span > = < span class = "org-highlight-numbers-number" > 95< / span >
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > format-charging< / span > = %{A1:xfce4-power-manager-settings & :}< ramp-capacity> < label-charging> %{A}
< span class = "org-variable-name" > format-charging-underline< / span > = ${colors.blue}
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > format-discharging< / span > = %{A1:xfce4-power-manager-settings & :}< ramp-capacity> < label-discharging> %{A}
< span class = "org-variable-name" > format-discharging-underline< / span > = ${colors.red}
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > label-full< / span > = %{A1:xfce4-power-manager-settings & :} %{A}
< span class = "org-variable-name" > format-full-underline< / span > = ${colors.bg}
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > ramp-capacity-0< / span > = 
< span class = "org-variable-name" > ramp-capacity-1< / span > = 
< span class = "org-variable-name" > ramp-capacity-2< / span > = 
< span class = "org-variable-name" > ramp-capacity-3< / span > = 
< span class = "org-variable-name" > ramp-capacity-4< / span > = 
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org01f6889" class = "outline-2" >
< h2 id = "org01f6889" > Temperature< / h2 >
< div class = "outline-text-2" id = "text-org01f6889" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/temperature< / span > ]
< span class = "org-variable-name" > type< / span > = internal/temperature
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 2< / span >
< span class = "org-variable-name" > thermal-zone< / span > = < span class = "org-highlight-numbers-number" > 0< / span >
2021-10-25 14:37:10 +02:00
< span class = "org-variable-name" > base-temperature< / span > = < span class = "org-highlight-numbers-number" > 50< / span >
< span class = "org-variable-name" > warn-temperature< / span > = < span class = "org-highlight-numbers-number" > 80< / span >
< span class = "org-variable-name" > hwmon-path< / span > = /sys/class/thermal/thermal_zone10/temp
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > units< / span > = false
2021-10-25 14:37:10 +02:00
< span class = "org-variable-name" > format< / span > = %{A1:$TERMINAL --title=< span class = "org-string" > "Sensors"< / span > -e watch sensors & :}< ramp> < label> %{A}
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > format-warn< / span > = < ramp> < label-warn>
< span class = "org-variable-name" > label< / span > = %temperature-c%° C
< span class = "org-variable-name" > label-warn< / span > = %temperature-c%° C
< span class = "org-variable-name" > label-warn-foreground< / span > = ${colors.fg}
< span class = "org-variable-name" > format-warn-underline< / span > = ${colors.red}
< span class = "org-variable-name" > ramp-0< / span > = 
< span class = "org-variable-name" > ramp-1< / span > = 
< span class = "org-variable-name" > ramp-2< / span > = 
< span class = "org-variable-name" > ramp-3< / span > = 
< span class = "org-variable-name" > ramp-4< / span > = 
< span class = "org-variable-name" > ramp-foreground< / span > = ${colors.fg}
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org0395cfb" class = "outline-2" >
< h2 id = "org0395cfb" > Unread Mails< / h2 >
< div class = "outline-text-2" id = "text-org0395cfb" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/unread_mail< / span > ]
< span class = "org-variable-name" > type< / span > = custom/script
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
< span class = "org-variable-name" > click-left< / span > = ~/.config/polybar/scripts/mail-open.sh > /dev/null 2> %1 &
< span class = "org-variable-name" > click-right< / span > = ~/.config/polybar/scripts/mail-refresh.sh > /dev/null 2> %1 &
< span class = "org-variable-name" > format< / span > = < label>
< span class = "org-variable-name" > exec< / span > = ~/.config/polybar/scripts/mail-status.sh
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 2< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org7fbba5b" class = "outline-3" >
< h3 id = "org7fbba5b" > Unread Mail Scripts< / h3 >
< div class = "outline-text-3" id = "text-org7fbba5b" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-bash" > < span class = "org-variable-name" > mail_nb< / span > =< span class = "org-sh-quoted-exec" > `du -a ~/.mail/*/Inbox/new/* 2> /dev/null | wc -l`< / span >
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > mail_nb< / span > < / span > < span class = "org-string" > "< / span > -eq < span class = "org-string" > "0"< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > ; < span class = "org-keyword" > then< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > " "< / span > ;
< span class = "org-keyword" > else< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > "%{F#859900} < / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > mail_nb< / span > < / span > < span class = "org-string" > %{F-}"< / span > ;
< span class = "org-keyword" > fi< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org9132e45" class = "outline-3" >
< h3 id = "org9132e45" > Refresh Mail Scripts< / h3 >
< div class = "outline-text-3" id = "text-org9132e45" >
2020-04-05 11:30:26 +02:00
< div class = "org-src-container" >
2022-05-09 10:05:23 +02:00
< pre class = "src src-bash" > notify-send --hint=string:x-dunst-stack-tag:YpqAgorv < span class = "org-string" > "Mails  "< / span > < span class = "org-string" > "Syncing..."< / span > ;
2020-11-03 16:27:09 +01:00
checkmail -q & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-variable-name" > mail_nb< / span > =< span class = "org-sh-quoted-exec" > `du -a ~/.mail/*/Inbox/new/* 2> /dev/null | wc -l`< / span > & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > mail_nb< / span > < / span > < span class = "org-string" > "< / span > -eq < span class = "org-string" > "0"< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > ; < span class = "org-keyword" > then< / span >
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:YpqAgorv < span class = "org-string" > "Mails  "< / span > < span class = "org-string" > "No new mail"< / span > ;
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > fi< / span >
2020-04-05 11:30:26 +02:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org7b20227" class = "outline-3" >
< h3 id = "org7b20227" > Open Mails< / h3 >
< div class = "outline-text-3" id = "text-org7b20227" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2021-10-25 14:37:10 +02:00
< pre class = "src src-bash" > $< span class = "org-variable-name" > TERMINAL< / span > -e tmux new-session -A -s neomutt neomutt
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org65e9a41" class = "outline-2" >
< h2 id = "org65e9a41" > Unread News< / h2 >
< div class = "outline-text-2" id = "text-org65e9a41" >
2020-04-05 11:30:26 +02:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/unread_news< / span > ]
< span class = "org-variable-name" > type< / span > = custom/script
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
< span class = "org-variable-name" > click-left< / span > = ~/.config/polybar/scripts/news-open.sh > /dev/null 2> %1 &
< span class = "org-variable-name" > click-right< / span > = ~/.config/polybar/scripts/news-refresh.sh > /dev/null 2> %1 &
< span class = "org-variable-name" > format< / span > = < label>
< span class = "org-variable-name" > exec< / span > = ~/.config/polybar/scripts/news-status.sh
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 60< / span >
2020-04-05 11:30:26 +02:00
< / pre >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgc131299" class = "outline-3" >
< h3 id = "orgc131299" > Unread News Scripts< / h3 >
< div class = "outline-text-3" id = "text-orgc131299" >
2020-04-05 11:30:26 +02:00
< div class = "org-src-container" >
2021-01-08 01:43:48 +01:00
< pre class = "src src-bash" > < span class = "org-variable-name" > news_nb< / span > =< span class = "org-sh-quoted-exec" > `newsboat -x print-unread 2> /dev/null | cut -d " " -f1`< / span >
2020-04-05 11:30:26 +02:00
2021-01-08 01:43:48 +01:00
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > -z < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > news_nb< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > || < span class = "org-rainbow-delimiters-depth-1" > [< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > news_nb< / span > < / span > < span class = "org-string" > "< / span > -eq < span class = "org-string" > "0"< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > ; < span class = "org-keyword" > then< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > " "< / span > ;
< span class = "org-keyword" > else< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > "%{F#859900} < / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > news_nb< / span > < / span > < span class = "org-string" > %{F-}"< / span > ;
< span class = "org-keyword" > fi< / span >
2020-04-05 11:30:26 +02:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgfc9c44a" class = "outline-3" >
< h3 id = "orgfc9c44a" > Refresh News Scripts< / h3 >
< div class = "outline-text-3" id = "text-orgfc9c44a" >
2020-04-05 11:30:26 +02:00
< div class = "org-src-container" >
2022-05-09 10:05:23 +02:00
< pre class = "src src-bash" > notify-send --hint=string:x-dunst-stack-tag:4z5CvV6G < span class = "org-string" > "Newsboat  "< / span > < span class = "org-string" > "Reloading..."< / span > ;
2020-04-05 11:30:26 +02:00
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > if< / span > < span class = "org-type" > pgrep< / span > -x < span class = "org-string" > "newsboat"< / span > > /dev/null; < span class = "org-keyword" > then< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > If newsboat is already running, try to refresh in the tmux session< / span >
2020-04-05 11:30:26 +02:00
tmux send-keys -t newsboat R
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > else< / span >
2020-04-05 11:30:26 +02:00
newsboat -x reload & & /
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > news_nb< / span > =< span class = "org-sh-quoted-exec" > `newsboat -x print-unread | cut -d " " -f1`< / span > & & < span class = "org-sh-escaped-newline" > \< / span >
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:4z5CvV6G < span class = "org-string" > "Newsboat  "< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > news_nb< / span > < / span > < span class = "org-string" > Unread News"< / span > ;
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > fi< / span >
2020-04-05 11:30:26 +02:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org4009ff1" class = "outline-3" >
< h3 id = "org4009ff1" > Open Newsboat< / h3 >
< div class = "outline-text-3" id = "text-org4009ff1" >
2020-04-05 11:30:26 +02:00
< div class = "org-src-container" >
2021-10-25 14:37:10 +02:00
< pre class = "src src-bash" > $< span class = "org-variable-name" > TERMINAL< / span > -e tmux new-session -A -s newsboat newsboat
2020-05-26 08:40:15 +02:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org7319ad8" class = "outline-2" >
< h2 id = "org7319ad8" > Calendar< / h2 >
< div class = "outline-text-2" id = "text-org7319ad8" >
2020-05-26 08:40:15 +02:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/calendar< / span > ]
< span class = "org-variable-name" > type< / span > = custom/script
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
< span class = "org-variable-name" > click-left< / span > = ~/.config/polybar/scripts/calendar-open.sh > /dev/null 2> %1 &
< span class = "org-variable-name" > format< / span > = < label>
< span class = "org-variable-name" > exec< / span > = ~/.config/polybar/scripts/calendar-status.sh
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 5< / span >
2020-05-26 08:40:15 +02:00
< / pre >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org5aef96a" class = "outline-3" >
< h3 id = "org5aef96a" > Calendar Status Scripts< / h3 >
< div class = "outline-text-3" id = "text-org5aef96a" >
2020-05-26 08:40:15 +02:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-bash" > < span class = "org-variable-name" > next_events< / span > =< span class = "org-sh-quoted-exec" > $< / span > < span class = "org-sh-quoted-exec" > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < / span > < span class = "org-sh-quoted-exec" > khal list < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > "$(< / span > < / span > < span class = "org-sh-quoted-exec" > date< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +"%H:%M")< / span > < / span > < span class = "org-string" > "< / span > 23:59 --format < span class = "org-string" > "{start-time} - {title}"< / span > -df < span class = "org-string" > 'SKIPME'< / span > | < span class = "org-type" > grep< / span > -v < span class = "org-string" > 'SKIPME'< / span > | < span class = "org-type" > grep< / span > -v < span class = "org-string" > 'No events'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span >
2020-05-26 08:40:15 +02:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > cal_icon< / span > =< span class = "org-string" > " "< / span >
< span class = "org-variable-name" > cal_nb< / span > =< span class = "org-string" > ""< / span >
< span class = "org-variable-name" > cal_desc< / span > =< span class = "org-string" > ""< / span >
2020-05-26 08:40:15 +02:00
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > -n < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > next_events< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > ; < span class = "org-keyword" > then< / span >
< span class = "org-variable-name" > events_number< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > echo< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > "< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > next_events< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > " | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
2020-05-26 08:40:15 +02:00
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > events_number< / span > < / span > < span class = "org-string" > "< / span > -gt < span class = "org-string" > "1"< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > ; < span class = "org-keyword" > then< / span >
< span class = "org-variable-name" > cal_nb< / span > =< span class = "org-string" > " (< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > events_number< / span > < / span > < span class = "org-string" > )"< / span >
< span class = "org-keyword" > fi< / span >
2020-05-26 08:40:15 +02:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > next_timed_events< / span > =$< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-sh-quoted-exec" > echo< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > next_events< / span > < / span > < span class = "org-string" > "< / span > | sed -e < span class = "org-string" > '/^[^0-9]/d'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span >
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > -z < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > next_timed_events< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > ; < span class = "org-keyword" > then< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Only full day events< / span >
< span class = "org-variable-name" > cal_desc< / span > =< span class = "org-string" > " < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > echo< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > "< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > next_events< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > " | sed -e '/^[0-9]/d;s/^ - //' | head -n 1 | cut -c 1-15)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-keyword" > else< / span >
< span class = "org-variable-name" > cal_desc< / span > =< span class = "org-string" > " < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > echo< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > "< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > next_timed_events< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > " | head -n 1 | cut -c 1-20)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-keyword" > fi< / span >
< span class = "org-keyword" > fi< / span >
2020-05-26 08:40:15 +02:00
2020-11-03 16:27:09 +01:00
< span class = "org-type" > echo< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > {cal_icon}< / span > < / span > < span class = "org-string" > ${cal_nb}< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > {cal_desc}< / span > < / span > < span class = "org-string" > "< / span >
2020-05-26 08:40:15 +02:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org91bad30" class = "outline-3" >
< h3 id = "org91bad30" > Open Calendar< / h3 >
< div class = "outline-text-3" id = "text-org91bad30" >
2020-05-26 08:40:15 +02:00
< div class = "org-src-container" >
2021-10-25 14:37:10 +02:00
< pre class = "src src-bash" > $< span class = "org-variable-name" > TERMINAL< / span > --title=khal -e ikhal
2020-04-05 11:30:26 +02:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org311e763" class = "outline-2" >
< h2 id = "org311e763" > Redshift< / h2 >
< div class = "outline-text-2" id = "text-org311e763" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/redshift< / span > ]
< span class = "org-variable-name" > type< / span > = custom/script
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
< span class = "org-variable-name" > click-left< / span > = ~/.config/polybar/scripts/redshift-toggle.sh > /dev/null 2> %1 &
< span class = "org-variable-name" > format< / span > = < label>
< span class = "org-variable-name" > exec< / span > = ~/.config/polybar/scripts/redshift-status.sh
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 2< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgda54f98" class = "outline-3" >
< h3 id = "orgda54f98" > Redshift - Status< / h3 >
< div class = "outline-text-3" id = "text-orgda54f98" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-bash" > < span class = "org-keyword" > if< / span > < span class = "org-type" > pgrep< / span > -x < span class = "org-string" > "redshift"< / span > > /dev/null; < span class = "org-keyword" > then< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > "望 "< / span > ;
< span class = "org-keyword" > else< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > "盛 "< / span > ;
< span class = "org-keyword" > fi< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org4307668" class = "outline-3" >
< h3 id = "org4307668" > Toggle Redshift< / h3 >
< div class = "outline-text-3" id = "text-org4307668" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-bash" > < span class = "org-keyword" > if< / span > < span class = "org-type" > pgrep< / span > -x < span class = "org-string" > "redshift"< / span > > /dev/null; < span class = "org-keyword" > then< / span >
killall redshift & & < span class = "org-sh-escaped-newline" > \< / span >
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:EKFLpst1 < span class = "org-string" > "Redshift 望 "< / span > < span class = "org-string" > "Turned off"< / span > ;
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > else< / span >
nohup redshift > /dev/null < span class = "org-highlight-numbers-number" > 2< / span > > & < span class = "org-highlight-numbers-number" > 1< / span > &
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:EKFLpst1 < span class = "org-string" > "Redshift 望 "< / span > < span class = "org-string" > "Starting..."< / span > ;
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > fi< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org039d261" class = "outline-2" >
< h2 id = "org039d261" > Packages< / h2 >
< div class = "outline-text-2" id = "text-org039d261" >
2020-03-01 22:51:16 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/packages< / span > ]
< span class = "org-variable-name" > type< / span > = custom/script
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
< span class = "org-variable-name" > click-left< / span > = ~/.config/polybar/scripts/packages-update.sh > /dev/null 2> %1 &
< span class = "org-variable-name" > click-right< / span > = ~/.config/polybar/scripts/packages-refresh.sh > /dev/null 2> %1 &
< span class = "org-variable-name" > format< / span > = < label>
< span class = "org-variable-name" > exec< / span > = ~/.config/polybar/scripts/packages-status.sh
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 600< / span >
2020-03-01 22:51:16 +01:00
< / pre >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgfe0acea" class = "outline-3" >
< h3 id = "orgfe0acea" > Packages Status script< / h3 >
< div class = "outline-text-3" id = "text-orgfe0acea" >
2020-03-01 22:51:16 +01:00
< div class = "org-src-container" >
2021-04-25 19:10:57 +02:00
< pre class = "src src-bash" > paru -Sy > /dev/null < span class = "org-highlight-numbers-number" > 2< / span > > & < span class = "org-highlight-numbers-number" > 1< / span > & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-variable-name" > package_nb< / span > =< span class = "org-sh-quoted-exec" > `paru -Qu 2> /dev/null | wc -l`< / span > || < span class = "org-sh-escaped-newline" > \< / span >
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > package_nb< / span > =< span class = "org-highlight-numbers-number" > 0< / span >
2020-05-26 08:40:15 +02:00
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > package_nb< / span > < / span > < span class = "org-string" > "< / span > -eq < span class = "org-string" > "0"< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > ; < span class = "org-keyword" > then< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > " "< / span > ;
< span class = "org-keyword" > else< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > "%{F#859900} < / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > package_nb< / span > < / span > < span class = "org-string" > %{F-}"< / span > ;
< span class = "org-keyword" > fi< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-03-01 22:51:16 +01:00
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org0793482" class = "outline-3" >
< h3 id = "org0793482" > Refresh New Packages script< / h3 >
< div class = "outline-text-3" id = "text-org0793482" >
2020-04-05 11:30:26 +02:00
< div class = "org-src-container" >
2022-05-09 10:05:23 +02:00
< pre class = "src src-bash" > notify-send --hint=string:x-dunst-stack-tag:SE5nDEVA < span class = "org-string" > 'Packages  '< / span > < span class = "org-string" > "Refreshing..."< / span >
2020-04-05 11:30:26 +02:00
2021-04-25 19:10:57 +02:00
paru -Sy > /dev/null < span class = "org-highlight-numbers-number" > 2< / span > > & < span class = "org-highlight-numbers-number" > 1< / span > & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-variable-name" > package_nb< / span > =$< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-sh-quoted-exec" > paru< / span > -Qu < span class = "org-highlight-numbers-number" > 2< / span > > /dev/null | wc -l< span class = "org-rainbow-delimiters-depth-1" > )< / span > || < span class = "org-sh-escaped-newline" > \< / span >
2021-01-08 01:43:48 +01:00
< span class = "org-variable-name" > package_nb< / span > =< span class = "org-highlight-numbers-number" > 0< / span >
2020-04-05 11:30:26 +02:00
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > package_nb< / span > < / span > < span class = "org-string" > "< / span > -eq < span class = "org-string" > "0"< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > ; < span class = "org-keyword" > then< / span >
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:SE5nDEVA < span class = "org-string" > 'Packages  '< / span > < span class = "org-string" > "No upgrade available"< / span >
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > else< / span >
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:SE5nDEVA < span class = "org-string" > 'Packages  '< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > package_nb< / span > < / span > < span class = "org-string" > upgrade(s) available"< / span >
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > fi< / span >
2020-04-05 11:30:26 +02:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgd9a1739" class = "outline-3" >
< h3 id = "orgd9a1739" > Packages Update< / h3 >
< div class = "outline-text-3" id = "text-orgd9a1739" >
2020-03-01 22:51:16 +01:00
< div class = "org-src-container" >
2021-10-25 14:37:10 +02:00
< pre class = "src src-bash" > $< span class = "org-variable-name" > TERMINAL< / span > -e paru
2020-03-01 22:51:16 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-01-11 22:04:45 +01:00
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgd69c0e2" class = "outline-2" >
< h2 id = "orgd69c0e2" > Dunst< / h2 >
< div class = "outline-text-2" id = "text-orgd69c0e2" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/dunst< / span > ]
< span class = "org-variable-name" > type< / span > = custom/script
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
< span class = "org-variable-name" > click-left< / span > = ~/.config/polybar/scripts/dunst-toggle.sh > /dev/null 2> %1 &
< span class = "org-variable-name" > format< / span > = < label>
< span class = "org-variable-name" > exec< / span > = ~/.config/polybar/scripts/dunst-status.sh
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 2< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org5a99d64" class = "outline-3" >
< h3 id = "org5a99d64" > Dunst Status script< / h3 >
< div class = "outline-text-3" id = "text-org5a99d64" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-bash" > < span class = "org-variable-name" > tmpfile< / span > =< span class = "org-string" > "/tmp/dunststatus"< / span > ;
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > -f $< span class = "org-variable-name" > tmpfile< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > ; < span class = "org-keyword" > then< / span >
< span class = "org-keyword" > if< / span > < span class = "org-type" > grep< / span > -q < span class = "org-string" > "on"< / span > $< span class = "org-variable-name" > tmpfile< / span > ; < span class = "org-keyword" > then< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > " "< / span > ;
< span class = "org-keyword" > elif< / span > < span class = "org-type" > grep< / span > -q < span class = "org-string" > "off"< / span > $< span class = "org-variable-name" > tmpfile< / span > ; < span class = "org-keyword" > then< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > " "< / span > ;
< span class = "org-keyword" > fi< / span >
< span class = "org-keyword" > else< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > " "< / span > ;
< span class = "org-keyword" > fi< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org3cefd8c" class = "outline-3" >
< h3 id = "org3cefd8c" > Dunst Toggle< / h3 >
< div class = "outline-text-3" id = "text-org3cefd8c" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-bash" > < span class = "org-variable-name" > tmpfile< / span > =< span class = "org-string" > "/tmp/dunststatus"< / span > ;
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > -f $< span class = "org-variable-name" > tmpfile< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > & & < span class = "org-type" > grep< / span > -q < span class = "org-string" > "off"< / span > $< span class = "org-variable-name" > tmpfile< / span > ; < span class = "org-keyword" > then< / span >
killall -SIGUSR2 dunst & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > "on"< / span > > $< span class = "org-variable-name" > tmpfile< / span > ;
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:KLJ63nVo < span class = "org-string" > "Notifications  "< / span > < span class = "org-string" > "Activated"< / span > ;
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > else< / span >
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:KLJ63nVo < span class = "org-string" > "Notifications  "< / span > < span class = "org-string" > "Deactivated"< / span > ;
2020-11-03 16:27:09 +01:00
< span class = "org-type" > sleep< / span > < span class = "org-highlight-numbers-number" > 1< / span > & & < span class = "org-sh-escaped-newline" > \< / span >
killall -SIGUSR1 dunst & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > "off"< / span > > $< span class = "org-variable-name" > tmpfile< / span > ;
< span class = "org-keyword" > fi< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org6cab217" class = "outline-2" >
< h2 id = "org6cab217" > Lock Screen< / h2 >
< div class = "outline-text-2" id = "text-org6cab217" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/lockscreen< / span > ]
< span class = "org-variable-name" > type< / span > = custom/script
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
< span class = "org-variable-name" > click-left< / span > = ~/.config/polybar/scripts/lockscreen-toggle.sh > /dev/null 2> %1 &
< span class = "org-variable-name" > click-right< / span > = ~/.local/bin/lockscreen > /dev/null 2> %1 &
< span class = "org-variable-name" > format< / span > = < label>
< span class = "org-variable-name" > exec< / span > = ~/.config/polybar/scripts/lockscreen-status.sh
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 2< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgc187ea1" class = "outline-3" >
< h3 id = "orgc187ea1" > Lock screen Status script< / h3 >
< div class = "outline-text-3" id = "text-orgc187ea1" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-bash" > < span class = "org-keyword" > if< / span > < span class = "org-type" > pgrep< / span > -x < span class = "org-string" > "xautolock"< / span > > /dev/null
< span class = "org-keyword" > then< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > " "< / span > ;
< span class = "org-keyword" > else< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > " "< / span > ;
< span class = "org-keyword" > fi< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org4bf0e14" class = "outline-3" >
< h3 id = "org4bf0e14" > Toggle Automatic Lock Screen< / h3 >
< div class = "outline-text-3" id = "text-org4bf0e14" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-bash" > < span class = "org-keyword" > if< / span > < span class = "org-type" > pgrep< / span > -x < span class = "org-string" > "xautolock"< / span > > /dev/null ; < span class = "org-keyword" > then< / span >
< span class = "org-type" > pkill< / span > xautolock & & < span class = "org-sh-escaped-newline" > \< / span >
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:tH6bxvvv < span class = "org-string" > 'Lock Screen  '< / span > < span class = "org-string" > 'Desactivated'< / span >
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > else< / span >
2022-05-09 10:05:23 +02:00
xautolock -locker < span class = "org-string" > "~/.local/bin/lockscreen"< / span > -detectsleep -time < span class = "org-highlight-numbers-number" > 30< / span > -notify < span class = "org-highlight-numbers-number" > 60< / span > -notifier < span class = "org-string" > "notify-send -u --hint=string:x-dunst-stack-tag:tH6bxvvv critical -t 10000 -- 'Locking Screen' '60 seconds'"< / span > &
notify-send --hint=string:x-dunst-stack-tag:tH6bxvvv < span class = "org-string" > 'Lock Screen  '< / span > < span class = "org-string" > 'Activated'< / span >
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > fi< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org36340a9" class = "outline-2" >
< h2 id = "org36340a9" > Network< / h2 >
< div class = "outline-text-2" id = "text-org36340a9" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/wired-network< / span > ]
< span class = "org-variable-name" > type< / span > = internal/network
2021-01-01 20:12:34 +01:00
< span class = "org-variable-name" > interface< / span > = enp57s0u2u4u4
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
< span class = "org-variable-name" > label-connected< / span > = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh > /dev/null 2> %1 & :}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh enp57s0u2u4u4 > /dev/null 2> %1 & :} %local_ip%%{A}%{A}
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > label-connected-foreground< / span > = ${colors.fg}
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
< span class = "org-variable-name" > label-disconnected< / span > = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh > /dev/null 2> %1 & :}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh enp57s0u2u4u4 > /dev/null 2> %1 & :} %{A}%{A}
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > label-disconnected-foreground< / span > = < span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > 777< / span >
2020-05-26 08:40:15 +02:00
< / pre >
< / div >
2020-01-11 22:04:45 +01:00
2020-05-26 08:40:15 +02:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/wireless-network< / span > ]
< span class = "org-variable-name" > type< / span > = internal/network
< span class = "org-variable-name" > interface< / span > = wlp2s0
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > format-connected< / span > = < label-connected>
< span class = "org-variable-name" > format-disconnected< / span > = < label-disconnected>
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
< span class = "org-variable-name" > label-connected< / span > = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh > /dev/null 2> %1 & :}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh wlp2s0 > /dev/null 2> %1 & :}直 %essid%%{A}%{A}
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > label-connected-foreground< / span > = ${colors.fg}
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
< span class = "org-variable-name" > label-disconnected< / span > = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh > /dev/null 2> %1 & :}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh wlp2s0 > /dev/null 2> %1 & :}直 %{A}%{A}
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > label-disconnected-foreground< / span > = < span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > 777< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
2021-01-01 20:12:34 +01:00
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgc70de40" class = "outline-3" >
< h3 id = "orgc70de40" > Run Network Manager< / h3 >
< div class = "outline-text-3" id = "text-orgc70de40" >
2021-01-01 20:12:34 +01:00
< div class = "org-src-container" >
2021-10-25 14:37:10 +02:00
< pre class = "src src-bash" > $< span class = "org-variable-name" > TERMINAL< / span > -e < span class = "org-type" > sudo< / span > nmtui
2021-01-01 20:12:34 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgeb3e621" class = "outline-3" >
< h3 id = "orgeb3e621" > Toggle Wifi or Ethernet< / h3 >
< div class = "outline-text-3" id = "text-orgeb3e621" >
2021-01-01 20:12:34 +01:00
< div class = "org-src-container" >
< pre class = "src src-bash" > < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Check if an argument is passed< / span >
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > -z < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > 1< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span >
< span class = "org-keyword" > then< / span >
< span class = "org-keyword" > exit< / span > < span class = "org-highlight-numbers-number" > 1< / span >
< span class = "org-keyword" > fi< / span >
< span class = "org-variable-name" > isdevicedown< / span > =$< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-sh-quoted-exec" > nmcli< / span > device status | < span class = "org-type" > grep< / span > ^$< span class = "org-highlight-numbers-number" > 1< / span > | < span class = "org-type" > grep< / span > disconnected< span class = "org-rainbow-delimiters-depth-1" > )< / span >
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > -z < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > isdevicedown< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span >
< span class = "org-keyword" > then< / span >
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:EfjAHGgu < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > 1< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-string" > "Disconnecting..."< / span > & & < span class = "org-sh-escaped-newline" > \< / span >
2021-01-01 20:12:34 +01:00
nmcli device disconnect $< span class = "org-highlight-numbers-number" > 1< / span > & & < span class = "org-sh-escaped-newline" > \< / span >
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:EfjAHGgu < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > 1< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-string" > "Disconnected"< / span >
2021-01-01 20:12:34 +01:00
< span class = "org-keyword" > else< / span >
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:EfjAHGgu < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > 1< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-string" > "Connection..."< / span > & & < span class = "org-sh-escaped-newline" > \< / span >
2021-01-01 20:12:34 +01:00
nmcli device connect $< span class = "org-highlight-numbers-number" > 1< / span > & & < span class = "org-sh-escaped-newline" > \< / span >
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:EfjAHGgu < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > 1< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-string" > "Connected"< / span >
2021-01-01 20:12:34 +01:00
< span class = "org-keyword" > fi< / span >
< / pre >
< / div >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org5b4ce07" class = "outline-2" >
< h2 id = "org5b4ce07" > Bluetooth< / h2 >
< div class = "outline-text-2" id = "text-org5b4ce07" >
2021-01-01 20:12:34 +01:00
< div class = "org-src-container" >
< pre class = "src src-conf" > [< span class = "org-type" > module/bluetooth< / span > ]
< span class = "org-variable-name" > type< / span > = custom/script
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
< span class = "org-variable-name" > click-left< / span > = ~/.config/polybar/scripts/bluetooth-toggle.sh > /dev/null 2> %1 &
< span class = "org-variable-name" > click-right< / span > = ~/.config/polybar/scripts/bluetooth-run.sh > /dev/null 2> %1 &
< span class = "org-variable-name" > format< / span > = < label>
< span class = "org-variable-name" > exec< / span > = ~/.config/polybar/scripts/bluetooth-status.sh
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 2< / span >
< / pre >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgee442d6" class = "outline-3" >
< h3 id = "orgee442d6" > < code > bluetooth-run.sh< / code > - Bluetooth Run Manager< / h3 >
< div class = "outline-text-3" id = "text-orgee442d6" >
2021-01-01 20:12:34 +01:00
< div class = "org-src-container" >
< pre class = "src src-bash" > blueman-manager & & < span class = "org-type" > pkill< / span > blueman-applet
< / pre >
< / div >
< / div >
2020-01-11 22:04:45 +01:00
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgf3d5b30" class = "outline-3" >
< h3 id = "orgf3d5b30" > < code > bluetooth-status.sh< / code > - Bluetooth Connection Status< / h3 >
< div class = "outline-text-3" id = "text-orgf3d5b30" >
2021-01-01 20:12:34 +01:00
< div class = "org-src-container" >
< pre class = "src src-bash" > < span class = "org-variable-name" > controllerid< / span > =< span class = "org-string" > "9C:B6:D0:96:6E:C0"< / span >
< span class = "org-variable-name" > isconnected< / span > =$< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-sh-quoted-exec" > bluetoothctl< / span > show $< span class = "org-variable-name" > controllerid< / span > | < span class = "org-type" > grep< / span > Powered | < span class = "org-type" > grep< / span > yes< span class = "org-rainbow-delimiters-depth-1" > )< / span >
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > -z < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > isconnected< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span >
< span class = "org-keyword" > then< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > " "< / span >
< span class = "org-keyword" > else< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > "%{F#859900} %{F-}"< / span >
< span class = "org-keyword" > fi< / span >
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgc2b2e0a" class = "outline-3" >
< h3 id = "orgc2b2e0a" > < code > bluetooth-toggle.sh< / code > - Toggle Bluetooth Connection< / h3 >
< div class = "outline-text-3" id = "text-orgc2b2e0a" >
2021-01-01 20:12:34 +01:00
< div class = "org-src-container" >
< pre class = "src src-bash" > < span class = "org-variable-name" > controllerid< / span > =< span class = "org-string" > "9C:B6:D0:96:6E:C0"< / span >
< span class = "org-variable-name" > isconnected< / span > =$< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-sh-quoted-exec" > bluetoothctl< / span > show $< span class = "org-variable-name" > controllerid< / span > | < span class = "org-type" > grep< / span > Powered | < span class = "org-type" > grep< / span > yes< span class = "org-rainbow-delimiters-depth-1" > )< / span >
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > -z < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > isconnected< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span >
< span class = "org-keyword" > then< / span >
bluetoothctl power on & & < span class = "org-sh-escaped-newline" > \< / span >
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:kidF4g53 < span class = "org-string" > "Bluetooth"< / span > < span class = "org-string" > "Power ON"< / span >
2021-01-01 20:12:34 +01:00
< span class = "org-keyword" > else< / span >
bluetoothctl power off & & < span class = "org-sh-escaped-newline" > \< / span >
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:kidF4g53 < span class = "org-string" > "Bluetooth"< / span > < span class = "org-string" > "Power OFF"< / span >
2021-01-01 20:12:34 +01:00
< span class = "org-keyword" > fi< / span >
< / pre >
< / div >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgb29849d" class = "outline-2" >
< h2 id = "orgb29849d" > NordVPN< / h2 >
< div class = "outline-text-2" id = "text-orgb29849d" >
2021-01-08 01:43:48 +01:00
< div class = "org-src-container" >
< pre class = "src src-conf" > [< span class = "org-type" > module/nordvpn< / span > ]
< span class = "org-variable-name" > type< / span > = custom/script
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
< span class = "org-variable-name" > click-left< / span > = ~/.local/bin/nordvpn-toggle > /dev/null 2> %1 &
< span class = "org-variable-name" > format< / span > = < label>
< span class = "org-variable-name" > exec< / span > = ~/.config/polybar/scripts/nordvpn-status.sh
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 2< / span >
< / pre >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org836d582" class = "outline-3" >
< h3 id = "org836d582" > Nordvpn Status script< / h3 >
< div class = "outline-text-3" id = "text-org836d582" >
2021-01-08 01:43:48 +01:00
< div class = "org-src-container" >
< pre class = "src src-bash" > < span class = "org-variable-name" > tmpfile< / span > =< span class = "org-string" > "/tmp/vpnstatus"< / span > ;
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > -f $< span class = "org-variable-name" > tmpfile< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > & & < span class = "org-type" > grep< / span > -q < span class = "org-string" > "on"< / span > $< span class = "org-variable-name" > tmpfile< / span > ; < span class = "org-keyword" > then< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > "%{F#859900} %{F-}"< / span > ;
< span class = "org-keyword" > else< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > " "< / span > ;
< span class = "org-keyword" > fi< / span >
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgf7e77c5" class = "outline-3" >
< h3 id = "orgf7e77c5" > Nordvpn Toggle< / h3 >
< div class = "outline-text-3" id = "text-orgf7e77c5" >
2021-01-08 01:43:48 +01:00
< p >
The script is accessible < a href = "binaries.html#nordvpn-toggle" > here< / a > .
< / p >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org26a9227" class = "outline-2" >
< h2 id = "org26a9227" > High cursor< / h2 >
< div class = "outline-text-2" id = "text-org26a9227" >
< p >
This is using this program: module/
< / p >
2020-04-05 11:30:26 +02:00
< div class = "org-src-container" >
2022-05-09 10:05:23 +02:00
< pre class = "src src-conf" > [< span class = "org-type" > module/cursor< / span > ]
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > type< / span > = custom/script
2020-04-05 11:30:26 +02:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
2022-05-09 10:05:23 +02:00
< span class = "org-variable-name" > click-left< / span > = ~/.config/polybar/scripts/cursor-toggle.sh > /dev/null 2> %1 &
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > format< / span > = < label>
2022-05-09 10:05:23 +02:00
< span class = "org-variable-name" > exec< / span > = ~/.config/polybar/scripts/cursor-status.sh
2020-04-05 11:30:26 +02:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 2< / span >
2020-04-05 11:30:26 +02:00
< / pre >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgad6a518" class = "outline-3" >
< h3 id = "orgad6a518" > Cursor - Status< / h3 >
< div class = "outline-text-3" id = "text-orgad6a518" >
2020-04-05 11:30:26 +02:00
< div class = "org-src-container" >
2022-05-09 10:05:23 +02:00
< pre class = "src src-bash" > < span class = "org-keyword" > if< / span > < span class = "org-type" > pgrep< / span > -x < span class = "org-string" > "highlight-point"< / span > > /dev/null; < span class = "org-keyword" > then< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > "%{F#859900} %{F-}"< / span > ;
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > else< / span >
2022-05-09 10:05:23 +02:00
< span class = "org-type" > echo< / span > < span class = "org-string" > " "< / span > ;
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > fi< / span >
2020-04-05 11:30:26 +02:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgc14dd88" class = "outline-3" >
< h3 id = "orgc14dd88" > Toggle Cursor< / h3 >
< div class = "outline-text-3" id = "text-orgc14dd88" >
2020-04-05 11:30:26 +02:00
< div class = "org-src-container" >
2022-05-09 10:05:23 +02:00
< pre class = "src src-bash" > < span class = "org-keyword" > if< / span > < span class = "org-type" > pgrep< / span > -x < span class = "org-string" > "highlight-point"< / span > > /dev/null; < span class = "org-keyword" > then< / span >
killall highlight-point & & < span class = "org-sh-escaped-newline" > \< / span >
notify-send --hint=string:x-dunst-stack-tag:kidF4g53 < span class = "org-string" > "Cursor"< / span > < span class = "org-string" > "Turned off"< / span > ;
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > else< / span >
2022-05-09 10:05:23 +02:00
nohup highlight-pointer -r < span class = "org-highlight-numbers-number" > 10< / span > > /dev/null < span class = "org-highlight-numbers-number" > 2< / span > > & < span class = "org-highlight-numbers-number" > 1< / span > &
notify-send --hint=string:x-dunst-stack-tag:kidF4g53 < span class = "org-string" > "Cursor"< / span > < span class = "org-string" > "Highlight..."< / span > ;
2020-11-03 16:27:09 +01:00
< span class = "org-keyword" > fi< / span >
2020-05-26 08:40:15 +02:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgb3fc699" class = "outline-2" >
< h2 id = "orgb3fc699" > Mounted Drives< / h2 >
< div class = "outline-text-2" id = "text-orgb3fc699" >
2020-05-26 08:40:15 +02:00
< div class = "org-src-container" >
2022-05-09 10:05:23 +02:00
< pre class = "src src-conf" > [< span class = "org-type" > module/drive_tmp< / span > ]
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > type< / span > = custom/script
2020-04-05 11:30:26 +02:00
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
2022-05-09 10:05:23 +02:00
< span class = "org-variable-name" > click-left< / span > = ~/.local/bin/mount-dir tmp_14_days > /dev/null 2> %1 &
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > format< / span > = < label>
2022-05-09 10:05:23 +02:00
< span class = "org-variable-name" > exec< / span > = ~/.config/polybar/scripts/drive-status.sh tmp_14_days T
2020-04-05 11:30:26 +02:00
2022-05-09 10:05:23 +02:00
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 5< / span >
2020-04-05 11:30:26 +02:00
< / pre >
< / div >
2020-05-26 08:40:15 +02:00
< div class = "org-src-container" >
2022-05-09 10:05:23 +02:00
< pre class = "src src-conf" > [< span class = "org-type" > module/drive_groupshare< / span > ]
< span class = "org-variable-name" > type< / span > = custom/script
2020-05-26 08:40:15 +02:00
2022-05-09 10:05:23 +02:00
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
< span class = "org-variable-name" > click-left< / span > = ~/.local/bin/mount-dir groupshare > /dev/null 2> %1 &
< span class = "org-variable-name" > format< / span > = < label>
< span class = "org-variable-name" > exec< / span > = ~/.config/polybar/scripts/drive-status.sh groupshare G
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 5< / span >
2020-05-26 08:40:15 +02:00
< / pre >
< / div >
2020-04-05 11:30:26 +02:00
2020-05-26 08:40:15 +02:00
< div class = "org-src-container" >
2022-05-09 10:05:23 +02:00
< pre class = "src src-conf" > [< span class = "org-type" > module/drive_homelab< / span > ]
< span class = "org-variable-name" > type< / span > = custom/script
2020-11-03 16:27:09 +01:00
2022-05-09 10:05:23 +02:00
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
< span class = "org-variable-name" > click-left< / span > = ~/.local/bin/mount-dir homelab > /dev/null 2> %1 &
< span class = "org-variable-name" > format< / span > = < label>
< span class = "org-variable-name" > exec< / span > = ~/.config/polybar/scripts/drive-status.sh homelab H
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 5< / span >
2020-05-26 08:40:15 +02:00
< / pre >
< / div >
2021-10-25 14:37:10 +02:00
< div class = "org-src-container" >
2022-05-09 10:05:23 +02:00
< pre class = "src src-conf" > [< span class = "org-type" > module/drive_unix_home< / span > ]
2021-10-25 14:37:10 +02:00
< span class = "org-variable-name" > type< / span > = custom/script
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
2022-05-09 10:05:23 +02:00
< span class = "org-variable-name" > click-left< / span > = ~/.local/bin/mount-dir unix_home > /dev/null 2> %1 &
2021-10-25 14:37:10 +02:00
< span class = "org-variable-name" > format< / span > = < label>
2022-05-09 10:05:23 +02:00
< span class = "org-variable-name" > exec< / span > = ~/.config/polybar/scripts/drive-status.sh unix_home U
2021-10-25 14:37:10 +02:00
2022-05-09 10:05:23 +02:00
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 5< / span >
2021-10-25 14:37:10 +02:00
< / pre >
< / div >
< div class = "org-src-container" >
2022-05-09 10:05:23 +02:00
< pre class = "src src-conf" > [< span class = "org-type" > module/drive_monochromator< / span > ]
< span class = "org-variable-name" > type< / span > = custom/script
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
< span class = "org-variable-name" > click-left< / span > = ~/.local/bin/mount-dir monochromators > /dev/null 2> %1 &
< span class = "org-variable-name" > format< / span > = < label>
< span class = "org-variable-name" > exec< / span > = ~/.config/polybar/scripts/drive-status.sh monochromators M
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 5< / span >
2021-10-25 14:37:10 +02:00
< / pre >
< / div >
2022-05-09 10:05:23 +02:00
< div class = "org-src-container" >
< pre class = "src src-conf" > [< span class = "org-type" > module/drive_data_id21< / span > ]
< span class = "org-variable-name" > type< / span > = custom/script
< span class = "org-variable-name" > format-underline< / span > = ${colors.bg}
< span class = "org-variable-name" > click-left< / span > = ~/.local/bin/mount-dir data_id21 > /dev/null 2> %1 &
< span class = "org-variable-name" > format< / span > = < label>
< span class = "org-variable-name" > exec< / span > = ~/.config/polybar/scripts/drive-status.sh data_id21 D
< span class = "org-variable-name" > interval< / span > = < span class = "org-highlight-numbers-number" > 5< / span >
< / pre >
2021-10-25 14:37:10 +02:00
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org324f63f" class = "outline-3" >
< h3 id = "org324f63f" > Drive - Status< / h3 >
< div class = "outline-text-3" id = "text-org324f63f" >
2021-10-25 14:37:10 +02:00
< div class = "org-src-container" >
2022-05-09 10:05:23 +02:00
< pre class = "src src-bash" > < span class = "org-keyword" > if< / span > mountpoint -q ~/mnt/$< span class = "org-highlight-numbers-number" > 1< / span > ; < span class = "org-keyword" > then< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > "%{F#859900}< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > 2< / span > < / span > < span class = "org-string" > 歷 %{F-}"< / span > ;
2021-10-25 14:37:10 +02:00
< span class = "org-keyword" > else< / span >
2022-05-09 10:05:23 +02:00
< span class = "org-type" > echo< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > 2< / span > < / span > < span class = "org-string" > 轢 "< / span > ;
2021-10-25 14:37:10 +02:00
< span class = "org-keyword" > fi< / span >
< / pre >
< / div >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgedf2999" class = "outline-2" >
< h2 id = "orgedf2999" > Screenshot< / h2 >
< div class = "outline-text-2" id = "text-orgedf2999" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > module/screenshot< / span > ]
< span class = "org-variable-name" > type< / span > = custom/text
< span class = "org-variable-name" > content< / span > = < span class = "org-string" > " "< / span >
< span class = "org-variable-name" > click-left< / span > = ~/.local/bin/screenshot > /dev/null 2> %1 &
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
< div id = "postamble" class = "status" >
< p class = "author" > Author: Dehaeze Thomas< / p >
2022-05-09 10:05:23 +02:00
< p class = "date" > Created: 2022-05-09 lun. 10:04< / p >
2020-01-11 22:04:45 +01:00
< / div >
< / body >
< / html >