mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-11 19:17:19 +10:00
Adding bindings for screenshot in Niri; also adding rules for cursor to hide-when-typing.
This commit is contained in:
@@ -113,6 +113,12 @@ environment {
|
|||||||
_JAVA_AWT_WM_NONREPARENTING "1"
|
_JAVA_AWT_WM_NONREPARENTING "1"
|
||||||
// GLFW_PLATFORM "x11"
|
// GLFW_PLATFORM "x11"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hide cursor when typing; also hides cursor from screenshots!
|
||||||
|
cursor {
|
||||||
|
hide-when-typing
|
||||||
|
}
|
||||||
|
|
||||||
// Settings that influence how windows are positioned and sized.
|
// Settings that influence how windows are positioned and sized.
|
||||||
// Find more information on the wiki:
|
// Find more information on the wiki:
|
||||||
// https://yalter.github.io/niri/Configuration:-Layout
|
// https://yalter.github.io/niri/Configuration:-Layout
|
||||||
@@ -302,7 +308,7 @@ prefer-no-csd
|
|||||||
// You can change the path where screenshots are saved.
|
// You can change the path where screenshots are saved.
|
||||||
// A ~ at the front will be expanded to the home directory.
|
// A ~ at the front will be expanded to the home directory.
|
||||||
// The path is formatted with strftime(3) to give you the screenshot date and time.
|
// The path is formatted with strftime(3) to give you the screenshot date and time.
|
||||||
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
|
screenshot-path "~/Screenshots/scrot-%Y-%m-%d %H-%M-%S.png"
|
||||||
|
|
||||||
// You can also set this to null to disable saving screenshots to disk.
|
// You can also set this to null to disable saving screenshots to disk.
|
||||||
// screenshot-path null
|
// screenshot-path null
|
||||||
@@ -582,9 +588,9 @@ binds {
|
|||||||
// Mod+Space { switch-layout "next"; }
|
// Mod+Space { switch-layout "next"; }
|
||||||
// Mod+Shift+Space { switch-layout "prev"; }
|
// Mod+Shift+Space { switch-layout "prev"; }
|
||||||
|
|
||||||
Print { screenshot; }
|
Mod+apostrophe { screenshot-screen; }
|
||||||
Ctrl+Print { screenshot-screen; }
|
Mod+Alt+apostrophe { screenshot-window; }
|
||||||
Alt+Print { screenshot-window; }
|
Mod+Shift+apostrophe { screenshot; }
|
||||||
|
|
||||||
// Applications such as remote-desktop clients and software KVM switches may
|
// Applications such as remote-desktop clients and software KVM switches may
|
||||||
// request that niri stops processing the keyboard shortcuts defined here
|
// request that niri stops processing the keyboard shortcuts defined here
|
||||||
|
|||||||
Reference in New Issue
Block a user