Improve hpomen support
This commit is contained in:
parent
bc1b37bc6e
commit
33860f8ed2
5 changed files with 67 additions and 11 deletions
48
eww/eww.yuck
48
eww/eww.yuck
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
(deflisten audio :initial "--" "~/.config/eww/scripts/get-audio")
|
(deflisten audio :initial "--" "~/.config/eww/scripts/get-audio")
|
||||||
(defwidget volume []
|
(defwidget volume []
|
||||||
(eventbox :onscroll "~/.config/eww/scripts/adjust-volume {}" :cursor "row-resize"
|
(eventbox :cursor "row-resize" :onscroll "~/.config/eww/scripts/adjust-volume {}" :onclick "pactl set-sink-mute @DEFAULT_SINK@ toggle"
|
||||||
(label_value :text "" :value {audio.muted ? "muted" : "${audio.volume}%"} :value_class {audio.muted ? "muted" : ""})))
|
(label_value :text "" :value {audio.muted ? "muted" : "${audio.volume}%"} :value_class {audio.muted ? "muted" : ""})))
|
||||||
(defwidget audio_source []
|
(defwidget audio_source []
|
||||||
(eventbox :onclick "~/.config/eww/scripts/swap-audio-source" :cursor "pointer"
|
(eventbox :onclick "~/.config/eww/scripts/swap-audio-source" :cursor "pointer"
|
||||||
|
@ -94,6 +94,16 @@
|
||||||
(label :text ""))
|
(label :text ""))
|
||||||
|
|
||||||
|
|
||||||
|
;(deflisten brightness :initial "--" "~/.config/eww/scripts/get-brightness")
|
||||||
|
(defwidget brightness []
|
||||||
|
(eventbox :onscroll "~/.config/eww/scripts/adjust-brightness {}" :cursor "row-resize"
|
||||||
|
(label_value :text "" :value "50%")))
|
||||||
|
|
||||||
|
|
||||||
|
(defwidget battery []
|
||||||
|
(label :text ""))
|
||||||
|
|
||||||
|
|
||||||
(defwidget left_bar []
|
(defwidget left_bar []
|
||||||
(centerbox :class "bar" :orientation "h"
|
(centerbox :class "bar" :orientation "h"
|
||||||
(box :class "left" :orientation "h" :space-evenly false :halign "begin"
|
(box :class "left" :orientation "h" :space-evenly false :halign "begin"
|
||||||
|
@ -122,7 +132,7 @@
|
||||||
(defwidget above_bar []
|
(defwidget above_bar []
|
||||||
(centerbox :class "bar" :orientation "h"
|
(centerbox :class "bar" :orientation "h"
|
||||||
(box :class "left" :orientation "h" :space-evenly false :halign "begin"
|
(box :class "left" :orientation "h" :space-evenly false :halign "begin"
|
||||||
(workspaces :monitor "HDMI-A-1"))
|
(workspaces :monitor "DP-1"))
|
||||||
(systray :pack_direction "ltr" :icon-size 20)
|
(systray :pack_direction "ltr" :icon-size 20)
|
||||||
(box :class "right" :orientation "h" :space-evenly false :halign "end"
|
(box :class "right" :orientation "h" :space-evenly false :halign "end"
|
||||||
(notifications)
|
(notifications)
|
||||||
|
@ -138,6 +148,28 @@
|
||||||
(sep)
|
(sep)
|
||||||
(datetime))))
|
(datetime))))
|
||||||
|
|
||||||
|
(defwidget laptop_bar []
|
||||||
|
(centerbox :class "bar" :orientation "h"
|
||||||
|
(box :class "left" :orientation "h" :space-evenly false :halign "begin"
|
||||||
|
(workspaces :monitor "eDP-1")
|
||||||
|
(sep)
|
||||||
|
(window))
|
||||||
|
(systray :pack_direction "ltr" :icon-size 20)
|
||||||
|
(box :class "right" :orientation "h" :space-evenly false :halign "end"
|
||||||
|
(color_selector)
|
||||||
|
(sep)
|
||||||
|
(ram)
|
||||||
|
(cpu)
|
||||||
|
(wlan)
|
||||||
|
(battery)
|
||||||
|
(sep)
|
||||||
|
(brightness)
|
||||||
|
(volume)
|
||||||
|
(sep)
|
||||||
|
(datetime)
|
||||||
|
(sep)
|
||||||
|
(power))))
|
||||||
|
|
||||||
|
|
||||||
(defwindow left
|
(defwindow left
|
||||||
:monitor 1
|
:monitor 1
|
||||||
|
@ -173,3 +205,15 @@
|
||||||
:focusable false
|
:focusable false
|
||||||
(above_bar))
|
(above_bar))
|
||||||
|
|
||||||
|
(defwindow laptop
|
||||||
|
:monitor 0
|
||||||
|
:geometry (geometry :x "0px"
|
||||||
|
:y "4px"
|
||||||
|
:width "1912px"
|
||||||
|
:height "24px"
|
||||||
|
:anchor "top center")
|
||||||
|
:stacking "fg"
|
||||||
|
:exclusive true
|
||||||
|
:focusable false
|
||||||
|
(laptop_bar))
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
#!/bin/env sh
|
#!/bin/env sh
|
||||||
|
|
||||||
eww daemon
|
eww daemon
|
||||||
eww open-many left right above
|
|
||||||
|
if [ "$(uname -n)" == "chonk" ]; then
|
||||||
|
eww open-many left right above
|
||||||
|
else
|
||||||
|
eww open laptop
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,10 @@ env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||||
env = WLR_NO_HARDWARE_CURSORS,1
|
env = WLR_NO_HARDWARE_CURSORS,1
|
||||||
|
|
||||||
workspace = 1, monitor:eDP-1, default:true
|
workspace = 1, monitor:eDP-1, default:true
|
||||||
|
workspace = 2, monitor:eDP-1,
|
||||||
|
workspace = 3, monitor:eDP-1,
|
||||||
|
workspace = 4, monitor:eDP-1,
|
||||||
|
workspace = 5, monitor:eDP-1,
|
||||||
|
|
||||||
source = ~/.config/hypr/common.conf
|
source = ~/.config/hypr/common.conf
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/env sh
|
#!/bin/env sh
|
||||||
|
|
||||||
|
if [ "$(uname -n)" == "chonk" ]; then
|
||||||
hyprctl dispatch workspace 3
|
hyprctl dispatch workspace 3
|
||||||
hyprctl dispatch exec kitty
|
hyprctl dispatch exec kitty
|
||||||
hyprctl dispatch -- exec kitty -o allow_remote_control="yes" --listen-on "unix:/tmp/kitty-command-2"
|
hyprctl dispatch -- exec kitty -o allow_remote_control="yes" --listen-on "unix:/tmp/kitty-command-2"
|
||||||
|
@ -7,4 +8,5 @@ hyprctl dispatch -- exec kitty -o allow_remote_control="yes" --listen-on "unix:/
|
||||||
sleep 1
|
sleep 1
|
||||||
kitty @ --to 'unix:/tmp/kitty-command-2' send-text "c\n"
|
kitty @ --to 'unix:/tmp/kitty-command-2' send-text "c\n"
|
||||||
kitty @ --to 'unix:/tmp/kitty-command-3' send-text "btop\n"
|
kitty @ --to 'unix:/tmp/kitty-command-3' send-text "btop\n"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,11 @@
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from random import sample
|
from random import sample
|
||||||
|
from socket import gethostname
|
||||||
from subprocess import run
|
from subprocess import run
|
||||||
|
|
||||||
|
|
||||||
MONITORS = ("DP-1", "DP-2", "HDMI-A-1")
|
MONITORS = ("DP-1", "DP-2", "HDMI-A-1") if gethostname() == "chonk" else ("eDP-1",)
|
||||||
|
|
||||||
ANGLE_TRANSITION_ARGS = [
|
ANGLE_TRANSITION_ARGS = [
|
||||||
"--transition-type", "wipe",
|
"--transition-type", "wipe",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue