feat: wallpaper switch keybind

This commit is contained in:
Patrick 2024-04-11 18:15:46 +02:00
parent 5bc5164148
commit e6974a5cc8
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
7 changed files with 15 additions and 9 deletions

View file

@ -1183,11 +1183,11 @@
"pre-commit-hooks": "pre-commit-hooks_2"
},
"locked": {
"lastModified": 1712774101,
"narHash": "sha256-t58qLvRLjrekfnHWS5Un5LXQJCrLeycKcuPRtoVqJbw=",
"lastModified": 1712851738,
"narHash": "sha256-3Hxz4ORxF2QSbRUt3YPK1MN6xbVQjRjSxSEAJ8lePz8=",
"owner": "oddlama",
"repo": "nixos-extra-modules",
"rev": "0f4e5f7391532ddf105020a5be75421ea2e4fdc7",
"rev": "3ade74f7616458c38f00ee6fed73794e1a79bbf3",
"type": "github"
},
"original": {

BIN
img/wallpaper.png.age Normal file

Binary file not shown.

View file

@ -25,6 +25,7 @@
maim = "${pkgs.maim}/bin/maim -qs -b 1 --hidecursor";
in {
"Menu" = "exec ${cfg.menu}";
"Ctrl+F9" = "exec ${config.xsession.wallpapers.script}";
"${cfg.modifier}+F12" =
"exec "
+ toString (

View file

@ -1,5 +1,5 @@
{
programs.nixvim.options = {
programs.nixvim.opts = {
# Set maximum undo levels
undolevels = 1000000;
# Persistent Undo

View file

@ -40,7 +40,7 @@
};
indent-blankline = {
enable = true;
extraOptions = {
settings = {
exclude.buftypes = ["help" "terminal" "nofile"];
exclude.filetypes = ["terminal" "lsp-info"];
};
@ -56,7 +56,7 @@
};
treesitter-context.enable = true;
vim-matchup.enable = true;
comment-nvim.enable = true;
comment.enable = true;
# Fzf picker for arbitrary stuff
telescope = {
enable = true;

View file

@ -6,7 +6,7 @@
exe = lib.getExe (pkgs.nixvim.makeNixvim {
package = pkgs.neovim-clean;
options = {
opts = {
buftype = "nowrite";
backup = false;
modeline = false;

View file

@ -10,7 +10,7 @@
# button number
"5" = {
# keyInput to press
keys = "F7";
keys = "ctrl+F7";
# Text shown on button
#text = "mute";
icon = config.images.images."mic.png";
@ -18,8 +18,13 @@
text_vertical_align = "middle-bottom";
background_color = "#7289DA";
};
"0" = {
keys = "ctrl+F9";
icon = config.images.images."wallpaper.png";
background_color = "#7289DA";
};
"6" = {
keys = "F8";
keys = "ctrl+F8";
icon = config.images.images."heads.png";
background_color = "#7289DA";
};