Commit Graph

661 Commits

Author SHA1 Message Date
Thomas Voss 1e5cab1ee7
Set child stdout and stderr to /dev/null (#1000)
Some scripts or utilities check to see if stdout or stderr are connected
to a TTY or not to determine certain behaviors (for example, you might
want to prompt a user for input with fzf(1) if in a terminal but tofi(1)
or wofi(1) when spawned from your WM).  Since hyprland never closes
these output streams for spawned processes, they end up just spewing
their output onto the TTY while giving the user no real way to have a
script detect if it's being run from the shell or WM.

Instead of just closing stdout and stderr though, we close them and then
proceed to reopen them but connect them to /dev/null.  This allows
scripts and processes to not fail when attempting to write, but for that
writing to simply have no effect.
2022-11-13 11:58:20 +00:00
Leftas 34a7f17956
Add keyboard led update after keys/mod update 2022-11-12 13:12:37 +02:00
vaxerski dd11434e90 notify idle on touch down 2022-11-11 23:41:04 +00:00
Vaxry 153c99217d use spawn in config exec 2022-11-10 13:50:16 +00:00
Vaxry 851df11eb5 Added exec rules 2022-11-10 13:39:23 +00:00
vaxerski 5f2c741f49 remove spammy ime logs 2022-11-10 12:24:41 +00:00
vaxerski 1cf829c889 minor loose focus fixes 2022-11-08 20:28:41 +00:00
Vaxry 17992b633d minor fixes for follow_mouse 3 2022-11-08 14:48:17 +00:00
vaxerski aefc34b405 Minor fixes for virtual input devices 2022-11-07 22:22:13 +00:00
vaxerski e3a3837164 fix up formatting 2022-11-07 20:31:56 +00:00
abbadanor 1a55fb4170
Dispatcher to center floating window (#961)
Co-authored-by: Adam Nord <adam.nord@abbgymnasiet.se>
Co-authored-by: vaxerski <vaxry@vaxry.net>
2022-11-07 12:16:30 +00:00
vaxerski 57817f7252 Added resize transitions 2022-11-06 17:52:09 +00:00
vaxerski 976b44443a ignore constraints on exclusiveClient create 2022-11-05 18:34:26 +00:00
vaxerski 70aece8522 constraint focus simplifications 2022-11-04 18:09:40 +00:00
vaxerski 206360177f Multiple animation optimization and xwayland wine fixes 2022-11-04 15:56:31 +00:00
vaxerski e796157672 fix passing input to constrained windows without relative 2022-11-04 11:09:34 +00:00
vaxerski b51222c004 fix ordering in mouse connect 2022-11-04 10:48:42 +00:00
vaxerski 653b9ed0e4 Fix missing focusedmon event on focusmonitor dispatcher 2022-11-03 19:34:26 +00:00
Vaxry d0e47d9fe0 added workspace_swipe_forever 2022-11-03 13:35:34 +00:00
vaxerski 6ddfae0a07 remove ensureFDsValid, legacy 2022-11-02 21:28:08 +00:00
Vaxry 603a90886f fix swipe on 2 detached workspaces 2022-11-02 10:01:13 +00:00
vaxerski a69fd21a1a Add an idleinhibit windowrule 2022-10-31 12:26:07 +00:00
vaxerski 9f1d7f7fc7 properly scan for subsurfaces in fullscreen input refocus 2022-10-30 12:28:37 +00:00
vaxerski 644c64d79d lower IME errors to WARNs 2022-10-28 21:47:08 +01:00
vaxerski 9e227a52c0 allow cyclenext on null focus 2022-10-28 21:31:39 +01:00
vaxerski f7174acc48 minor fixes for xwayland refocus 2022-10-28 19:18:10 +01:00
vaxerski c2cd718e89 ignore pointer constraints in touch 2022-10-27 23:44:23 +01:00
Vaxry 28c81fc71e add disabling pointer devices 2022-10-27 12:58:10 +01:00
Vaxry d5a0610ea2
No xwayland overhaul (#920) 2022-10-27 11:26:35 +01:00
Vaxry ba9a8a9ded unify LS unmap focus 2022-10-25 14:19:24 +01:00
vaxerski 69f1d7b360 Rework workspace rules 2022-10-24 18:36:31 +01:00
vaxerski 1d0d350fc3 fix silent + size windowrules 2022-10-24 12:03:15 +01:00
vaxerski c6a3092b45 more safety around shutting down and mouse movements 2022-10-24 00:14:42 +01:00
vaxerski 0d7d7a970d fix crash in event manager on hangup 2022-10-22 16:15:52 +01:00
vaxerski 6df6aea1ba fix swipe with fullscreen maximized 2022-10-20 20:37:37 +01:00
Vaxry dada872981 minor swipe on new fixes 2022-10-20 17:52:17 +01:00
Vaxry 1eec5161bd minor fix for swipes from empty workspaces 2022-10-20 15:47:35 +01:00
Vaxry 53c3644c29 fix minor anim issue with swipe new 2022-10-20 15:02:46 +01:00
Vaxry 6d66dde208 added swipe create new 2022-10-20 14:54:32 +01:00
vaxerski 286cb90c48 ignore OR windows' size hints 2022-10-17 14:26:18 +01:00
vaxerski da4cfb9c32 use size hints when available in xwayland default geom 2022-10-17 11:18:45 +01:00
vaxerski edeb759bb1 add loose focus behavior 2022-10-15 14:13:21 +01:00
vaxerski 34cd8b125a rework focus system to be more safe and faster 2022-10-14 20:46:32 +01:00
Vaxry a7bdfc06ca added bringactivetotop dispatcher 2022-10-14 14:22:31 +01:00
Vaxry 724fa4a7d4 add touch binding to output 2022-10-14 12:38:44 +01:00
Vaxry cee0645fd1
Merge pull request #813 from histausse/touch_dev_rotation
Add input:touchdevice:transform config
2022-10-14 12:26:31 +01:00
Vaxry df9409b8a2 rename transform in DC to touch_transform 2022-10-14 12:23:11 +01:00
vaxerski 670d6ce8f4 fix windowsOut disabled with fadeOut enabled 2022-10-13 21:32:28 +01:00
Vaxry eb3c132fc5 set workspace name in previous 2022-10-13 15:17:16 +01:00
Vaxry 7ecc41db9c unsetenv on no XWayland 2022-10-11 12:00:06 +01:00
Histausse 6287f2b71b
use static for transformation matrices 2022-10-10 12:52:12 +02:00
Histausse 406b2fe6dc
Add additionnal matrices and rename config var 2022-10-09 00:45:34 +02:00
Histausse 32ae0c51f0
Add input:touchdevice:td_rotation config
Add support for touch device roation. The rotation is
set globally with `input:touchdevice:td_rotation config` and by
device with `td_rotation` in a device block.
2022-10-08 15:25:46 +02:00
Vaxry a19b152e4a make swipe respect slidevert 2022-10-07 16:52:53 +01:00
Vaxry c4487534d2
Merge pull request #801 from fufexan/scrollfactor
Add input:touchpad:scroll_factor
2022-10-06 21:26:11 +01:00
Mihai Fufezan e4820d1c71
Add input:touchpad:scroll_factor 2022-10-06 22:47:05 +03:00
vaxerski b4a8efc1a7 fix naming when workspace back and forth 2022-10-06 20:40:58 +01:00
vaxerski 9480c0fb90 fix workspace previous with multi-mon ws moves 2022-10-06 20:18:49 +01:00
vaxerski f901c60da5 return true on vt switch keysyms to avoid printing stuff 2022-10-06 19:31:32 +01:00
vaxerski 922e978f56 reset sigmask on fork 2022-10-06 19:02:03 +01:00
Felix Dick 552c4b7361 Fix compiler warnings. 2022-10-06 13:42:52 +02:00
Vaxry d7ef19e2e7 map touch to the correct output 2022-10-06 09:26:05 +01:00
Vaxry 190ddb5697 added a noanim rule 2022-10-06 09:16:40 +01:00
Vaxry 32e8eda40a
Merge pull request #787 from fufexan/libinput
Add accel profile and scroll method
2022-10-05 21:58:40 +01:00
Mihai Fufezan 477ad2dd82
Add accel profile and scroll method 2022-10-05 23:51:08 +03:00
vaxerski e90c5c6347 fix tty switch freeze 2022-10-05 21:41:27 +01:00
vaxerski 11ce468996 add dpms status info in hyprctl 2022-10-05 18:14:11 +01:00
Vaxry 0e4a894edb add dpms per output 2022-10-05 10:31:47 +01:00
Vaxry 71e2562a41 add desc: to monitor rules 2022-10-05 10:22:33 +01:00
Felix Dick 0d7f6eac9e Merge branch 'make_TTY_unsigned' into fix_left_handed 2022-10-05 04:51:48 +02:00
Felix Dick 6d46ed4011 Fix getDeviceInt string arg "input:left_handed" 2022-10-05 04:25:26 +02:00
Felix Dick f825b87c2a Fix compiler warnig comparing signed and unsigned integers. 2022-10-05 02:42:51 +02:00
vaxerski 60c414ccad add left_handed config for input 2022-10-04 21:46:41 +01:00
vaxerski 0d702b556d Add switch device handling and binds 2022-10-04 20:07:21 +01:00
vaxerski 9bbae5b8e2 ignore VT switches to current vt 2022-10-04 16:53:09 +01:00
vaxerski 719a5b4f0b use vectorToWindowIdeal in mouse binds 2022-10-04 16:08:55 +01:00
lylac f9325b1655
focusedmon event check change
Compare PLASTWINDOW & PWINDOWTOCHANGETO m_iMonitorID's instead of PWINDOWTOCHANGETO->m_iMonitorID & g_pCompositor->m_pLastMonitor->ID
2022-10-04 18:19:14 +13:00
vaxerski 49ab3890aa remove polling from socket2, fully event based 2022-10-03 20:47:15 +01:00
vaxerski 590fbf808b send a focusedmon event on focus change mon 2022-10-01 10:38:53 +01:00
vaxerski bdd9680adf fix ipc event missing on silent movetoworkspace 2022-09-29 19:33:43 +01:00
vaxerski 9f9129e536 focusable checks in nextWindow calls 2022-09-29 16:53:31 +01:00
vaxerski 458ba3237b use goalv in movetoworkspace 2022-09-28 15:12:15 +01:00
Felix Dick bf3f519eb7 Remove trailing whitespace. 2022-09-25 20:07:48 +02:00
Vaxry fad5fc587d guard kb settings in xkb translation state 2022-09-24 21:07:18 +01:00
Vaxry e5d143b238 support more wlr_cursor events 2022-09-22 21:14:02 +01:00
Vaxry 37f2e1ddbe don't recalc pseudo on fullscreen 2022-09-22 20:57:09 +01:00
Vaxry c08218301b disallow pinning fullscreen 2022-09-22 16:48:40 +01:00
Vaxry 79c645f8cd handle touch devices internally as objects 2022-09-21 14:39:34 +01:00
Vaxry 2b99dbb446 better cycling in fullscreen with pinned 2022-09-21 14:16:13 +01:00
Vaxry 8b11a2e1b1 minor mouse bind handling fixes 2022-09-20 22:23:02 +01:00
Vaxry b4bcba935d disallow move/resize dispatchers on fullscreen windows 2022-09-20 19:58:08 +01:00
Vaxry cde624ec6a fix moving between fullscreen workspaces 2022-09-20 10:16:58 +01:00
Vaxry b82621c4ec fix mouse binds being stuck 2022-09-20 10:02:20 +01:00
Vaxry c24b45671a mouse binds overhaul 2022-09-19 19:04:48 +01:00
Vaxry 696253b348 fix special workspace dispatcher logic 2022-09-19 16:01:42 +01:00
Vaxry 7c809a3059 fullscreen animation en-nice-ment 2022-09-19 10:23:13 +01:00
Vaxry 4070e1a148 fix wonky focus on movetoworkspace 2022-09-18 17:26:12 +01:00
Vaxry 29626989e7 fix focus follows mouse 0 event sending on wrong window 2022-09-18 12:35:05 +01:00
Vaxry a72a39ebd5 minor swipe fixes 2022-09-17 15:05:12 +01:00
Vaxry 151e013241 fix refocus on same workspace 2022-09-17 12:10:06 +01:00
vaxerski da10022d84 fix an unholy memory safety issue 2022-09-13 20:27:07 +02:00
vaxerski 0062281092 added wsbind 2022-09-12 21:05:52 +02:00
vaxerski 82aa78916d hyprctl-nopoll 2022-09-10 21:21:28 +02:00
vaxerski 8808d40008 added misc:disable_autoreload 2022-09-10 17:28:41 +02:00
vaxerski d94fe3d063 added window pinning 2022-09-10 13:11:02 +02:00
vaxerski f663fa209c minor code styling fixes 2022-09-09 19:08:11 +02:00
vaxerski 94ca386a8c set last monitor and dont refocus in some cases (changeworkspace) 2022-09-05 21:36:22 +02:00
vaxerski a74b8033ca added a submap IPC event 2022-09-05 13:50:52 +02:00
vaxerski d6c06318af don't accumulate from virtual 2022-09-05 11:19:40 +02:00
vaxerski cb839c9dcc guard pFoundWindow in CInputManager under fullscreen 2022-09-05 00:59:13 +02:00
vaxerski 7a3b57c99c send accumulated modifiers to surfaces 2022-09-04 18:46:28 +02:00
vaxerski ba0c5fe0bb fix mouse focus not returning from a LS on follow mouse 0 2022-09-04 18:42:11 +02:00
vaxerski ff26531e11 use activateSurface in unconstrainMouse 2022-09-04 11:29:49 +02:00
vaxerski fbd2b4799d Fix some more crimes against humanity 2022-09-03 22:49:52 +02:00
vaxerski c425e620af fix some minor crimes against humanity 2022-09-03 19:35:17 +02:00
vaxerski f4add0ac6d refocus on reserved area 2022-09-03 15:35:53 +02:00
vaxerski 3c3f80c2fe simplify code and update monitor on warp 2022-09-03 11:55:19 +02:00
vaxerski 5d09bb647b fix up styling 2022-09-02 23:56:22 +02:00
vaxerski f5697095bc unify monitor args 2022-09-02 11:53:12 +02:00
vaxerski 8581e71789 optimize calls in toggleSpecialWorkspace 2022-09-01 11:47:48 +02:00
vaxerski bb90ff0461 sanity check on last window 2022-09-01 11:46:41 +02:00
vaxerski f77fac9df9 warp only on another monitor in changeworkspace 2022-08-31 21:39:27 +02:00
vaxerski dacaf72e02 remember last window on workspace 2022-08-31 17:02:49 +02:00
vaxerski 7f483dfdb0 guard psurface in activateSurface 2022-08-31 11:12:46 +02:00
vaxerski 1cf46fd6a2 added closewindow dispatcher 2022-08-30 21:35:27 +02:00
vaxerski dd6aba07e9 revert x11 size hints 2022-08-30 16:12:11 +02:00
vaxerski d35d949bc5 use sizehints if existent for X11 default floating 2022-08-30 13:07:54 +02:00
vaxerski 20c050e890 set last monitor on move focus dispatcher 2022-08-29 18:50:10 +02:00
vaxerski 6865660e51 disable fullscreen and floating dispatchers on special 2022-08-29 14:55:11 +02:00
vaxerski 6c8ce734fb fix segfault in inactive sessions 2022-08-29 11:17:42 +02:00
vaxerski 09495375b5 ratelimit setting cursor 2022-08-28 22:45:05 +02:00
vaxerski c757fa54e1 Allow passing the mouse as well in `pass` 2022-08-28 17:01:48 +02:00
vaxerski 16f8d46391 Force wlroots to not send leave events in pass to XWayland
Massive hack, kill me
2022-08-28 16:43:15 +02:00
vaxerski d413388761 Multiple improvements to the shutdown procedure 2022-08-28 11:19:08 +02:00
vaxerski ed2cacc5d5 fix styling in const ptrs 2022-08-27 21:37:35 +02:00
vaxerski 8122505825 pass press and release events separately 2022-08-27 19:29:28 +02:00
vaxerski a648b452dd fix internal keybinds 2022-08-26 19:19:34 +02:00
vaxerski 10f529ada7 added a specialWorkspace anim leaf 2022-08-26 11:26:23 +02:00
vaxerski 0eb86f4b0d fix silent workspaces with back and forth 2022-08-26 00:19:57 +02:00
vaxerski 7b01c3d028 allow specifying window for toggle floating 2022-08-25 22:34:53 +02:00
vaxerski e327b0a835 added a swapactiveworkspaces dispatcher 2022-08-25 21:25:28 +02:00
vaxerski 6c2175ed52 fixes to swapnext logic on dwindle 2022-08-24 22:01:25 +02:00
vaxerski 00ef40dda1 added swapnext and swapprev for master 2022-08-24 21:50:48 +02:00
vaxerski 9c3aeda9f9 added swapnext 2022-08-24 21:40:36 +02:00
vaxerski 09f3999b1e Unfocus first on non-internal ws changes 2022-08-23 23:34:36 +02:00
vaxerski 23c5760538 IME Popup damage fixes 2022-08-23 11:16:35 +02:00
vaxerski 6565c31dbf fix IME grab on multiple open native inputs 2022-08-22 18:40:38 +02:00
vaxerski 575bfa40e5 added misc:float_switch_override_focus 2022-08-22 18:22:26 +02:00
vaxerski 429b2bffed fix minor refocus issue 2022-08-22 18:16:32 +02:00
vaxerski f273ebed9c fix another edge case for fullscreen default windows 2022-08-21 23:24:57 +02:00