From c3ffed07558c11f925054e433559542a93eb91cd Mon Sep 17 00:00:00 2001 From: Emmet Date: Sat, 23 Mar 2024 09:57:00 -0500 Subject: [PATCH] Simplified qutebrowser container config --- user/app/browser/qutebrowser.nix | 864 +++--------------- .../hyprprofiles/profiles/Bard/start-hook.sh | 5 + .../{Personal => Default}/start-hook.sh | 0 .../profiles/Gamdev/start-hook.sh | 5 + 4 files changed, 121 insertions(+), 753 deletions(-) create mode 100755 user/wm/hyprland/hyprprofiles/profiles/Bard/start-hook.sh rename user/wm/hyprland/hyprprofiles/profiles/{Personal => Default}/start-hook.sh (100%) create mode 100755 user/wm/hyprland/hyprprofiles/profiles/Gamdev/start-hook.sh diff --git a/user/app/browser/qutebrowser.nix b/user/app/browser/qutebrowser.nix index 121bd55..907c496 100644 --- a/user/app/browser/qutebrowser.nix +++ b/user/app/browser/qutebrowser.nix @@ -1,5 +1,110 @@ { 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 @@ -220,765 +325,18 @@ 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 ''; - # 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]

-
- - - - - ''; - + 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; } diff --git a/user/wm/hyprland/hyprprofiles/profiles/Bard/start-hook.sh b/user/wm/hyprland/hyprprofiles/profiles/Bard/start-hook.sh new file mode 100755 index 0000000..25ac77f --- /dev/null +++ b/user/wm/hyprland/hyprprofiles/profiles/Bard/start-hook.sh @@ -0,0 +1,5 @@ +#!/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/Personal/start-hook.sh b/user/wm/hyprland/hyprprofiles/profiles/Default/start-hook.sh similarity index 100% rename from user/wm/hyprland/hyprprofiles/profiles/Personal/start-hook.sh rename to user/wm/hyprland/hyprprofiles/profiles/Default/start-hook.sh diff --git a/user/wm/hyprland/hyprprofiles/profiles/Gamdev/start-hook.sh b/user/wm/hyprland/hyprprofiles/profiles/Gamdev/start-hook.sh new file mode 100755 index 0000000..8360bda --- /dev/null +++ b/user/wm/hyprland/hyprprofiles/profiles/Gamdev/start-hook.sh @@ -0,0 +1,5 @@ +#!/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)'