Compare commits

..

2 Commits

Author SHA1 Message Date
5645867776 [hyprland] Adds window resizing 2025-04-24 10:15:42 -07:00
7761067283 [gaming] Adds warcraft logs app. 2025-04-24 10:15:42 -07:00
2 changed files with 41 additions and 19 deletions

View File

@@ -1,9 +1,9 @@
{ pkgs, local, ... }: { pkgs, local, ... }:
let
# TODO: This is an attempt to patch the desktop file by actually using the old # TODO: This is an attempt to patch the desktop file by actually using the old
# one so I don't have to put in all the options like below. This will generate # one so I don't have to put in all the options like below. This will generate
# the correct file, however, xdg.dataFile."applications/wowup-cf.desktop" # the correct file, however, xdg.dataFile."applications/wowup-cf.desktop"
# doesn't seem to actually overrwite it, even with force = true. # doesn't seem to actually overrwite it, even with force = true.
# let
# patched-desktop = # patched-desktop =
# pkgs.runCommand "patched-wowup-cf-desktop" # pkgs.runCommand "patched-wowup-cf-desktop"
# { # {
@@ -14,7 +14,15 @@
# substitute "$desktop" "$out/wowup-cf.desktop" \ # substitute "$desktop" "$out/wowup-cf.desktop" \
# --replace-fail 'Exec=wowup-cf' 'Exec=wowup-cf --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu' # --replace-fail 'Exec=wowup-cf' 'Exec=wowup-cf --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu'
# ''; # '';
# in warcraftLogsUploader = pkgs.fetchurl {
url = "https://github.com/RPGLogs/Uploaders-warcraftlogs/releases/download/v8.16.56/warcraftlogs-v8.16.56.AppImage";
sha256 = "1aypr3ffy6lq0qj64d48c7n54nfs72404xb2kpxsw5slqh66imw6";
};
warcraftLogsIcon = pkgs.fetchurl {
url = "https://assets.rpglogs.com/img/warcraft/favicon.png";
sha256 = "0hil7rj7a0bmls0h4w3xmfzcp1gm5yfagbziv1967lmy70ri0bc9";
};
in
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
# Gaming # Gaming
@@ -49,4 +57,14 @@
"Game" "Game"
]; ];
}; };
xdg.desktopEntries.warcraftLogs = {
name = "WarcraftLogs";
exec = "${pkgs.appimage-run}/bin/appimage-run ${warcraftLogsUploader}";
terminal = false;
type = "Application";
icon = "${warcraftLogsIcon}";
comment = "WarcraftLogs uploader";
categories = [ "Game" ];
};
} }

View File

@@ -68,7 +68,7 @@
"col.inactive_border" = "rgba(595959aa)"; "col.inactive_border" = "rgba(595959aa)";
# Set to true enable resizing windows by clicking and dragging on borders and gaps # Set to true enable resizing windows by clicking and dragging on borders and gaps
resize_on_border = false; resize_on_border = true;
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false; allow_tearing = false;
@@ -304,6 +304,10 @@
"$mainMod, F, togglefloating," "$mainMod, F, togglefloating,"
"$mainMod + SHIFT, F, fullscreen, 1" "$mainMod + SHIFT, F, fullscreen, 1"
"$mainMod + CTRL, left, resizeactive, -20 0"
"$mainMod + CTRL, right, resizeactive, 20 0"
"$mainMod + CTRL, down, resizeactive, 0 20"
"$mainMod + CTRL, up, resizeactive, 0 -20"
# Monitors # Monitors
"$mainMod, R, focusmonitor, next" "$mainMod, R, focusmonitor, next"
@@ -315,13 +319,13 @@
"$mainMod, G, hy3:makegroup, opposite, ephemeral" "$mainMod, G, hy3:makegroup, opposite, ephemeral"
"$mainMod, W, hy3:makegroup, tab, ephemeral" "$mainMod, W, hy3:makegroup, tab, ephemeral"
"$mainMod + SHIFT, W, hy3:changegroup, toggletab" "$mainMod + SHIFT, W, hy3:changegroup, toggletab"
"$mainMod, A, hy3:changefocus, raise"
"$mainMod, Z, hy3:changefocus, lower"
"$mainMod, O, hy3:changegroup, opposite" "$mainMod, O, hy3:changegroup, opposite"
"$mainMod, left, hy3:movefocus, l" "$mainMod, left, hy3:movefocus, l"
"$mainMod, right, hy3:movefocus, r" "$mainMod, right, hy3:movefocus, r"
"$mainMod, up, hy3:movefocus, u" "$mainMod, up, hy3:movefocus, u"
"$mainMod, down, hy3:movefocus, d" "$mainMod, down, hy3:movefocus, d"
"$mainMod, A, hy3:changefocus, raise"
"$mainMod, Z, hy3:changefocus, lower"
"$mainMod + SHIFT, left, hy3:movewindow, l" "$mainMod + SHIFT, left, hy3:movewindow, l"
"$mainMod + SHIFT, right, hy3:movewindow, r" "$mainMod + SHIFT, right, hy3:movewindow, r"
"$mainMod + SHIFT, up, hy3:movewindow, u" "$mainMod + SHIFT, up, hy3:movewindow, u"