eww
This commit is contained in:
@@ -3,5 +3,7 @@
|
||||
{
|
||||
imports = [ ./programs/default-laptop.nix ./services ./default.nix ];
|
||||
|
||||
home.file,"git/minlog".source = config.lib.file.mkOutOfStorageSymlink "${pkgs.minlog}/share/minlog";
|
||||
home.file."minlog".source =
|
||||
config.lib.file.mkOutOfStoreSymlink "${pkgs.minlog}/share/minlog";
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
{
|
||||
imports =
|
||||
[ ./default.nix ./audacity-desktop ./autorandr/default-desktop.nix ];
|
||||
imports = [
|
||||
./default.nix
|
||||
./audacity-desktop
|
||||
./autorandr/default-desktop.nix
|
||||
./zathura/default-desktop.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
{ imports = [ ./default.nix ]; }
|
||||
{ imports = [ ./default.nix ./zathura/default-laptop.nix ]; }
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
./thunderbird
|
||||
./wallpaper
|
||||
./xmonad
|
||||
./zathura
|
||||
./zoom
|
||||
./zsh
|
||||
./zulip
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
|
||||
xdg.configFile."eww" = {
|
||||
recursive = true;
|
||||
source = ./eww;
|
||||
source = ./src;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
(defwindow example
|
||||
:monitor 0
|
||||
:geometry (geometry :x "0%"
|
||||
:y "0px"
|
||||
:width "100%"
|
||||
:height "25px"
|
||||
:anchor "top center")
|
||||
:stacking "fg"
|
||||
:reserve (struts :distance "20px" :side "top")
|
||||
:windowtype "dock"
|
||||
:wm-ignore false
|
||||
(greeter :text "Say hello!"
|
||||
:name "Tim"))
|
||||
|
||||
(defwidget greeter [?text name]
|
||||
(box :orientation "horizontal"
|
||||
:halign "center"
|
||||
text
|
||||
(button :onclick "notify-send 'Hello' 'Hello, ${name}'"
|
||||
"Greet")))
|
||||
44
home/programs/eww/src/eww.yuck
Normal file
44
home/programs/eww/src/eww.yuck
Normal file
@@ -0,0 +1,44 @@
|
||||
(defwindow bar-primary
|
||||
:monitor 0
|
||||
:geometry (geometry :x "0px"
|
||||
:y "0px"
|
||||
:width "100%"
|
||||
:height "25px"
|
||||
:anchor "top center")
|
||||
:stacking "fg"
|
||||
:reserve (struts :distance "25px" :side "top")
|
||||
:windowtype "dock"
|
||||
:wm-ignore false
|
||||
(box
|
||||
(button
|
||||
:width "60px"
|
||||
:onclick "notify-send 'Wow' 'That's a clock, idiot!'"
|
||||
"${time}")))
|
||||
; List of all workspaces
|
||||
(defvar workspacesList "[1, 2, 3, 4, 5, 6, 7, 8, 9, 0]")
|
||||
|
||||
(defwidget workspaces
|
||||
(box
|
||||
(for entry in workspacesList
|
||||
(button :onclick "notify-send 'click' 'button ${entry}'"
|
||||
entry))))
|
||||
|
||||
|
||||
(defwidget labeled-container [name]
|
||||
(box :class "container"
|
||||
name
|
||||
(children)))
|
||||
|
||||
(deflisten brightness :initial "0"
|
||||
`tail -F /tmp/brightness`)
|
||||
|
||||
(deflisten volume :initial "0"
|
||||
`tail -F /tmp/volume`)
|
||||
|
||||
(defvar variable_containing_yuck
|
||||
"(box (button 'foo') (button 'bar'))")
|
||||
|
||||
|
||||
(defpoll time :interval "1s"
|
||||
:initial "00:00:00" ; optional, defaults to poll at startup
|
||||
`date +%H:%M:%S`)
|
||||
|
Before Width: | Height: | Size: 6.0 MiB After Width: | Height: | Size: 6.0 MiB |
38
home/programs/indent.log
Normal file
38
home/programs/indent.log
Normal file
@@ -0,0 +1,38 @@
|
||||
INFO: latexindent.pl version 3.20.3, 2023-02-19, a script to indent .tex files
|
||||
latexindent.pl lives here: /nix/store/2bhgwk9gsgp4kj73jwwnn7v8ib73mcmc-texlive-latexindent-3.20.3/scripts/latexindent/
|
||||
Sat May 11 18:27:59 2024
|
||||
Reading input from STDIN
|
||||
INFO: Processing switches:
|
||||
-y|--yaml: YAML settings specified via command line
|
||||
INFO: Directory for backup files and indent.log:
|
||||
.
|
||||
INFO: Perl modules are being loaded from the following directories:
|
||||
/nix/store/40rr7blrifwcfzxih97y79qvh07ycakh-perl-5.38.2/lib/perl5/5.38.2/FindBin.pm
|
||||
/nix/store/8ajjd67qfdyzp0hbpvd1mrpqdhnwjlqq-perl-5.38.2-env/lib/perl5/site_perl/5.38.2/YAML/Tiny.pm
|
||||
/nix/store/40rr7blrifwcfzxih97y79qvh07ycakh-perl-5.38.2/lib/perl5/5.38.2/File/Copy.pm
|
||||
/nix/store/40rr7blrifwcfzxih97y79qvh07ycakh-perl-5.38.2/lib/perl5/5.38.2/File/Basename.pm
|
||||
/nix/store/40rr7blrifwcfzxih97y79qvh07ycakh-perl-5.38.2/lib/perl5/5.38.2/Getopt/Long.pm
|
||||
/nix/store/8ajjd67qfdyzp0hbpvd1mrpqdhnwjlqq-perl-5.38.2-env/lib/perl5/site_perl/5.38.2/File/HomeDir.pm
|
||||
INFO: LatexIndent perl modules are being loaded from, for example:
|
||||
/nix/store/2bhgwk9gsgp4kj73jwwnn7v8ib73mcmc-texlive-latexindent-3.20.3/scripts/latexindent/LatexIndent/Document.pm
|
||||
INFO: YAML settings read: defaultSettings.yaml
|
||||
Reading defaultSettings.yaml from /nix/store/2bhgwk9gsgp4kj73jwwnn7v8ib73mcmc-texlive-latexindent-3.20.3/scripts/latexindent/defaultSettings.yaml
|
||||
INFO: YAML reading settings
|
||||
Home directory is /home/elias
|
||||
latexindent.pl didn't find indentconfig.yaml or .indentconfig.yaml
|
||||
see all possible locations: https://latexindentpl.readthedocs.io/en/latest/sec-appendices.html#indentconfig-options)
|
||||
INFO: YAML settings read: -y switch
|
||||
YAML setting: "defaultIndent:' '"
|
||||
quote found in -y switch
|
||||
key:
|
||||
value: defaultIndent:' '
|
||||
double-quoted string found in -y switch: "defaultIndent:' '", substitute to defaultIndent:' '
|
||||
INFO: Phase 1: searching for objects
|
||||
INFO: Phase 2: finding surrounding indentation
|
||||
INFO: Phase 3: indenting objects
|
||||
INFO: Phase 4: final indentation check
|
||||
INFO: Output routine:
|
||||
Not outputting to file; see -w and -o switches for more options.
|
||||
--------------
|
||||
INFO: Please direct all communication/issues to:
|
||||
https://github.com/cmhughes/latexindent.pl
|
||||
21
home/programs/zathura/default-laptop.nix
Normal file
21
home/programs/zathura/default-laptop.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ ... }:
|
||||
|
||||
let
|
||||
theme = builtins.fetchurl {
|
||||
url =
|
||||
"https://raw.githubusercontent.com/catppuccin/zathura/main/src/catppuccin-mocha";
|
||||
sha256 = "1zhx3bfz5s2wjrj87w0ryh15vgsqqfhg6dm48p63r5fmqwsak721";
|
||||
};
|
||||
in {
|
||||
programs.zathura = {
|
||||
enable = true;
|
||||
options = {
|
||||
synctex-editor-command = ''
|
||||
include ${theme}
|
||||
nvim --headless -c "VimtexInverseSearch %l '%f'"
|
||||
'';
|
||||
synctex = true;
|
||||
font = "Fira Code 16";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user