Compare commits

...

3 Commits

Author SHA1 Message Date
73b1bf1a4b added silent moving of windows 2025-03-07 04:36:03 +01:00
401af6dddb some more stuff 2025-03-07 04:35:17 +01:00
4ae7e1c9b4 tried some styling 2025-03-06 23:28:59 +01:00
8 changed files with 63 additions and 38 deletions

View File

@@ -45,28 +45,3 @@ window {
//background: yellow;
}
}
.workspace{
background: #ffffff;
color: #000000;
&--activ{
background: #000000;
color: #ffffff;
}
}
.activewindow{
background: #98C379;
color: #ffffff;
&--xwayland{
background: red;
color: black;
}
&--tooltip{
background: darkgrey;
color: white;
}
}

View File

@@ -3,3 +3,5 @@
@import 'widgets/systray';
@import 'widgets/hyprsunset';
@import 'widgets/lorem-text';
@import 'widgets/hypr_activewindow.scss';
@import 'widgets/hypr_workspaces.scss';

View File

@@ -0,0 +1,14 @@
.activewindow{
background: #98C379;
color: #ffffff;
&--xwayland{
background: red;
color: black;
}
&--tooltip{
background: darkgrey;
color: white;
}
}

View File

@@ -0,0 +1,23 @@
.workspacecontainer{
background: orange;
}
.workspace{
border-radius: 1rem 1rem;
margin: 6px;
padding: 6px;
font-family: 'Symbols Nerd Font Mono';
font-size: 16px;
border: 1px solid blue;
}
.wsactive{
background: pink;
color: red;
}
.wsinactive{
background: yellow;
color: red;
}

View File

@@ -1,21 +1,20 @@
(deflisten workspaces :initial "" "hyprman -w")
(defvar workspaceIcons '{
"empty": "",
"full": "",
"empty": "",
"full": "",
"focused": "󱓻"
}')
(defwidget hypr_workspaces []
(box
:class "workspacecontainer"
:space-evenly true
(for workspace in workspaces
(eventbox
:onclick "hyprctl dispatch workspace ${workspace.id}"
:tooltip "current: ${workspace.name}"
(label
:class "workspace${workspace.active == true ? '--activ' : ''}"
:text "${workspace.windows > 0 ? workspaceIcons.full : workspaceIcons.empty}")))))
:tooltip "${workspace.name}"
:class "workspace ${workspace.active == true ? 'wsactive' : 'wsinactive'}"
"${workspace.windows > 0 ? workspaceIcons.full : workspaceIcons.empty}"))))

View File

@@ -1,4 +1,4 @@
(defvar temperature "4500k")
(defvar temperature "3000K")
(defvar display-fix "off")
(defwidget hyprsunset []
(box
@@ -10,7 +10,7 @@
:onclick `${display-fix == "off"
? "eww update display-fix=on && nohup hyprsunset -t ${temperature} > /dev/null 2>&1 &"
: "eww update display-fix=off && pkill hyprsunset"}`
`${display-fix == "off" ? "󰛨 Off" : "󱩌 On"}`
)
)
)
`${display-fix == "off" ? "󰛨 Off" : "󱩌 On"}`)))

View File

@@ -93,6 +93,18 @@ bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10
# MOVE ACTIVE WINDOW TO A WORKSPACE with mainMod + SHIFT + [0-9]
bind = $mainMod CTRL SHIFT, 1, movetoworkspacesilent, 1
bind = $mainMod CTRL SHIFT, 2, movetoworkspacesilent, 2
bind = $mainMod CTRL SHIFT, 3, movetoworkspacesilent, 3
bind = $mainMod CTRL SHIFT, 4, movetoworkspacesilent, 4
bind = $mainMod CTRL SHIFT, 5, movetoworkspacesilent, 5
bind = $mainMod CTRL SHIFT, 6, movetoworkspacesilent, 6
bind = $mainMod CTRL SHIFT, 7, movetoworkspacesilent, 7
bind = $mainMod CTRL SHIFT, 8, movetoworkspacesilent, 8
bind = $mainMod CTRL SHIFT, 9, movetoworkspacesilent, 9
bind = $mainMod CTRL SHIFT, 0, movetoworkspacesilent, 10
# MOVE/RESIZE WINDOWS with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

View File

@@ -1,6 +1,6 @@
# Generated by nwg-displays on 2025-01-03 at 03:55:55. Do not edit manually.
workspace=1,monitor:DP-2,default:true
workspace=default,monitor:DP-2,default:true
workspace=2,monitor:DP-2
workspace=3,monitor:DP-2
workspace=4,monitor:DP-2