diff --git a/user/app/browser/qutebrowser.nix b/user/app/browser/qutebrowser.nix index 907c496..121bd55 100644 --- a/user/app/browser/qutebrowser.nix +++ b/user/app/browser/qutebrowser.nix @@ -1,110 +1,5 @@ { config, pkgs, userSettings, ... }: -let generateHomepage = name: font: config: - '' - - - My Local Dashboard Awesome Homepage - - - - - - -
- ..--------.. - .`` "'. - .` _.---.. /--| '. - /`` || | - /` /--| || | - / / | || `/----\, - | | | .-`.-/- __. \ - | \ `-.`` ..-` \ | - \ ```` ~.^` | | | - \.____.-``'|| | / / - | || |_.- / - | || / - . |_-` `------~``. - `.. ..` - ``--______-'` -
-
- -

Welcome to Qutebrowser

-
-

''+name+" "+''Profile

-
- -
-

[o] [Search]

-

[b] [Quickmarks]

-

[S h] [History]

-

[t] [New tab]

-

[x] [Close tab]

-
- - - - ''; -in { home.packages = [ pkgs.qutebrowser @@ -325,18 +220,765 @@ c.fonts.web.family.fantasy = font c.fonts.web.family.cursive = font ''; + home.file.".config/qutebrowser/qute-home.html".text = '' + + + + + My Local Dashboard Awesome Homepage + + + + + + +
+ ..--------.. + .`` "'. + .` _.---.. /--| '. + /`` || | + /` /--| || | + / / | || `/----\, + | | | .-`.-/- __. \ + | \ `-.`` ..-` \ | + \ ```` ~.^` | | | + \.____.-``'|| | / / + | || |_.- / + | || / + . |_-` `------~``. + `.. ..` + ``--______-'` +
+
+ +

Welcome to Qutebrowser

+
+

Personal Profile

+
+ +
+

[o] [Search]

+

[b] [Quickmarks]

+

[S h] [History]

+

[t] [New tab]

+

[x] [Close tab]

+
+ + + + + ''; + home.file.".config/qutebrowser/containers".text = '' Teaching Tech +Finances +Gaming Gamedev Bard ''; - home.file.".config/qutebrowser/qute-home.html".text = generateHomepage "Default" userSettings.font config; - home.file.".browser/Teaching/config/qute-home.html".text = generateHomepage "Teaching" userSettings.font config; - home.file.".browser/Tech/config/qute-home.html".text = generateHomepage "Tech" userSettings.font config; - home.file.".browser/Gaming/config/qute-home.html".text = generateHomepage "Gaming" userSettings.font config; - home.file.".browser/Gamedev/config/qute-home.html".text = generateHomepage "Gamedev" userSettings.font config; - home.file.".browser/Bard/config/qute-home.html".text = generateHomepage "Bard" userSettings.font config; + # TODO make this final section more efficient... + + home.file.".browser/Teaching/config/qute-home.html".text = '' + + + + + My Local Dashboard Awesome Homepage + + + + + + +
+ ..--------.. + .`` "'. + .` _.---.. /--| '. + /`` || | + /` /--| || | + / / | || `/----\, + | | | .-`.-/- __. \ + | \ `-.`` ..-` \ | + \ ```` ~.^` | | | + \.____.-``'|| | / / + | || |_.- / + | || / + . |_-` `------~``. + `.. ..` + ``--______-'` +
+
+ +

Welcome to Qutebrowser

+
+

Teaching Profile

+
+ +
+

[o] [Search]

+

[b] [Quickmarks]

+

[S h] [History]

+

[t] [New tab]

+

[x] [Close tab]

+
+ + + + + ''; + + home.file.".browser/Tech/config/qute-home.html".text = '' + + + + + My Local Dashboard Awesome Homepage + + + + + + +
+ ..--------.. + .`` "'. + .` _.---.. /--| '. + /`` || | + /` /--| || | + / / | || `/----\, + | | | .-`.-/- __. \ + | \ `-.`` ..-` \ | + \ ```` ~.^` | | | + \.____.-``'|| | / / + | || |_.- / + | || / + . |_-` `------~``. + `.. ..` + ``--______-'` +
+
+ +

Welcome to Qutebrowser

+
+

Tech Profile

+
+ +
+

[o] [Search]

+

[b] [Quickmarks]

+

[S h] [History]

+

[t] [New tab]

+

[x] [Close tab]

+
+ + + + + ''; + + home.file.".browser/Finances/config/qute-home.html".text = '' + + + + + My Local Dashboard Awesome Homepage + + + + + + +
+ ..--------.. + .`` "'. + .` _.---.. /--| '. + /`` || | + /` /--| || | + / / | || `/----\, + | | | .-`.-/- __. \ + | \ `-.`` ..-` \ | + \ ```` ~.^` | | | + \.____.-``'|| | / / + | || |_.- / + | || / + . |_-` `------~``. + `.. ..` + ``--______-'` +
+
+ +

Welcome to Qutebrowser

+
+

Finances Profile

+
+ +
+

[o] [Search]

+

[b] [Quickmarks]

+

[S h] [History]

+

[t] [New tab]

+

[x] [Close tab]

+
+ + + + + ''; + + home.file.".browser/Gamedev/config/qute-home.html".text = '' + + + + + My Local Dashboard Awesome Homepage + + + + + + +
+ ..--------.. + .`` "'. + .` _.---.. /--| '. + /`` || | + /` /--| || | + / / | || `/----\, + | | | .-`.-/- __. \ + | \ `-.`` ..-` \ | + \ ```` ~.^` | | | + \.____.-``'|| | / / + | || |_.- / + | || / + . |_-` `------~``. + `.. ..` + ``--______-'` +
+
+ +

Welcome to Qutebrowser

+
+

Gamedev Profile

+
+ +
+

[o] [Search]

+

[b] [Quickmarks]

+

[S h] [History]

+

[t] [New tab]

+

[x] [Close tab]

+
+ + + + + ''; + + home.file.".browser/Gaming/config/qute-home.html".text = '' + + + + + My Local Dashboard Awesome Homepage + + + + + + +
+ ..--------.. + .`` "'. + .` _.---.. /--| '. + /`` || | + /` /--| || | + / / | || `/----\, + | | | .-`.-/- __. \ + | \ `-.`` ..-` \ | + \ ```` ~.^` | | | + \.____.-``'|| | / / + | || |_.- / + | || / + . |_-` `------~``. + `.. ..` + ``--______-'` +
+
+ +

Welcome to Qutebrowser

+
+

Gaming Profile

+
+ +
+

[o] [Search]

+

[b] [Quickmarks]

+

[S h] [History]

+

[t] [New tab]

+

[x] [Close tab]

+
+ + + + + ''; + + home.file.".browser/Bard/config/qute-home.html".text = '' + + + + + My Local Dashboard Awesome Homepage + + + + + + +
+ ..--------.. + .`` "'. + .` _.---.. /--| '. + /`` || | + /` /--| || | + / / | || `/----\, + | | | .-`.-/- __. \ + | \ `-.`` ..-` \ | + \ ```` ~.^` | | | + \.____.-``'|| | / / + | || |_.- / + | || / + . |_-` `------~``. + `.. ..` + ``--______-'` +
+
+ +

Welcome to Qutebrowser

+
+

Bard Profile

+
+ +
+

[o] [Search]

+

[b] [Quickmarks]

+

[S h] [History]

+

[t] [New tab]

+

[x] [Close tab]

+
+ + + + + ''; + } diff --git a/user/wm/hyprland/hyprland.nix b/user/wm/hyprland/hyprland.nix index 782f43d..bc2d8e6 100644 --- a/user/wm/hyprland/hyprland.nix +++ b/user/wm/hyprland/hyprland.nix @@ -29,7 +29,7 @@ exec-once = dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY exec-once = hyprctl setcursor '' + config.gtk.cursorTheme.name + " " + builtins.toString config.gtk.cursorTheme.size + '' - exec-once = hyprprofile Default + exec-once = hyprprofile Personal exec-once = pypr exec-once = ydotoold diff --git a/user/wm/hyprland/hyprprofiles/hyprprofiles.nix b/user/wm/hyprland/hyprprofiles/hyprprofiles.nix index 5a36b7f..a3ddfc2 100644 --- a/user/wm/hyprland/hyprprofiles/hyprprofiles.nix +++ b/user/wm/hyprland/hyprprofiles/hyprprofiles.nix @@ -13,7 +13,7 @@ in prevprofile="$(cat ~/.hyprprofile)" newprofile=$1 if [ $# -eq 1 ]; then - if [ $newprofile = "Default" ]; then + if [ $newprofile = "Personal" ]; then echo "" > ~/.hyprprofile; else echo $newprofile > ~/.hyprprofile; diff --git a/user/wm/hyprland/hyprprofiles/profiles/Bard/start-hook.sh b/user/wm/hyprland/hyprprofiles/profiles/Bard/start-hook.sh deleted file mode 100755 index 25ac77f..0000000 --- a/user/wm/hyprland/hyprprofiles/profiles/Bard/start-hook.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -hyprctl keyword unbind SUPER,S; -hyprctl keyword bind SUPER,S,exec,container-open Bard; -emacsclient --eval '(org-roam-switch-db "Bard.p" t)' diff --git a/user/wm/hyprland/hyprprofiles/profiles/Gamdev/start-hook.sh b/user/wm/hyprland/hyprprofiles/profiles/Gamdev/start-hook.sh deleted file mode 100755 index 8360bda..0000000 --- a/user/wm/hyprland/hyprprofiles/profiles/Gamdev/start-hook.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -hyprctl keyword unbind SUPER,S; -hyprctl keyword bind SUPER,S,exec,container-open Gamedev; -emacsclient --eval '(org-roam-switch-db "Gamedev.s" t)' diff --git a/user/wm/hyprland/hyprprofiles/profiles/Default/start-hook.sh b/user/wm/hyprland/hyprprofiles/profiles/Personal/start-hook.sh similarity index 100% rename from user/wm/hyprland/hyprprofiles/profiles/Default/start-hook.sh rename to user/wm/hyprland/hyprprofiles/profiles/Personal/start-hook.sh