style waybar, add mpd module, other fixes
This commit is contained in:
parent
32500bffd0
commit
ce1c48b4a4
8 changed files with 121 additions and 92 deletions
|
|
@ -46,6 +46,8 @@ in
|
|||
obs-studio
|
||||
selectdefaultapplication
|
||||
input-leap
|
||||
pwvucontrol
|
||||
easyeffects
|
||||
|
||||
inkscape
|
||||
libsForQt5.okular
|
||||
|
|
@ -58,7 +60,6 @@ in
|
|||
bitwarden
|
||||
libsForQt5.kasts
|
||||
libreoffice
|
||||
gimp
|
||||
(makeDesktopItem {
|
||||
name = "logseq";
|
||||
desktopName = "Logseq";
|
||||
|
|
@ -97,23 +98,6 @@ in
|
|||
];
|
||||
};
|
||||
|
||||
programs.ncmpcpp = {
|
||||
enable = true;
|
||||
settings.mpd_host = "music.local";
|
||||
bindings = [
|
||||
{ key = "j"; command = "scroll_down"; }
|
||||
{ key = "k"; command = "scroll_up"; }
|
||||
{ key = "l"; command = "next_column"; }
|
||||
{ key = "h"; command = "previous_column"; }
|
||||
{ key = "J"; command = [ "select_item" "scroll_down" ]; }
|
||||
{ key = "K"; command = [ "select_item" "scroll_up" ]; }
|
||||
];
|
||||
};
|
||||
services.mpd-mpris.enable = true;
|
||||
services.mpd-mpris.mpd = {
|
||||
host = "music.local";
|
||||
};
|
||||
|
||||
programs.mpv.enable = true;
|
||||
programs.mpv.bindings = {
|
||||
l = "seek 5";
|
||||
|
|
@ -340,6 +324,9 @@ in
|
|||
Service = {
|
||||
ExecStart = "${pkgs.snapcast}/bin/snapclient -h music.local";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["graphical-session.target"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -348,49 +335,6 @@ in
|
|||
indicator = true;
|
||||
};
|
||||
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
config = {
|
||||
modifier = "Mod4";
|
||||
input = {
|
||||
"type:keyboard" = {
|
||||
xkb_layout = "gb";
|
||||
xkb_options = "caps:escape";
|
||||
xkb_numlock = "enable";
|
||||
};
|
||||
"type:touchpad" = {
|
||||
natural_scroll = "enabled";
|
||||
tap = "enabled";
|
||||
};
|
||||
};
|
||||
gaps = {
|
||||
inner = 10;
|
||||
};
|
||||
keybindings =
|
||||
let
|
||||
modifier = config.wayland.windowManager.sway.config.modifier;
|
||||
in
|
||||
lib.mkOptionDefault {
|
||||
"${modifier}+Shift+x" = "kill";
|
||||
"${modifier}+d" = "exec ${pkgs.wofi}/bin/wofi --show drun";
|
||||
"${modifier}+o" = "exec ${my-deps.fileman}";
|
||||
XF86AudioRaiseVolume = "exec ${ my-deps.amixer } sset Master 5%+ && ${ my-deps.amixer } sset Master unmute";
|
||||
XF86AudioLowerVolume = "exec ${ my-deps.amixer } sset Master 5%-";
|
||||
# XF86AudioPlay = "exec ${ my-scripts.play-pause }/bin/play-pause";
|
||||
XF86AudioNext = "exec ${ my-deps.playerctl } next";
|
||||
XF86AudioPrev = "exec ${ my-deps.playerctl } previous";
|
||||
# XF86MonBrightnessUp = "exec ${ my-scripts.brightness-up }/bin/brightness-up";
|
||||
# XF86MonBrightnessDown = "exec ${ my-scripts.brightness-down }/bin/brightness-down";
|
||||
# "${modifier}+P" = "exec ${ my-scripts.bwmenu }/bin/bwmenu";
|
||||
# "${modifier}+SHIFT+P" = "exec ${ my-scripts.bwotpmenu }/bin/bwotpmenu";
|
||||
# "${modifier}+SHIFT+S" = "exec ${ my-scripts.screenshot }/bin/screenshot";
|
||||
"${modifier}+M" = "exec ${ my-deps.terminal } -e ncmpcpp";
|
||||
"${modifier}+Z" = "exec ${pkgs.swaylock-effects}/bin/swaylock -f";
|
||||
};
|
||||
bars = [ ];
|
||||
};
|
||||
};
|
||||
|
||||
programs.qutebrowser = {
|
||||
enable = true;
|
||||
searchEngines = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue