diff options
| -rw-r--r-- | dotfiles/system/.config/sway/config | 90 |
1 files changed, 35 insertions, 55 deletions
diff --git a/dotfiles/system/.config/sway/config b/dotfiles/system/.config/sway/config index 8eb23e8..96369f2 100644 --- a/dotfiles/system/.config/sway/config +++ b/dotfiles/system/.config/sway/config @@ -16,20 +16,26 @@ set $left h set $down j set $up k set $right l -# Your preferred terminal emulator + +# terminal emulator set $term foot -# Your preferred application launcher +# application menu set $menu fuzzel +# browser +set $browser firefox + +#gaps inner 5 +#gaps outer 5 +focus_follows_mouse no + + ### Output configuration -# -# Default wallpaper (more resolutions are available in /usr/local/share/backgrounds/sway/) output * bg /usr/local/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill -# -# Example configuration: -# -# output HDMI-A-1 resolution 1920x1080 position 1920,0 -# + +# scaling for framework laptop +output eDP-1 scale 1.8 + # You can get the names of your outputs by running: swaymsg -t get_outputs ### Idle configuration @@ -40,22 +46,12 @@ output * bg /usr/local/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png # timeout 300 'swaylock -f -c 000000' \ # timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ # before-sleep 'swaylock -f -c 000000' +# # This will lock your screen after 300 seconds of inactivity, then turn off # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. -# ### Input configuration - -# touchpad config with gestures -input type:touchpad { - dwt enabled - tap enabled - middle_emulation enable - tap_button_map lrm - scroll_method two_finger -} - # # Example configuration: # @@ -73,8 +69,11 @@ input type:touchpad { # # Basics: # - # Start a terminal - bindsym $mod+Return exec $term + # Start a terminal or common application + bindsym $mod+Shift+Return exec $term + bindsym $mod+e exec emacs + bindsym $mod+w exec $browser + bindsym $mod+f exec thunar # Kill focused window bindsym $mod+Shift+c kill @@ -93,7 +92,7 @@ input type:touchpad { bindsym $mod+Shift+r reload # Exit sway (logs you out of your Wayland session) - bindsym $mod+Shift+q exec swaynag -t warning -m 'Exit sway and go to console?' -B 'Yes, exit.' 'swaymsg exit' + bindsym $mod+Shift+q exec swaynag -t warning -m 'Exit to console?' -B 'Yes, exit.' 'swaymsg exit' # # Moving around: # @@ -155,12 +154,12 @@ input type:touchpad { bindsym $mod+v splitv # Switch the current container between different layout styles - bindsym $mod+s layout stacking - bindsym $mod+w layout tabbed - bindsym $mod+e layout toggle split + bindsym $mod+Shift+s layout stacking + bindsym $mod+Shift+w layout tabbed + bindsym $mod+Shift+i layout toggle split # Make the current focus fullscreen - bindsym $mod+f fullscreen + bindsym $mod+Shift+f fullscreen # Toggle the current focus between tiling and floating mode bindsym $mod+Shift+space floating toggle @@ -225,35 +224,16 @@ bindsym $mod+r mode "resize" # # Read `man 5 sway-bar` for more information about this section. bar { - # apm extracts power data, get the percentage - result=$(apm |grep \%|cut -d ' ' -f4|head -1) - - # If mute is on, apply a "speaker-no" emoji - mute_status="" - if [ $(mixer vol.mute|cut -f2 -d=) = "on" ]; then - mute_status="🔇 " - fi - - # Convert the volume data from the mixer into a whole number - # and display it after a cool emoji speaker - pct="" - if [ -z "$mute_status" ]; then - vol_val=`mixer vol.volume|cut -d: -f2` - vv_pct=`echo "${vol_val} * 100"|bc -l|cut -d\. -f1` - pct=`printf "🔊 %s%%" ${vv_pct}` - else - pct="" - fi - - # Aggregate mute|volume, volume level data into a variable - sound_status="${mute_status}${pct}" - - # Get date/time - d=$(date +'%Y-%m-%d %I:%M:%S %p') - - # Date, battery icon|battery level, sound summary - echo "$d (🔋${result}) ${sound_status}" + position top + + # 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 %X'; do sleep 1; done + colors { + statusline #ffffff + background #323232 + inactive_workspace #32323200 #32323200 #5c5c5c } } |
