mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
Add screenshots and cliphistory
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
From bc8d50cb39b925b0bf551a65e2cdf3420c2f77cf Mon Sep 17 00:00:00 2001
|
||||
From: Stivvo <stivvo01@gmail.com>
|
||||
Date: Tue, 15 Sep 2020 13:20:05 +0200
|
||||
Subject: [PATCH] focusmon() moves the cursor accordingly
|
||||
|
||||
Moves the cursor to the recently focused monito
|
||||
|
||||
Keeps same x and y position relative to the monitor
|
||||
---
|
||||
dwl.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/dwl.c b/dwl.c
|
||||
index 730e46a1f..f6cdcbb26 100644
|
||||
--- a/dwl.c
|
||||
+++ b/dwl.c
|
||||
@@ -734,9 +734,11 @@ void
|
||||
focusmon(const Arg *arg)
|
||||
{
|
||||
Client *sel = selclient();
|
||||
+ Monitor *prevm = selmon;
|
||||
|
||||
selmon = dirtomon(arg->i);
|
||||
focusclient(sel, focustop(selmon), 1);
|
||||
+ wlr_cursor_move(cursor, NULL, selmon->m.x - prevm->m.x , 0);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -35,7 +35,7 @@ static const Rule rules[] = {
|
||||
{ "Gimp", NULL, 0, 1, -1 },
|
||||
*/
|
||||
{ "discord", NULL, 1 << 2, 0, -1 },
|
||||
{ "youtube-music", NULL, 1 << 1, 0, -1 },
|
||||
{ "youtube-music", NULL, 1 << 1, 0, -1 },
|
||||
};
|
||||
|
||||
/* layout(s) */
|
||||
@@ -163,6 +163,9 @@ static const Key keys[] = {
|
||||
TAGKEYS( XKB_KEY_9, XKB_KEY_parenleft, 8),
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Q, quit, {0} },
|
||||
|
||||
{ MODKEY, XKB_KEY_x, SHCMD("grim -g \"$(slurp -b 00000000 -s 61616140)\" - | wl-copy") },
|
||||
{ MODKEY, XKB_KEY_v, SHCMD("cliphist list | rofi -dmenu | cliphist decode | wl-copy") },
|
||||
|
||||
{ 0, XKB_KEY_XF86PowerOff, spawn, {.v = (const char*[]){"ags", "-t", "powermenu", NULL}}},
|
||||
// TODO: Allow those bindings on lockscreen
|
||||
// TODO: Allow those bindings on repeat
|
||||
|
||||
@@ -26,6 +26,9 @@ in {
|
||||
hyprpicker
|
||||
wdisplays
|
||||
wlr-randr
|
||||
grim
|
||||
slurp
|
||||
cliphist
|
||||
];
|
||||
|
||||
xdg.systemDirs.data = [
|
||||
|
||||
@@ -22,13 +22,12 @@ in {
|
||||
patches = [
|
||||
../dwl_patches/autostart.patch
|
||||
../dwl_patches/deck.patch
|
||||
# ../dwl_patches/focusMonPointer.patch
|
||||
../dwl_patches/point.patch
|
||||
../dwl_patches/output-power-managment.patch
|
||||
../dwl_patches/keyboard-shortcut-inhibit.patch
|
||||
../dwl_patches/cursor_wrap.patch
|
||||
../dwl_patches/vanitygaps.patch
|
||||
# ../dwl_patches/smartborders.patch
|
||||
../dwl_patches/vanitygaps.patch
|
||||
../dwl_patches/desktop.patch
|
||||
];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user