1
1
Fork 0

Compare commits

...

7 commits

Author SHA1 Message Date
8be59b929c
walker: use static size
Signed-off-by: Myned <dev@bjork.tech>
2024-11-24 13:13:06 -06:00
0125176363
hyprland: modify office rules
Signed-off-by: Myned <dev@bjork.tech>
2024-11-24 13:12:48 -06:00
00c509024c
libreoffice: fix config file path
Signed-off-by: Myned <dev@bjork.tech>
2024-11-24 13:12:23 -06:00
40cc96e22a
walker: fix search engine prefix
Signed-off-by: Myned <dev@bjork.tech>
2024-11-24 13:11:57 -06:00
fd74fd96b2
hyprland: track initial workspace for children
Signed-off-by: Myned <dev@bjork.tech>
2024-11-24 13:11:31 -06:00
5cbdf3cbfd
fonts: add vistafonts
Signed-off-by: Myned <dev@bjork.tech>
2024-11-24 13:11:12 -06:00
5d42660165
xdg: switch to libreoffice
Signed-off-by: Myned <dev@bjork.tech>
2024-11-24 13:11:03 -06:00
7 changed files with 52 additions and 43 deletions

View file

@ -217,7 +217,7 @@ in {
(title "Spotify Premium" rules)
];
office = rules: [
(class "draw\\.io" (rules ++ ["group override set" "tile"]))
(class "draw\\.io" rules)
(class "libreoffice.+" rules)
(class "ONLYOFFICE Desktop Editors" rules)
];
@ -266,11 +266,11 @@ in {
(tag.clipboard ["move ${clipboard.x} ${clipboard.y}" "pin" "size ${clipboard.w} ${clipboard.h}" "stayfocused"])
(tag.dropdown ["move ${dropdown.x} ${dropdown.y}" "pin" "size ${dropdown.w} ${dropdown.h}"])
(tag.editor ["group override set" "tile"])
(tag.files ["center" "size 1000 625"])
(tag.files ["center"])
(tag.game ["idleinhibit always" "noborder" "noshadow" "renderunfocused" "workspace name:game"])
(tag.media ["center" "keepaspectratio" "size <90% <90%"])
(tag.music ["tile" "workspace special:music"])
(tag.office ["workspace special:office"])
(tag.office ["group override set" "tile" "workspace special:office"])
(tag.password ["center" "tile" "workspace special:password"])
(tag.pip ["keepaspectratio" "move ${pip.x} ${pip.y}" "noinitialfocus" "pin" "size ${pip.w} ${pip.h}"])
(tag.social ["group override set" "tile"])
@ -285,6 +285,8 @@ in {
(class "steam_app_1473350" ["workspace 0"]) # (the) Gnorp Apologue
(class "Tap Wizard 2\\.x86_64" ["workspace 0"])
(class "Xdg-desktop-portal-gtk" ["noborder" "noshadow"])
(title "Open" ["center" "float" "size 1000 625"])
(title "Save As" ["center" "float" "size 1000 625"])
#!! Expressions are not wrapped in ^$
(fields {
@ -303,6 +305,10 @@ in {
class = "^org\\.gnome\\.Loupe$";
title = "^wallpaper.png$";
} ["tile" "workspace special:wallpaper"])
(fields {
class = "^org\\.gnome\\.Nautilus$";
title = "^Home$"; # Main window
} ["size 1000 625"])
(fields {
class = "^org\\.remmina\\.Remmina$";
title = "^Remmina.*$"; # Main windows

View file

@ -179,6 +179,7 @@ in {
focus_on_activate = true;
font_family = config.custom.font.monospace;
force_default_wallpaper = 0;
initial_workspace_tracking = 2; # All children
key_press_enables_dpms = true;
middle_click_paste = false;

View file

@ -18,7 +18,7 @@ in {
#!! Options not available, files synced
home-manager.users.${config.custom.username} = {
xdg.configFile.".config/libreoffice/4/user" = {
xdg.configFile."libreoffice/4/user" = {
force = true;
source = config.home-manager.users.${config.custom.username}.lib.file.mkOutOfStoreSymlink "${config.custom.sync}/linux/config/libreoffice/user";
};

View file

@ -156,8 +156,8 @@ in {
#!! Inherit from default layout
# https://github.com/abenz1267/walker/blob/master/internal/config/layout.default.json
layout.ui.window = let
w = 1000 / config.custom.scale;
h = 500 / config.custom.scale;
w = 750;
h = 250;
in {
width = w;
height = h;
@ -188,7 +188,7 @@ in {
item = {
icon = {
icon_size = "largest"; # 128px
icon_size = "larger"; # 64px
pixel_size = 32; # Downscale
};

View file

@ -12,7 +12,7 @@ case "$1" in
label="ArchWiki"
icon="distributor-logo-archlinux"
url="https://wiki.archlinux.org/index.php?search="
query="${1:2}"
query="${1:3}"
;;
'b '*)
label="Brave"
@ -30,7 +30,7 @@ case "$1" in
label="Docker Hub"
icon="docker-desktop"
url="https://hub.docker.com/search?q="
query="${1:2}"
query="${1:3}"
;;
'e '*)
label="e621"
@ -42,13 +42,13 @@ case "$1" in
label="Element Issues"
icon="com.github.zren.bugzilla"
url="https://github.com/element-hq/element-web/issues?q=is%3Aissue+is%3Aopen+"
query="${1:2}"
query="${1:3}"
;;
'fh '*)
label="Flathub"
icon="application-vnd.flatpak"
url="https://flathub.org/apps/search?q="
query="${1:2}"
query="${1:3}"
;;
'g '*)
label="Google"
@ -60,13 +60,13 @@ case "$1" in
label="GitHub"
icon="github"
url="https://github.com/search?q="
query="${1:2}"
query="${1:3}"
;;
'hi '*)
label="Home Manager Issues"
icon="com.github.zren.bugzilla"
url="https://github.com/nix-community/home-manager/issues?q=is%3Aissue+is%3Aopen+"
query="${1:2}"
query="${1:3}"
;;
'ho '*)
label="Home Manager Options"
@ -78,13 +78,13 @@ case "$1" in
label="Hyprland Issues"
icon="com.github.zren.bugzilla"
url="https://github.com/hyprwm/Hyprland/issues?q=is%3Aissue+is%3Aopen+"
query="${1:2}"
query="${1:4}"
;;
'ii '*)
label="i3 Issues"
icon="com.github.zren.bugzilla"
url="https://github.com/i3/i3/issues?q=is%3Aissue+is%3Aopen+"
query="${1:2}"
query="${1:3}"
;;
'l '*)
label="Lutris"
@ -96,73 +96,73 @@ case "$1" in
label="Lix Issues"
icon="com.github.zren.bugzilla"
url="https://git.lix.systems/lix-project/lix/issues?state=open&q="
query="${1:2}"
query="${1:3}"
;;
'mdn '*)
label="Mozilla Web Docs"
icon="emblem-web"
url="https://developer.mozilla.org/en-US/search?q="
query="${1:2}"
query="${1:4}"
;;
'mno '*)
label="MyNixOS Options"
icon="nix-snowflake"
url="https://mynixos.com/search?q=option+"
query="${1:2}"
query="${1:4}"
;;
'nd '*)
label="Nix Dev"
icon="nix-snowflake"
url="https://nix.dev/manual/nix/latest?search="
query="${1:2}"
query="${1:3}"
;;
'nf '*)
label="NixOS Flakes"
icon="nix-snowflake"
url="https://search.nixos.org/flakes?channel=unstable&query="
query="${1:2}"
query="${1:3}"
;;
'nh '*)
label="Nix Hub"
icon="nix-snowflake"
url="https://www.nixhub.io/search?q="
query="${1:2}"
query="${1:3}"
;;
'ni '*)
label="NixOS Nixpkgs Issues"
icon="com.github.zren.bugzilla"
url="https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+"
query="${1:2}"
query="${1:3}"
;;
'no '*)
label="NixOS Options"
icon="nix-snowflake"
url="https://search.nixos.org/options?channel=unstable&query="
query="${1:2}"
query="${1:3}"
;;
'nod '*)
label="Noogle Dev"
icon="nix-snowflake"
url="https://noogle.dev/q?term="
query="${1:2}"
query="${1:4}"
;;
'np '*)
label="NixOS Packages"
icon="nix-snowflake"
url="https://search.nixos.org/packages?channel=unstable&query="
query="${1:2}"
query="${1:3}"
;;
'npr '*)
label="Nix PR"
icon="nix-snowflake"
url="https://nixpk.gs/pr-tracker.html?pr="
query="${1:2}"
query="${1:4}"
;;
'nw '*)
label="NixOS Wiki"
icon="nix-snowflake"
url="https://wiki.nixos.org/w/index.php?search="
query="${1:2}"
query="${1:3}"
;;
'p '*)
label="Piped"
@ -174,19 +174,19 @@ case "$1" in
label="PCGamingWiki"
icon="computer"
url="https://www.pcgamingwiki.com/w/index.php?search="
query="${1:2}"
query="${1:3}"
;;
'pdb '*)
label="ProtonDB"
icon="portproton"
url="https://www.protondb.com/search?q="
query="${1:2}"
query="${1:4}"
;;
'pip '*)
label="PyPI"
icon="python"
url="https://pypi.org/search/?q="
query="${1:2}"
query="${1:4}"
;;
'r '*)
label="Reddit"
@ -204,7 +204,7 @@ case "$1" in
label="Sway Issues"
icon="com.github.zren.bugzilla"
url="https://github.com/swaywm/sway/issues?q=is%3Aissue+is%3Aopen+"
query="${1:2}"
query="${1:3}"
;;
'w '*)
label="Wikipedia"
@ -216,7 +216,7 @@ case "$1" in
label="Wolfram Alpha"
icon="wolfram-mathematica"
url="https://www.wolframalpha.com/input?i="
query="${1:2}"
query="${1:3}"
;;
'y '*)
label="YouTube"

View file

@ -36,6 +36,7 @@ in {
# Microsoft
corefonts
vistafonts
];
#?? fc-list --brief | grep family: | sort

View file

@ -11,6 +11,7 @@ with lib; let
firefox-esr = "firefox-esr.desktop";
font-viewer = "org.gnome.font-viewer.desktop";
gnome-text-editor = "org.gnome.TextEditor.desktop";
libreoffice = "base.desktop";
loupe = "org.gnome.Loupe.desktop";
nautilus = "org.gnome.Nautilus.desktop";
onlyoffice = "onlyoffice-desktopeditors.desktop";
@ -45,22 +46,22 @@ in {
"application/json" = gnome-text-editor;
"application/octet-stream" = "";
"application/pdf" = papers;
"application/rtf" = onlyoffice;
"application/rtf" = libreoffice;
"application/schema+json" = gnome-text-editor;
"application/sql" = gnome-text-editor;
"application/toml" = gnome-text-editor;
"application/vnd.adobe.flash.movie" = clapper;
"application/vnd.ms-excel.sheet.macroEnabled.12" = onlyoffice;
"application/vnd.ms-excel" = onlyoffice;
"application/vnd.ms-powerpoint" = onlyoffice;
"application/vnd.ms-excel.sheet.macroEnabled.12" = libreoffice;
"application/vnd.ms-excel" = libreoffice;
"application/vnd.ms-powerpoint" = libreoffice;
"application/vnd.ms-visio.drawing.main+xml" = gnome-text-editor;
"application/vnd.oasis.opendocument.formula-template" = onlyoffice;
"application/vnd.oasis.opendocument.graphics" = onlyoffice;
"application/vnd.oasis.opendocument.spreadsheet" = onlyoffice;
"application/vnd.oasis.opendocument.text" = onlyoffice;
"application/vnd.openxmlformats-officedocument.presentationml.presentation" = onlyoffice;
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" = onlyoffice;
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" = onlyoffice;
"application/vnd.oasis.opendocument.formula-template" = libreoffice;
"application/vnd.oasis.opendocument.graphics" = libreoffice;
"application/vnd.oasis.opendocument.spreadsheet" = libreoffice;
"application/vnd.oasis.opendocument.text" = libreoffice;
"application/vnd.openxmlformats-officedocument.presentationml.presentation" = libreoffice;
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" = libreoffice;
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" = libreoffice;
"application/vnd.sqlite3" = gnome-text-editor;
"application/vnd.visio" = gnome-text-editor;
"application/x-asar" = gnome-text-editor;