Mikkel Oscar Lyderik
dffacea831
Add function for getting list of modifier names.
...
Get an array of modifier names from modifier masks.
9 years ago
Drew DeVault
320c2915b0
Merge pull request #439 from mikkeloscar/bindsym-release
...
Implement bindsym --release
9 years ago
Mikkel Oscar Lyderik
55f63935ab
Implement bindsym --release
...
This is a "simple" version of --release (same as i3) that only supports
a binding that contain one normal key. e.g.:
bindsym --release $mod+x exec somthing-fun
I didn't bother implementing it for a combination like `$mod+x+z` since
it is a bit tricky to get right and also a bit weird to actually do on a
keyboard.
9 years ago
Drew DeVault
8f5de70c93
Merge pull request #434 from mikkeloscar/detect-modifier
...
Send IPC modifier event on bar_modifier up/down
9 years ago
Mikkel Oscar Lyderik
18f8185011
Fix whitespaces in cmake config
9 years ago
Mikkel Oscar Lyderik
9186455a3c
Merge branch 'master' of github.com:SirCmpwn/sway
9 years ago
Mikkel Oscar Lyderik
364e37a1eb
Fix whitespace issues.
9 years ago
Mikkel Oscar Lyderik
843e2ad2c1
Only send modifier event once for active modifiers
...
This makes sure that a modifier event is only sent for active bar
modifiers, and that it is only sent once for each of those modifiers.
An active bar modifier is a modifier defined for a bar with `mode hide`
and `hidden_state hide`.
9 years ago
Drew DeVault
e700e76d84
Merge pull request #436 from Kaligule/master
...
Clearer order of locations searched for config file.
9 years ago
Jøhannes Lippmann
648db4016f
Clearer order of locations searched for config file.
...
The i3wm config locations are visited _before_ using the fallback
configs. The man page was confusing - it talked about the fallback
configs first, but also said they are looked at "at last". By changing
the order of the sentences, this should be clearer.
9 years ago
Mikkel Oscar Lyderik
2e0ef533f2
Init layout before checking config
9 years ago
Mikkel Oscar Lyderik
a8402035e9
Add modifier key to bar_config json
9 years ago
Mikkel Oscar Lyderik
95e0f44c73
Move modifier name table to common/util.c
...
Lookup of modifier names is required in several places, thus it makes
sense to move it to a general place.
9 years ago
Drew DeVault
caaff5ac54
Revert "Free wordexp_t in config.c:get_config_path"
...
This reverts commit 33b24736c7
.
9 years ago
Mikkel Oscar Lyderik
c20c63b677
Send IPC modifier event on bar_modifier up/down
...
Detects when a bar modifier key is pressed/released and sends a modifier
IPC event to any listeners (usually swaybars).
This way a swaybar can listen on the modifier event and hide/show the
bar accordingly (not implemented yet)
The modifier event looks like this:
{
"change": "pressed", // or released
"modifier": "Mod4"
}
9 years ago
Drew DeVault
33b24736c7
Free wordexp_t in config.c:get_config_path
...
Thanks @jollywho
9 years ago
Mikkel Oscar Lyderik
5af4e747d3
Merge pull request #433 from crondog/issue431
...
Return focus to fullscreen view
9 years ago
crondog
b755fd073e
Return focus to fullscreen view
...
This fixes https://github.com/SirCmpwn/sway/issues/431 by returning
focus to the fullscreen view. Also it fixes the issue with the
fullscreen view pointer not being set which did my head in
9 years ago
Mikkel Oscar Lyderik
7727c9efbc
Detect bar modifier pressed/released
9 years ago
Drew DeVault
f9b92783c5
Merge pull request #432 from mikkeloscar/fix-sway-multikey
...
Fix overwriting current pressed keys.
9 years ago
Mikkel Oscar Lyderik
e62c49f83c
Fix overwriting current pressed keys.
...
This fixes a bug where the key at index 0 in the `key_state_array` would
be overwritten by the next pressed key. This broke any bindings
consisting of multiple non-mod keys like: `$mod+a+b`.
9 years ago
Drew DeVault
27ab7d8982
Merge pull request #430 from crondog/swaybarlog
...
swaybar: fix logging
9 years ago
crondog
7f7e06d4c9
swaybar: fix logging
...
Optionally turn on debugging in swaybar. I acidentally introduced
persistent logging in a previous commit
9 years ago
Drew DeVault
7d5ef6bc84
Merge pull request #429 from mikkeloscar/bar-workspace-buttons
...
swaybar: Implement workspace_buttons yes|no
9 years ago
Mikkel Oscar Lyderik
576181ec09
swaybar: Implement workspace_buttons yes|no
9 years ago
Drew DeVault
2c12175672
Merge pull request #428 from mikkeloscar/bar-mode-indicator
...
swaybar: Implement binding_mode_indicator
9 years ago
Mikkel Oscar Lyderik
aa2f754c64
swaybar: Implement binding_mode_indicator
9 years ago
Drew DeVault
f2d519d0ba
Merge pull request #427 from mikkeloscar/ipc-update
...
Refactor IPC server/client
9 years ago
Mikkel Oscar Lyderik
7298a9c67a
Add type to returned response.
...
Makes `ipc_recv_response` return a struct with size, type and payload
rather than just the payload string.
This is useful if the type has to be checked on the client.
9 years ago
Mikkel Oscar Lyderik
19833fbc8b
Add IPC event types
...
Adds custom IPC_EVENT_* types
9 years ago
Mikkel Oscar Lyderik
a20226772e
swaybar: rename ipc_listen_sock.. to ipc_event_sock..
9 years ago
Drew DeVault
22592505b1
Merge pull request #425 from mikkeloscar/bar-strip-ws-num
...
Only strip when starting with a num
9 years ago
Mikkel Oscar Lyderik
c2f3530fab
Only strip when starting with a num
...
This makes sure the `:` isn't striped if you have a workspace named:
`:something`.
9 years ago
Drew DeVault
f828065a54
Merge pull request #424 from mikkeloscar/bar-strip-ws-num
...
swaybar: Implement strip_workspace_numbers
9 years ago
Mikkel Oscar Lyderik
ccdcdc3396
swaybar: Implement strip_workspace_numbers
9 years ago
Drew DeVault
f69d765bbe
Merge pull request #421 from crondog/splittoggle
...
split toggle
9 years ago
crondog
397b58e88f
split toggle
...
Not sure if you will accept this, but i find it useful (I use it when
opening new terminal windows on a workspace
v2: add short hand command and docs
9 years ago
Drew DeVault
b5a21a08c7
Merge pull request #419 from crondog/fullscreen
...
Dont try and fullscreen a workspace with no views
9 years ago
crondog
596c4d9428
Dont try and fullscreen a workspace with no views
...
Found this completely by accident
9 years ago
Drew DeVault
1f4a590c18
Merge pull request #417 from mikkeloscar/remove-log-line
...
saybar: remove stray logline
9 years ago
Drew DeVault
5292860b92
Merge pull request #418 from mikkeloscar/sway-handle-sigterm
...
Handle SIGTERM sent to sway
9 years ago
Mikkel Oscar Lyderik
16b8c2e915
Handle SIGTERM sent to sway
...
This makes sway handle and gracefully shut down everything when
receiving a SIGTERM.
Fix #416
9 years ago
Mikkel Oscar Lyderik
14dd358a55
saybar: remove stray logline
9 years ago
Drew DeVault
d409620a55
Fix use-after-free when closing fullscreen views
9 years ago
Drew DeVault
cf14f37ee2
Add bar to default config
...
Using somewhat saner colors than the i3 default
9 years ago
Drew DeVault
5060c72a54
Add default wallpaper
...
Closes #238
9 years ago
Drew DeVault
631f7e8500
Merge pull request #415 from mikkeloscar/bar-separator
...
swaybar: Add support for custom separator symbol
9 years ago
Mikkel Oscar Lyderik
d72be6c0d5
swaybar: Add support for custom separator symbol
9 years ago
Drew DeVault
e363546b69
Merge pull request #414 from sce/fix_layout_calc
...
Fix layout calculations
9 years ago
S. Christoffer Eliesen
b18f004210
handlers: geometry_request: Better debug output.
...
Previous output was confusing.
9 years ago