-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
20 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
(deflisten audio "scripts/audio") | ||
(defvar sink_icons '["", "", "", ""]') | ||
(defvar source_icons '["", ""]') | ||
(defwidget audio [] | ||
(eventbox | ||
:onrightclick "pavucontrol &" | ||
(box :class "module audio" | ||
:orientation "v" | ||
(button :class "icon output" | ||
:onclick "scripts/audio mute SINK" | ||
"${audio.sink_icon}") | ||
"${sink_icons[round(audio.sink_vol / 25, 0)]}") | ||
(button :class "icon input" | ||
:onclick "scripts/audio mute SOURCE" | ||
"${audio.source_icon}")))) | ||
{audio.source_vol > 0 ? source_icons[1] : source_icons[0]})))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
(deflisten net "scripts/net") | ||
(defvar net_icons '["", ""]') | ||
(defvar vpn_icons '["", ""]') | ||
(defwidget net [] | ||
(box :class "module net" | ||
:orientation "v" | ||
:space-evenly false | ||
(button :class "icon" :onclick "scripts/net toggle" "${net.icon}") | ||
(button :class "icon" | ||
:onclick "scripts/net toggle" | ||
{net.is_eth ? net_icons[1] : net_icons[0]}) | ||
(button :class "icon" | ||
:onclick {net.vpn ? "mullvad disconnect" : "mullvad connect"} | ||
:onrightclick "mullvad-gui &" | ||
"${net.vpn_icon}"))) | ||
{net.vpn ? vpn_icons[0] : vpn_icons[1]}))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters