some stuff
This commit is contained in:
parent
cc83f63010
commit
4ae26b48df
10 changed files with 51 additions and 80 deletions
|
@ -33,6 +33,7 @@
|
|||
../../programs/misc/ardour.nix
|
||||
../../programs/misc/foliate.nix
|
||||
../../programs/misc/obsidian.nix
|
||||
../../programs/misc/pavucontrol.nix
|
||||
../../programs/misc/thunderbird.nix
|
||||
#../../programs/music
|
||||
#../../programs/music/yams.nix
|
||||
|
|
|
@ -39,17 +39,6 @@
|
|||
wobVolume = "${pkgs.wireplumber}/bin/wpctl get-volume @DEFAULT_SINK@ | awk '{print $2*100}' > $XDG_RUNTIME_DIR/wob.sock";
|
||||
setVolume = limit: amount: "${pkgs.wireplumber}/bin/wpctl set-volume -l ${limit} @DEFAULT_AUDIO_SINK@ ${amount}";
|
||||
perMonitor = workspace: "\"$(swaymsg -t get_outputs | ${lib.getExe pkgs.jq} -r '.[] | select(.focused == true).name' | ${lib.getExe pkgs.perl} -ne '$s=0;for(split//){$s+=ord}print\"$s\"')${toString workspace}\"";
|
||||
#perMonitor = workspace: "${lib.getExe (pkgs.writeShellScriptBin "perMonitor" ''
|
||||
# id=$( md5sum <<< ${config.wayland.windowManager.sway.package}/bin/swaymsg -t get_outputs | ${lib.getExe pkgs.jq} -r '.[] | select(.focused == true).id' )
|
||||
# echo $((0x''${id%% *}))
|
||||
#'')} workspace";
|
||||
#perMonitor = pkgs.writeShellScriptBin "perMonitor" ''
|
||||
# args=( "$@" )
|
||||
# id=$( ${config.wayland.windowManager.sway.package}/bin/swaymsg -t get_outputs | ${lib.getExe pkgs.jq} -r '.[] | select(.focused == true).id' )
|
||||
# # args[$#-1]=$(( ''${args[$#-1]} + $id * 10 ))
|
||||
# args[$#-1]="$id:''${args[$#-1]}"
|
||||
# swaymsg ''${args[@]}
|
||||
#'';
|
||||
dir = with config.wayland.windowManager.sway.config; {
|
||||
inherit up down left right;
|
||||
};
|
||||
|
@ -79,14 +68,16 @@
|
|||
"XF86AudioPrev" = "exec ${lib.getExe pkgs.playerctl} previous";
|
||||
}
|
||||
// builtins.listToAttrs (lib.flatten
|
||||
(builtins.map (x: [
|
||||
(builtins.map (x: let
|
||||
x' = toString x;
|
||||
in [
|
||||
{
|
||||
name = "${mod}+${toString x}";
|
||||
value = "exec swaymsg workspace number ${perMonitor x}:${toString x}";
|
||||
name = "${mod}+${x'}";
|
||||
value = "exec swaymsg workspace number ${perMonitor x'}:${x'}";
|
||||
}
|
||||
{
|
||||
name = "${mod}+Shift+${toString x}";
|
||||
value = "exec swaymsg move container to workspace number ${perMonitor x}:${toString x}";
|
||||
name = "${mod}+Shift+${toString x'}";
|
||||
value = "exec swaymsg move container to workspace number ${perMonitor x'}:${x'}";
|
||||
}
|
||||
]) (lib.range 0 9)))
|
||||
);
|
||||
|
|
5
home/programs/misc/pavucontrol.nix
Normal file
5
home/programs/misc/pavucontrol.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
pavucontrol
|
||||
];
|
||||
}
|
|
@ -10,7 +10,12 @@
|
|||
bind % split-window -h -c "#{pane_current_path}"
|
||||
bind c new-window -c "#{pane_current_path}";
|
||||
|
||||
set-option -g status-style bg=default
|
||||
set -g status-style bg=default
|
||||
setw -g window-status-current-style fg=#be95ff
|
||||
set -g status-justify absolute-centre
|
||||
set -g status-interval 5
|
||||
set -g status-right "#[fg=#25be6a]#(free -h | awk 'NR==2{print $3\"/\"$2}')"
|
||||
set -ag status-right "#[fg=default] %a %d %b %H:%M"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue