aboutsummaryrefslogtreecommitdiff
path: root/modules/home
diff options
context:
space:
mode:
Diffstat (limited to 'modules/home')
-rw-r--r--modules/home/eww.nix11
-rw-r--r--modules/home/i3.nix6
2 files changed, 12 insertions, 5 deletions
diff --git a/modules/home/eww.nix b/modules/home/eww.nix
index ff30977..70bdff2 100644
--- a/modules/home/eww.nix
+++ b/modules/home/eww.nix
@@ -94,11 +94,16 @@
'';
xdg.configFile."eww/eww.yuck".text = ''
- (defwindow music [pos]
+ (defwindow music [pos gaps]
:monitor "<primary>"
:geometry (geometry
- :x { pos == "right" ? "-8px" : "0px" }
- :y { pos == "right" ? "-8px" : "2px" }
+ :x {
+ pos == "right"
+ ? gaps == "true"
+ ? "-8px" : "2px"
+ : "0px"
+ }
+ :y { gaps == "true" ? "-8px" : "2px" }
:height {128 + 16}
:anchor { pos == "right" ? "bottom right" : "bottom center" }
)
diff --git a/modules/home/i3.nix b/modules/home/i3.nix
index 927a813..19691dd 100644
--- a/modules/home/i3.nix
+++ b/modules/home/i3.nix
@@ -128,8 +128,10 @@
"XF86AudioPrev" = "exec playerctl previous";
# Media controller widget
- "${mod}+m" = "exec --no-startup-id eww-toggle music --arg pos=center";
- "${mod}+n" = "exec --no-startup-id eww-toggle music --arg pos=right";
+ "${mod}+m" = "exec --no-startup-id eww-toggle music --arg pos=center --arg gaps=false";
+ "${mod}+Ctrl+m" = "exec --no-startup-id eww-toggle music --arg pos=right --arg gaps=true";
+ "${mod}+Shift+m" = "exec --no-startup-id eww-toggle music --arg pos=center --arg gaps=true";
+ "${mod}+Shift+Ctrl+m" = "exec --no-startup-id eww-toggle music --arg pos=right --arg gaps=false";
# Workspaces
"${mod}+grave" = "workspace number ${ws0}";