Screenshot : Use swappy for screenshot selection.
This commit is contained in:
parent
673a7ff83c
commit
6a77918b32
|
@ -12,13 +12,14 @@
|
||||||
mangohud = import ./mangohud args;
|
mangohud = import ./mangohud args;
|
||||||
nvim = import ./nvim args;
|
nvim = import ./nvim args;
|
||||||
ssh = import ./ssh args;
|
ssh = import ./ssh args;
|
||||||
|
swappy = import ./swappy args;
|
||||||
sway = import ./sway args;
|
sway = import ./sway args;
|
||||||
tmux = import ./tmux args;
|
tmux = import ./tmux args;
|
||||||
waybar = import ./waybar args;
|
waybar = import ./waybar args;
|
||||||
yazi = import ./yazi args;
|
yazi = import ./yazi args;
|
||||||
in {
|
in {
|
||||||
".config/MangoHud/MangoHud.conf".text = mangohud.config;
|
".config/MangoHud/MangoHud.conf".source = mangohud.config;
|
||||||
".config/MangoHud/presets.conf".text = mangohud.presets;
|
".config/MangoHud/presets.conf".source = mangohud.presets;
|
||||||
".config/btop/btop.conf".text = btop.text;
|
".config/btop/btop.conf".text = btop.text;
|
||||||
".config/foot/foot.ini".source = foot.file;
|
".config/foot/foot.ini".source = foot.file;
|
||||||
".config/fuzzel/fuzzel.ini".source = fuzzel.file;
|
".config/fuzzel/fuzzel.ini".source = fuzzel.file;
|
||||||
|
@ -27,6 +28,7 @@ in {
|
||||||
".config/keyd/app.conf".text = keyd.text;
|
".config/keyd/app.conf".text = keyd.text;
|
||||||
".config/mako/config".source = mako.file;
|
".config/mako/config".source = mako.file;
|
||||||
".config/nvim/init.vim".text = nvim.text;
|
".config/nvim/init.vim".text = nvim.text;
|
||||||
|
".config/swappy/config".source = swappy.config;
|
||||||
".config/sway/config".text = sway.text;
|
".config/sway/config".text = sway.text;
|
||||||
".config/tmux/tmux.conf".text = tmux.text;
|
".config/tmux/tmux.conf".text = tmux.text;
|
||||||
".config/waybar/config".source = waybar.config;
|
".config/waybar/config".source = waybar.config;
|
||||||
|
|
|
@ -1,39 +1,44 @@
|
||||||
{ util, ... }: {
|
{ pkgs, ... }: {
|
||||||
config = util.trimTabs ''
|
config = (pkgs.formats.iniWithGlobalSection {}).generate "MangoConfig" {
|
||||||
blacklist=example
|
globalSection = {
|
||||||
fps_sampling_period=1000
|
blacklist = "example";
|
||||||
frame_timing=0
|
fps_sampling_period = 1000;
|
||||||
preset=0,1,2
|
frame_timing = 0;
|
||||||
toggle_preset=F1
|
preset = "0,1,2";
|
||||||
toggle_logging=F2
|
toggle_logging = "F2";
|
||||||
'';
|
toggle_preset = "F1";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
presets = util.trimTabs ''
|
presets = (pkgs.formats.ini {}).generate "MangoPresets" {
|
||||||
[preset 0]
|
"preset 0" = {
|
||||||
no_display=1
|
no_display = 1;
|
||||||
|
};
|
||||||
|
|
||||||
[preset 1]
|
"preset 1" = {
|
||||||
alpha=1.0
|
alpha = 1.0;
|
||||||
arch=0
|
arch = 0;
|
||||||
background_alpha=0.5
|
background_alpha = 0.5;
|
||||||
battery=1
|
battery = 1;
|
||||||
battery_time=1
|
battery_time = 1;
|
||||||
benchmark_percentiles=0
|
benchmark_percentiles = 0;
|
||||||
cpu_temp=1
|
cpu_temp = 1;
|
||||||
device_battery=gamepad,mouse
|
device_battery = "gamepad,mouse";
|
||||||
font_size=12
|
font_size = 12;
|
||||||
fps_sampling_period=1000
|
fps_sampling_period = 1000;
|
||||||
gpu_junction_temp=0
|
gpu_junction_temp = 0;
|
||||||
gpu_mem_temp=1
|
gpu_mem_temp = 1;
|
||||||
gpu_temp=1
|
gpu_temp = 1;
|
||||||
hud_no_margin=1
|
hud_no_margin = 1;
|
||||||
ram=1
|
ram = 1;
|
||||||
swap=1
|
swap = 1;
|
||||||
throttling_status=1
|
throttling_status = 1;
|
||||||
time=1
|
time = 1;
|
||||||
vram=1
|
vram = 1;
|
||||||
|
};
|
||||||
|
|
||||||
[preset 2]
|
"preset 2" = {
|
||||||
full=1
|
full = 1;
|
||||||
'';
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
13
home/config/swappy/default.nix
Normal file
13
home/config/swappy/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{ pkgs, config, ... }: {
|
||||||
|
config = (pkgs.formats.ini {}).generate "SwappyConfig" {
|
||||||
|
Default = {
|
||||||
|
early_exit = true;
|
||||||
|
fill_shape = false;
|
||||||
|
line_size = 4;
|
||||||
|
paint_mode = "arrow";
|
||||||
|
show_panel = true;
|
||||||
|
text_font = config.style.font.serif.name;
|
||||||
|
text_size = config.style.font.size.popup;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -26,6 +26,7 @@ in {
|
||||||
|
|
||||||
grim \
|
grim \
|
||||||
-g "''${scrSelection}" - \
|
-g "''${scrSelection}" - \
|
||||||
|
| swappy -f - -o - \
|
||||||
| tee "''${scrFile}" \
|
| tee "''${scrFile}" \
|
||||||
| wl-copy -t image/png
|
| wl-copy -t image/png
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
adwaita-icon-theme # GTK icons.
|
adwaita-icon-theme # GTK icons.
|
||||||
foot # Terminal emulator.
|
foot # Terminal emulator.
|
||||||
fuzzel # Application launcher.
|
fuzzel # Application launcher.
|
||||||
grim slurp wf-recorder # Screenshot.
|
grim slurp wf-recorder swappy # Screenshot.
|
||||||
mako # Notification system.
|
mako # Notification system.
|
||||||
networkmanagerapplet # Internet configuration.
|
networkmanagerapplet # Internet configuration.
|
||||||
pamixer pavucontrol pulseaudio # Audio.
|
pamixer pavucontrol pulseaudio # Audio.
|
||||||
|
|
Loading…
Reference in a new issue