add raw screenshot bind
This commit is contained in:
parent
d3eb564ec5
commit
dce6b84147
4 changed files with 31 additions and 3 deletions
31
home.nix
31
home.nix
|
|
@ -178,6 +178,33 @@ in
|
|||
"libsoup-2.74.3"
|
||||
];
|
||||
|
||||
systemd.user.services.rawkeybinds = {
|
||||
enable = true;
|
||||
script = ''
|
||||
#!/bin/sh
|
||||
sleep 2
|
||||
for it in
|
||||
${pkgs.xorg.xmodmap}/bin
|
||||
${pkgs.xorg.xinput}/bin
|
||||
${pkgs.xclip}/bin
|
||||
${pkgs.libnotify}/bin
|
||||
${pkgs.actkbd}/bin
|
||||
${pkgs.xdotool}/bin
|
||||
${pkgs.sudo}/bin
|
||||
${pkgs.maim}/bin
|
||||
do
|
||||
export PATH="$PATH:$it"
|
||||
done
|
||||
|
||||
echo $PATH
|
||||
|
||||
sudo actkbd -xs -c ${./rawkeybinds.actkbd.conf}
|
||||
'';
|
||||
wantedBy = [
|
||||
"graphical-session.target"
|
||||
];
|
||||
};
|
||||
|
||||
home-manager.backupFileExtension = ".hm-old";
|
||||
home-manager.users.tudbut = {
|
||||
programs.home-manager.enable = true;
|
||||
|
|
@ -265,7 +292,7 @@ in
|
|||
ssh ubuntu@( ssh ubuntu@aws.tudbut.de curl -s ip.me )
|
||||
end
|
||||
alias fucking=sudo
|
||||
alias nix-fish="nix-shell --command fish"
|
||||
alias nix-fish="nix-shell --command fish -p"
|
||||
alias gitlog="git log --all --oneline --graph"
|
||||
alias lnc="l --color=no"
|
||||
function mkcd
|
||||
|
|
@ -301,7 +328,7 @@ in
|
|||
"XF86MonBrightnessUp" = "exec --no-startup-id bright up";
|
||||
"XF86MonBrightnessDown" = "exec --no-startup-id bright down";
|
||||
"Print" = "exec --no-startup-id maim -s screenshot.png && xclip -selection clipboard -target image/png screenshot.png";
|
||||
"Mod4+Print" = "exec --no-startup-id maim screenshot.png && xclip -selection clipboard -target image/png screenshot.png && notify-send Screenshotted && gimp --no-splash --no-data --no-fonts screenshot.png";
|
||||
"Mod4+Shift+Print" = "exec gimp --no-splash --no-data --no-fonts screenshot.png";
|
||||
"Mod4+Mod1+q" = "exec sl";
|
||||
"Mod4+p" = "exec killall -USR1 deadd-notification-center";
|
||||
"Mod4+o" = "exec pcmanfm";
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
xmodmap -e 'keycode 135 = NoSymbol NoSymbol NoSymbol'
|
||||
xmodmap -e 'keycode 84 = NoSymbol NoSymbol NoSymbol'
|
||||
xinput set-prop FTSC1000:00\ 2808:1015 189 0 1 0 -1 0 1 0 0 1 || xinput set-prop FTSC1000:00\ 2808:1015 191 0 1 0 -1 0 1 0 0 1
|
||||
/run/wrappers/bin/sudo actkbd -xs -c ${./actkbd.conf}
|
||||
/run/wrappers/bin/sudo actkbd -xs -c ${./minilaptop.actkbd.conf}
|
||||
'';
|
||||
wantedBy = [
|
||||
"graphical-session.target"
|
||||
|
|
|
|||
1
rawkeybinds.actkbd.conf
Normal file
1
rawkeybinds.actkbd.conf
Normal file
|
|
@ -0,0 +1 @@
|
|||
133+107:key:exec:maim screenshot.png && xclip -selection clipboard -target image/png screenshot.png && notify-send Screenshotted
|
||||
Loading…
Add table
Reference in a new issue