update
This commit is contained in:
parent
738e20458a
commit
5c1de7d077
|
@ -24,6 +24,7 @@
|
|||
$terminal = kitty -e tmux
|
||||
$fileManager = pcmanfm
|
||||
$menu = rofi -modi drun,run -show drun
|
||||
$sudomenu = rofi -modi drun,run -show drun -run-command 'lxsu {cmd}'
|
||||
|
||||
|
||||
#################
|
||||
|
@ -187,6 +188,7 @@ bind = $mainMod, M, exit,
|
|||
bind = $mainMod, E, exec, $fileManager
|
||||
bind = SUPER_SHIFT, SPACE, togglefloating,
|
||||
bind = $mainMod, D, exec, $menu
|
||||
bind = SUPER_SHIFT, D, exec, $sudomenu
|
||||
bind = $mainMod, P, exec, kanshi
|
||||
bind = $mainMod, S, togglesplit, # dwindle
|
||||
|
||||
|
|
|
@ -8,13 +8,14 @@
|
|||
"hyprland/submap",
|
||||
],
|
||||
"modules-center": [
|
||||
"hyprland/window"
|
||||
],
|
||||
"modules-right": [
|
||||
"custom/homeassistant",
|
||||
"pulseaudio",
|
||||
"cpu",
|
||||
"memory",
|
||||
"battery",
|
||||
"network",
|
||||
"clock",
|
||||
"tray",
|
||||
"custom/power",
|
||||
|
@ -71,6 +72,18 @@
|
|||
"format-plugged": "{capacity}% ",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"network": {
|
||||
"interface": "wlp0s20f3",
|
||||
"format": "{essid} ({signalStrength}%) ",
|
||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
||||
"format-disconnected": "", //An empty format will hide the module.
|
||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||
"tooltip-format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"tooltip-format-ethernet": "{ifname} ",
|
||||
"tooltip-format-disconnected": "Disconnected",
|
||||
"max-length": 50
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{volume}% {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
|
@ -95,5 +108,16 @@
|
|||
"suspend": "hyprlock & systemctl suspend",
|
||||
"hibernate": "hyprlock & systemctl hibernate"
|
||||
}
|
||||
},
|
||||
|
||||
"custom/homeassistant": {
|
||||
"format" : " ",
|
||||
"tooltip": false,
|
||||
"menu": "on-click",
|
||||
"menu-file": "$HOME/.config/waybar/ha_menu.xml",
|
||||
"menu-actions": {
|
||||
"mood-relax": "/home/lorenz/go/bin/home-assistant -m relax",
|
||||
"mood-off": "/home/lorenz/go/bin/home-assistant -m off",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkMenu" id="menu">
|
||||
|
||||
<child>
|
||||
<object class="GtkMenuItem">
|
||||
|
||||
<property name="label">Mood</property>
|
||||
<child type="submenu">
|
||||
<object class="GtkMenu">
|
||||
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="mood-relax">
|
||||
<property name="label">Relax</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="mood-off">
|
||||
<property name="label">Off</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
</object>
|
||||
</child>
|
||||
|
||||
</object>
|
||||
</child>
|
||||
|
||||
</object>
|
||||
</interface>
|
|
@ -6,23 +6,28 @@
|
|||
<property name="label">Suspend</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="hibernate">
|
||||
<property name="label">Hibernate</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="shutdown">
|
||||
<property name="label">Shutdown</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<object class="GtkSeparatorMenuItem" id="delimiter1"/>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="reboot">
|
||||
<property name="label">Reboot</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
</object>
|
||||
</interface>
|
||||
|
|
|
@ -102,6 +102,8 @@ button:hover {
|
|||
#wireplumber,
|
||||
#custom-media,
|
||||
#custom-power,
|
||||
#custom-homeassistant,
|
||||
#network,
|
||||
#tray,
|
||||
#mode,
|
||||
#idle_inhibitor,
|
||||
|
@ -146,7 +148,12 @@ button:hover {
|
|||
}
|
||||
}
|
||||
|
||||
#custom-power {
|
||||
#custom-homeassistant {
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
#custom-power,
|
||||
#custom-homeassistant {
|
||||
padding: 0px 8px 0px 12px;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue