427 Commits (92da87ebb1ad111b645fbc25cd9d060deebd2b69)

Author SHA1 Message Date
emersion 9aeda82477
Add include command
7 years ago
emersion 90f7f1a0e6
Add minimal config subsystem
7 years ago
Drew DeVault 733993a651 Move everything to sway/old/
7 years ago
Drew DeVault 0c8491f7d0 Initial (awful) pass on xdg shell support
7 years ago
Drew DeVault 7eafcc75f6 Initialize outputs from backend and add to tree
7 years ago
David Hurst ee15068a8f Add scale to merge_output_config
7 years ago
lbonn e7df811f10 Security config: skip hidden files
7 years ago
Calvin Lee 419a1087ac Clean up output command
7 years ago
Calvin Lee 843ad38b3c Implement Tray Icons
8 years ago
johalun 7fef283044 FreeBSD fixes
8 years ago
Drew DeVault 51143a75af Implement no_focus
8 years ago
Tomáš Čech 974be01e83
explicitly ignore unused return value
8 years ago
Calvin Lee cee26500a8 Prevent sway from duplicating on a failed fork
8 years ago
Calvin Lee 2445d27960 Impliment i3-style marks
8 years ago
Jaanus Torp 8306b886e9 Allow also 444 for security file mode
8 years ago
Drew DeVault 9aed9d9359 UnGNUify the codebase
8 years ago
Drew DeVault 74d4f1bec9 Further indentation corrections
8 years ago
Drew DeVault 126ce571da Read configs from /etc/sway/security.d/*
8 years ago
Drew DeVault b10721b89e Add initial support code for new IPC security
8 years ago
Drew DeVault 7c636da8a3 Fix format error
8 years ago
Drew DeVault 36e48fcf8d Update default swaybar command
8 years ago
Drew DeVault 1172566d4e Change how security config is loaded
8 years ago
Drew DeVault 10c8b73075 Handle calloc failures
8 years ago
Drew DeVault d75a747a3d Handle config-related allocation failures
8 years ago
Drew DeVault 4c6c65e70c Handle malloc failures from read_line
8 years ago
Drew DeVault c8dc4925d1 Add IPC security policy command handlers
8 years ago
Drew DeVault e9e1a6a409 Add IPC policy to config
8 years ago
Drew DeVault f23880b1fd Add support for command policies in config file
8 years ago
Drew DeVault 44cc0ef125 Add config related code and initial headers
8 years ago
D.B 3d1b472b83 swap unnecessary function for strndup
8 years ago
D.B 58eb7ac19f change bar colors from char[10] to *char
8 years ago
D.B 39ee0ec552 use urgent_ws color in swaybar if binding_mode is undefined
8 years ago
Michał Winiarski e8d8abfbb5 Add left_handed support for input devices
8 years ago
Mykyta Holubakha 2a24772c4b config: set pango_markup default to false
8 years ago
Ryan Dwyer e4cb4d1b5c Fix swaybar when running on named outputs.
8 years ago
Drew DeVault 416417a54c Reorganize includes
8 years ago
James Murphy 8af49eb696 Avoid dereferencing null configuration
8 years ago
D.B ce98569fbc Handle output disabling during runtime
8 years ago
minus b246799548 fixed uninitialized bar.wrap_scroll
9 years ago
Drew DeVault 11e7ca044c Update hidpi support to latest wlc API
9 years ago
Drew DeVault 6ea02f3064 Initial pass on HiDPI support
9 years ago
minus 50b09937b2 clean up apply_input_config
9 years ago
Drew DeVault 6d971af5c3 Turn swaybg into a shell surface
9 years ago
Zandr Martin 9ecb43ea3b
couple small fixes
9 years ago
Zandr Martin 2298143d09
cleanup + add timeouts for pid_workspace list
9 years ago
Zandr Martin 66caee645c Merge branch 'master' into assign-command
9 years ago
thuck 3710cd6963 Fix segfault when using include with *
9 years ago
Zandr Martin 0f1859ed25 messy, unfinished version
9 years ago
Denis Doria b692a6d31a Initial implementation for floating_maximum_size
9 years ago
Denis Doria 009eaccd42 Clean up not used variables
9 years ago
Denis Doria 0ad7857f90 Included option floating_minimum_size
9 years ago
Denis Doria f1d5b89d3e Initial work for floating view with sane values
9 years ago
Mykyta Holubakha e73dde3b10 Support floating_scroll sideways
9 years ago
Mykyta Holubakha 0c495eecde Remove FSB_GAPS_INNER and FSB_GAPS_OUTER
9 years ago
Mykyta Holubakha 0423c41a0f Implemented configurable floating scroll behavior
9 years ago
Daniel Lockyer b41097c085 sway/config.c: fix double free issue as we need to store path in list
9 years ago
Jasen Borisov de007c9b58 Add input cmd for setting pointer accel profile.
9 years ago
Daniel Lockyer 682efbb7dd sway/config.c: Initialise struct value
9 years ago
Daniel Lockyer e1fa51a152 sway/config.c: Move the wordfree call before the if statement so it is always called
9 years ago
Daniel Lockyer 06986e58b8 sway/config.c: Change to the useful free_cmd_results helper method
9 years ago
Daniel Lockyer 01c2b5f2d6 sway/config.c: move free call to after sway_log
9 years ago
Daniel Lockyer b8722ecd5f sway/config.c: Leading on from cdf017c, we need to free path
9 years ago
Daniel Lockyer e077ebdc72 sway/config.c: res->input is a malloc'ed section which wasn't freed
9 years ago
Daniel Lockyer cdf017ceea sway/config.c: wordexp has a corresponding wordfree which was never used
9 years ago
Daniel Lockyer c225bcacee sway/config.c: config_home is the result of a malloc but was never freed
9 years ago
Mykyta Holubakha 0f1cfdec61 Renamed to pango_markup
9 years ago
Mykyta Holubakha 53b53dd8c2 Added plaintext markup configuration
9 years ago
Mikkel Oscar Lyderik 7be476c115 Add cmds new_window and new_float
9 years ago
Drew DeVault a12850444d New feature: adjust gaps with floating_mod+scroll
9 years ago
Mikkel Oscar Lyderik 5a13cb0ed1 Implement borders
9 years ago
Mikkel Oscar Lyderik 3b05f92f76 Add border <none|normal|toggle|pixel> config
9 years ago
Mikkel Oscar Lyderik 86ea79ea6d Implement parsing of hide_edge_borders
9 years ago
Mikkel Oscar Lyderik da567317ab Make pango: prefix optional for font config
9 years ago
Mikkel Oscar Lyderik e2774aee3c Add default border colors
9 years ago
Mikkel Oscar Lyderik cdc73fd95e Don't try to read config if not a file.
9 years ago
Mikkel Oscar Lyderik 44ea92ea60 Add config path to error msg
9 years ago
Mikkel Oscar Lyderik 71a5350b68 Implement include command
9 years ago
Mikkel Oscar Lyderik 938ff29b7b Gracefully exit when config is not found
9 years ago
Mikkel Oscar Lyderik 2935e24cf5 Implement 'smart_gaps' feature from i3-gaps
9 years ago
Mikkel Oscar Lyderik 67bbcceba1 Free config before exiting sway.
9 years ago
Mikkel Oscar Lyderik e15a8a0376 Improve how swaybars are spawned
9 years ago
Mikkel Oscar Lyderik bad4e22f3b Make sway spawn only one bar per bar config
9 years ago
crondog 0ee5547406 font: Allow adding font to the config. In prep for border titles
9 years ago
Yacine Hmito c487cf71a5 Fix issue #455
9 years ago
Drew DeVault d969a1dec0 Fix memory leak in config.c
9 years ago
Cole Mickens 28081b7689 libinput
9 years ago
Mikkel Oscar Lyderik f8b260d4a1 Add support for bincode command
9 years ago
Mikkel Oscar Lyderik 32cd3f70eb Add function for duplication a sway_binding
9 years ago
Mikkel Oscar Lyderik 843e2ad2c1 Only send modifier event once for active modifiers
9 years ago
Mikkel Oscar Lyderik 7727c9efbc Detect bar modifier pressed/released
9 years ago
Yacine Hmito f02cf75ff3 Use SYSCONFDIR as recommended
9 years ago
Drew DeVault 91c102a897 Merge pull request #393 from robotanarchy/musl-libc-compatibility
9 years ago
robotanarchy c3e9ee5e43 replace non-standard qsort_r with qsort
9 years ago
Drew DeVault fc71c6303c Fix default swaybar font
9 years ago
Drew DeVault 33fb648938 Merge pull request #372 from sce/fix_swaybar_output_name_test
9 years ago
S. Christoffer Eliesen 6ace37d0b1 config: load_swaybars: Fix name comparison.
9 years ago
S. Christoffer Eliesen 2779559b15 config: free_bar: Check if outputs is NULL.
9 years ago
Mikkel Oscar Lyderik 207678e809 Add support for running swaybar_command
9 years ago
Drew DeVault b9f14cee41 Merge pull request #359 from mikkeloscar/i3bar-command
9 years ago
Mikkel Oscar Lyderik 9d7f1afdfb Add bar option: swaybar_command <command>
9 years ago
Mikkel Oscar Lyderik 90ff36cab8 Terminate children when freeing output container
9 years ago
Mikkel Oscar Lyderik ede27eabc5 Reload swaybar/swaybg on config reload.
9 years ago
Drew DeVault 03787871d0 Fix bar invocation for multihead setup
9 years ago
Drew DeVault 1a365f19c9 Use system swaybar instead of local swaybar
9 years ago
Drew DeVault 60c204a09b Invoke swaybar when an output matches a bar config
9 years ago
Drew DeVault 01798a5ae2 Merge pull request #338 from mikkeloscar/bar-separator-symbol
9 years ago
Mikkel Oscar Lyderik 053fb09d1e Use free_flat_list for simple char* list.
9 years ago
Mikkel Oscar Lyderik 2fd7dd64ec Implement bar option: separator_symbol
9 years ago
Mikkel Oscar Lyderik 47f4aea9e7 Correctly free bindings list
9 years ago
Mikkel Oscar Lyderik f59f5d27aa Implement bar option: output <output>
9 years ago
Mikkel Oscar Lyderik 05e7334106 Fix active_workspace_border color definition
9 years ago
Mikkel Oscar Lyderik 6834a33290 Add bar height option (Airblader/i3)
9 years ago
Mikkel Oscar Lyderik de1f625c27 Add rgba support for bar colors
9 years ago
Mikkel Oscar Lyderik 8c1d56812b Implement bar option: colors {}
9 years ago
Drew DeVault 242da783f4 Merge pull request #324 from mikkeloscar/free-bar-bindings
9 years ago
Mikkel Oscar Lyderik 95de999922 Free bar->bindings
9 years ago
Mikkel Oscar Lyderik 0513322c03 Move default bar config to bar creation.
9 years ago
Yacine Hmito 87126a9fc2 Added bar_cmd_bindsym
9 years ago
Mikkel Oscar Lyderik 0aeee6963d Make mouse key used for drag/resize configurable
9 years ago
Mikkel Oscar Lyderik 211bc71599 Use tabs instead of spaces
9 years ago
Drew DeVault 4d17aa9919 Revert "Make mouse key used for drag/resize configurable"
9 years ago
Mikkel Oscar Lyderik 0a8ec26383 Implement bar option: tray_padding <px> [px]
9 years ago
Mikkel Oscar Lyderik 74152043f4 Implement 'bar { }' block parsing
9 years ago
Drew DeVault 19fd979af4 Merge pull request #300 from mikkeloscar/configure-mouse-btn
9 years ago
Drew DeVault bffbe11e53 Fix config.c strlen error
9 years ago
Mikkel Oscar Lyderik 22916e9ebc Make mouse key used for drag/resize configurable
9 years ago
Yacine Hmito f3f77f9ff1 FALLBACK_CONFIG_DIR did not work. Fixed.
9 years ago
Yacine Hmito 09feef89ee Can customize config fallback directory
9 years ago
Drew DeVault 44d0f731c3 Add framework for switching command sets
9 years ago
Drew DeVault 4f89735fc4 Add bar config struct and defaults
9 years ago
Christoph Gysin b1bd3ae6f3 cmd_output: Merge instead of replace output config
9 years ago
Drew DeVault 5a369b3132 Only strip comments at the start of a line
9 years ago
Christoph Gysin ffdfaaa985 apply_output_config: use list_seq_find() to find config
9 years ago
Christoph Gysin 7d82cd9c0a cmd_output: Use list_seq_find() to find matching config
9 years ago
Drew DeVault 1661edee28 Allow output config for output named *
9 years ago
Drew DeVault 2f192cceca Improve config file loading
9 years ago
Christoph Gysin e362f871d9 Call swaybg without invoking a shell
9 years ago
Drew DeVault 9fb020d04c Merge pull request #251 from sce/criteria_1
9 years ago
Christoph Gysin eeb7f5c036 config: print line number
9 years ago
S. Christoffer Eliesen a06cb7cd01 criteria: Add. Learn for_window command.
9 years ago
S. Christoffer Eliesen a6c9f40b9a sway_binding_cmp_keys: Differentiate between modifier keys.
9 years ago
taiyu 9d50f88cef fix list sorting
9 years ago
S. Christoffer Eliesen a0c5a0bb30 cmd_bindsym: Detect/handle duplicates.
9 years ago
S. Christoffer Eliesen 5531dbe1b2 cmd_workspace: Don't fill up config->workspace_outputs with duplicates.
9 years ago
Drew DeVault 2100d7bfef Fix #240
9 years ago
Drew DeVault 5728307520 Add wallpapers to output command
9 years ago
S. Christoffer Eliesen a94a91a723 cmd_output: Replace existing config if called multiple times.
9 years ago
Drew DeVault 38b18d460a Revert "Try ~/.i3/config earlier than /etc/sway/config"
9 years ago
Drew DeVault f0ceb4e909 Try ~/.i3/config earlier than /etc/sway/config
9 years ago
Drew DeVault 250097d32b Fix gaps for views being incorrect
9 years ago
S. Christoffer Eliesen abc5fbfaec Learn "gaps edge_gaps <on|off|toggle>".
9 years ago
S. Christoffer Eliesen af30a1b67c ipc,commands,config: Replace cmd_status enum with cmd_results struct.
9 years ago
S. Christoffer Eliesen edf33aad29 config: Add "seamless_mouse" to decide if pointer crosses output edges.
9 years ago
S. Christoffer Eliesen 4fea92ef0c config: Don't try to apply bad output resolution.
9 years ago
S. Christoffer Eliesen ca862a5bd4 config: Apply output config also during config reload.
9 years ago
taiyu 72aaffcf5b fix config search paths
9 years ago
taiyu 0bea2e2122 multi command keybinds
9 years ago
Drew DeVault e505abfe75 Revert "new_workspace null behavior + testmap functions + regex"
9 years ago
taiyu e1d18e42a8 new_workspace null behavior + testmap functions + regex
9 years ago
taiyu aaa0923bc4 cmd status + workspace ws output op
9 years ago
taiyu 799ff640f8 remove old things
9 years ago
taiyu aa22dc3113 var replacement changes
9 years ago
taiyu fd6d06ff61 fix missing symbol bug
9 years ago
taiyu da76ecb5f8 escape check fix
9 years ago
taiyu d673a72705 set variable changes
9 years ago
Thomas Wouters c3f76f8785 fix outut typo
9 years ago
taiyu 3eb29ea736 strdup + style
9 years ago
taiyu 47ff000697 put strip_whitespace back
9 years ago
taiyu 71af5b7dde config modes
9 years ago
taiyu 3fb8397724 free config stuff
9 years ago
taiyu b7de289332 free config when reloading
9 years ago
taiyu 5408d34c9c config_path cleanup
9 years ago
taiyu f25c6b312b gap resize
9 years ago
taiyu afa6747145 enum for command type
9 years ago
taiyu c5d0b5d437 style
9 years ago
taiyu 4cd18449d2 better handling of commands during config
9 years ago
Luminarys 12e96f0f9e Added in workspace_auto_back_and_forth
9 years ago
taiyu e0d5486957 default floating_mod
9 years ago
Luminarys acb3fbdfb5 Added in default_orientation handling
9 years ago
taiyu c8415d7fef split_string memory leaks cleanedup
9 years ago
Drew DeVault b7f4607544 Implement output configuration through config
9 years ago
minus 8dfaf6265b fixed #108 signed/unsigned comparison
9 years ago
Drew DeVault 3a5fce339f Reset key buffer on reload
9 years ago
Drew DeVault 579fe70ed9 Add command line parsing
9 years ago
aouelete acbcf17905 Fixed config path
9 years ago
Luminarys 0e4df85ba1 Fixed config loading
9 years ago
Drew DeVault 0f29f04816 Set test to NULL when appropriate
9 years ago
Drew DeVault 1ec8e082a2 Free environment vars after loading config
9 years ago
Drew DeVault 79f9d93ef3 Refactor config file loading
9 years ago
Drew DeVault ae367c5af4 Merge pull request #80 from SyedAmerGilani/fix_memory_leaks
9 years ago
Syed Amer Gilani ba5b451dd0 fixed string building for XDG_CONFIG_HOME config loading
9 years ago
Syed Amer Gilani 95517ac77e fix a few possible memory leaks
9 years ago
Luminarys f718556a85 Removed debugging, added in proper gap resets for config reloads
9 years ago
Drew DeVault 446d593b4c Merge pull request #73 from KoffeinFlummi/gaps
9 years ago
KoffeinFlummi c75d5ceba4 Merge remote-tracking branch 'upstream/master' into gaps
9 years ago
Drew DeVault 8e201091a5 Fix indented comments being weird
9 years ago
KoffeinFlummi 4c688cba4e Add support for gaps option
9 years ago
Drew DeVault 85a573dab7 Revert "enhanced whitespace remover"
9 years ago
Drew DeVault 2139001c9f Coding style enforcement
9 years ago
Drew DeVault 2f6dd0687b Merge pull request #65 from taiyu-len/focus_v2
9 years ago
Drew DeVault debb0d6bc1 Fix #64
9 years ago
taiyu b132f67e7b minor fixes
9 years ago
taiyu abd0afb03a enhanced whitespace remover
9 years ago
taiyu e9c3a9016f config handles comments better
9 years ago
Drew DeVault 780893a933 Add support for workspace [name] output [name]
9 years ago
Luminarys 7427ce8930 Switched config loading order to prevent root access w/wlc
9 years ago
Luminarys 64a971882a Minor fix to config loading
9 years ago
Luminarys 24231bef0e Added in additional checks for i3 config paths
9 years ago
Luminarys 614393c09c Added in config file loading from multiple sources
9 years ago
Luminarys ea9efc884d Allowed for execd commands to be spawned after abort
10 years ago
Luminarys 527288a826 fixes to cmd queue freeing, style
10 years ago
Luminarys 9a0a858d1e Typo fix
10 years ago
Luminarys d12a786160 Removed some unnecessary logs
10 years ago
Luminarys ab130fb56b Added in command queue
10 years ago
Luminarys a5b02791d4 Changed command handler to perform var subs on all cmd args
10 years ago
Taiyu beabb12d63 destroys empty workspace + minor bugfixes
10 years ago
Luminarys 508980e3ab Abstracted load_config
10 years ago
Luminarys 7c02a1967b Spaces to Tabs
10 years ago
Luminarys 68beabda03 Style fixes and slight reload command alteration
10 years ago
Luminarys c0ee2a6406 Added in reload and exec_always handling
10 years ago
Drew DeVault f97a48d5b7 Implement focus_follows_mouse
10 years ago
Drew DeVault a78b921803 Implement key bindings
10 years ago
Drew DeVault 47b28bd335 Clean up config loading and launch wayland
10 years ago
Drew DeVault 5767dcc86e Mostly implement bindsym command
10 years ago
Drew DeVault d0f1fb71d1 Flesh out some command parsing
10 years ago
Drew DeVault e07c77fbb7 Build out command subsystem
10 years ago
Drew DeVault 542ef0c777 Pull in some scas code and read i3 config file
10 years ago