Compare commits
2 Commits
cf4d54ebfd
...
3d3fa1ed68
| Author | SHA1 | Date | |
|---|---|---|---|
| 3d3fa1ed68 | |||
| cd4367e252 |
@@ -3,5 +3,4 @@
|
|||||||
(include "./primary-statusbar.yuck")
|
(include "./primary-statusbar.yuck")
|
||||||
(include "./secondary-statusbar.yuck")
|
(include "./secondary-statusbar.yuck")
|
||||||
(include "./system-monitor.yuck")
|
(include "./system-monitor.yuck")
|
||||||
(include "./launcher.yuck")
|
|
||||||
(include "./vertical-statusbar.yuck")
|
(include "./vertical-statusbar.yuck")
|
||||||
|
|||||||
@@ -1,74 +0,0 @@
|
|||||||
(defwindow launcher
|
|
||||||
:monitor '[ "<primary>", "DP-2", 0 ]'
|
|
||||||
:geometry (geometry
|
|
||||||
:x "100px"
|
|
||||||
:y "100px"
|
|
||||||
:anchor "top left"
|
|
||||||
)
|
|
||||||
:stacking "bottom"
|
|
||||||
:exclusive false
|
|
||||||
:focusable false
|
|
||||||
(box
|
|
||||||
:class "launcher-window stand-alone"
|
|
||||||
:orientation "v"
|
|
||||||
:spacing 4
|
|
||||||
:visible { arraylength(jq(workspaces-json-dp2, "map(select(.active and (.has_windows | not)))")) > 0 }
|
|
||||||
(box
|
|
||||||
:orientation "v"
|
|
||||||
:halign "start"
|
|
||||||
:spacing 4
|
|
||||||
:space-evenly false
|
|
||||||
(label
|
|
||||||
:text "Apps"
|
|
||||||
:halign "start"
|
|
||||||
)
|
|
||||||
(box
|
|
||||||
:orientation "h"
|
|
||||||
:halign "start"
|
|
||||||
:spacing 4
|
|
||||||
:space-evenly false
|
|
||||||
(button
|
|
||||||
:onclick "firefox"
|
|
||||||
(image
|
|
||||||
:class "launcher-icon"
|
|
||||||
:icon "firefox"
|
|
||||||
:icon-size "dialog"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(box
|
|
||||||
:orientation "v"
|
|
||||||
:halign "start"
|
|
||||||
:spacing 4
|
|
||||||
:space-evenly false
|
|
||||||
(label
|
|
||||||
:text "Games"
|
|
||||||
:halign "start"
|
|
||||||
)
|
|
||||||
(box
|
|
||||||
:orientation "h"
|
|
||||||
:halign "start"
|
|
||||||
:spacing 4
|
|
||||||
:space-evenly false
|
|
||||||
(button
|
|
||||||
;; :onclick "env LUTRIS_SKIP_INIT=1 lutris lutris:rungameid/1"
|
|
||||||
:onclick "/home/drew/.local/bin/wow.sh >/tmp/wow.log 2>&1"
|
|
||||||
(image
|
|
||||||
:class "launcher-icon"
|
|
||||||
:image-width 48
|
|
||||||
:path "/home/drew/.local/share/icons/hicolor/128x128/apps/lutris_battlenet.png"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
;; (button
|
|
||||||
;; :onclick "steam steam://rungameid/1145350"
|
|
||||||
;; (image
|
|
||||||
;; :class "launcher-icon"
|
|
||||||
;; :icon "steam_icon_1145350"
|
|
||||||
;; :icon-size "dialog"
|
|
||||||
;; )
|
|
||||||
;;)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
@@ -27,7 +27,7 @@ let
|
|||||||
raiderioClient = pkgs.fetchurl {
|
raiderioClient = pkgs.fetchurl {
|
||||||
name = "raiderio-client";
|
name = "raiderio-client";
|
||||||
url = "https://raider.io/client/download/linux";
|
url = "https://raider.io/client/download/linux";
|
||||||
sha256 = "1iny8zhp12x40mnxxr7p6kbyyvxf16373d2qa8idxs3hw5fz7gnx";
|
sha256 = "0wcw53bgr9dr02x1ci2jlnc5irpiqxqxgs2hpbrsnj67q50nvlm9";
|
||||||
};
|
};
|
||||||
raiderioIcon = pkgs.fetchurl {
|
raiderioIcon = pkgs.fetchurl {
|
||||||
name = "raiderio-icon";
|
name = "raiderio-icon";
|
||||||
@@ -81,7 +81,7 @@ in
|
|||||||
categories = [ "Game" ];
|
categories = [ "Game" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.desktopEntries.raiderio = local.electronDesktopEntry {
|
xdg.desktopEntries.raiderio = {
|
||||||
name = "Raider.io";
|
name = "Raider.io";
|
||||||
exec = "${pkgs.appimage-run}/bin/appimage-run ${raiderioClient}";
|
exec = "${pkgs.appimage-run}/bin/appimage-run ${raiderioClient}";
|
||||||
terminal = false;
|
terminal = false;
|
||||||
@@ -100,6 +100,7 @@ in
|
|||||||
|
|
||||||
# Make sure WoW spawns on the right monitor and that Battlenet floats so it renders correctly
|
# Make sure WoW spawns on the right monitor and that Battlenet floats so it renders correctly
|
||||||
"monitor 1,title:^World of Warcraft$"
|
"monitor 1,title:^World of Warcraft$"
|
||||||
|
"fullscreen,title:^World of Warcraft$"
|
||||||
"monitor 1,title:^Battle.net$"
|
"monitor 1,title:^Battle.net$"
|
||||||
"float,title:^Battle.net$"
|
"float,title:^Battle.net$"
|
||||||
|
|
||||||
|
|||||||
@@ -39,13 +39,15 @@ in
|
|||||||
userEmail = "drew.haven@gmail.com";
|
userEmail = "drew.haven@gmail.com";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Set up eww here because it's based on the monitor configuration
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"sleep 2 && eww open-many primary-statusbar secondary-statusbar launcher"
|
# Set up eww here because it's based on the monitor configuration
|
||||||
|
"sleep 2 && eww open-many primary-statusbar secondary-statusbar"
|
||||||
|
# Set DP-2 as the primary monitor, otherwise it defaults to DP-1 because it's first in the list.
|
||||||
|
"xrandr --output DP-2 --primary"
|
||||||
];
|
];
|
||||||
windowrulev2 = [
|
windowrulev2 = [
|
||||||
# Rofi doesn't center properly when I have the two asymetric monitors
|
# Rofi doesn't center properly when I have the two asymetric monitors, so we need hyprland to manage it.
|
||||||
"center, class:Rofi"
|
"center, class:Rofi"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user