diff options
author | xengineering <mail2xengineering@protonmail.com> | 2021-05-27 09:30:34 +0200 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2021-05-27 09:30:34 +0200 |
commit | 1e5dbb02a75296db9a67f4530798ff8ed6c02ec8 (patch) | |
tree | 5d0d5ec15ef52fa0463bdeab163e9ad2bda09f4c | |
parent | f7660bae8814ee172e389e06f55990b866a7e338 (diff) | |
download | dotfiles-1e5dbb02a75296db9a67f4530798ff8ed6c02ec8.tar dotfiles-1e5dbb02a75296db9a67f4530798ff8ed6c02ec8.tar.zst dotfiles-1e5dbb02a75296db9a67f4530798ff8ed6c02ec8.zip |
i3-style Status Bar for Sway
-rw-r--r-- | .config/sway/config | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/.config/sway/config b/.config/sway/config index 6b4b33f..81afb43 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -1,6 +1,4 @@ -# Default config for sway -# -# Copy this to ~/.config/sway/config and edit it to your liking. +# My personal config for sway # # Read `man 5 sway` for a complete reference. @@ -23,7 +21,7 @@ set $menu dmenu_path | dmenu | xargs swaymsg exec -- ### Output configuration # # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) -output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill +output * bg ~/wallpaper fill # # Example configuration: # @@ -31,6 +29,19 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill # # You can get the names of your outputs by running: swaymsg -t get_outputs +# left monitor +output HDMI-A-2 resolution 1920x1080 position 0,0 +workspace 1 output HDMI-A-2 + +# right monitor +output DP-1 resolution 1920x1080 position 1920,0 +workspace 2 output DP-1 + +# lower monitor +output eDP-1 resolution 1920x1080 position 0,1080 +workspace 3 output eDP-1 + + ### Idle configuration # # Example configuration: @@ -81,6 +92,9 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill # Reload the configuration file bindsym $mod+Shift+c reload + # Lock the screen + bindsym $mod+Escape exec swaylock -i ~/lockimage + # Exit sway (logs you out of your Wayland session) bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit' # @@ -205,7 +219,7 @@ bar { # When the status_command prints a new line to stdout, swaybar updates. # The default just shows the current date and time. - status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done + status_command i3status colors { statusline #ffffff |