add MacAir 7,2 swayfx config, changed swaybar to work well with this mac low resolution, added swayidle directly into sway's config
This commit is contained in:
17
configs/sway_g/MacAir7,2/README.md
Normal file
17
configs/sway_g/MacAir7,2/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Sway config for Macbook Air 7,2 (2017)
|
||||
**Specs:**
|
||||
- 8GB RAM
|
||||
- Intel Quad Core i5-5350U
|
||||
- Instel HD Graphics 6000
|
||||
- 256 GB SSD
|
||||
|
||||
# Dependencies
|
||||
**Arch**
|
||||
```bash
|
||||
sudo pacman -S swaybg swayidle swaylock mako
|
||||
|
||||
# yay needed to install the following
|
||||
|
||||
yay swayfx # Pick the first option
|
||||
yay tofi # Pick the first option
|
||||
```
|
||||
150
configs/sway_g/MacAir7,2/config
Normal file
150
configs/sway_g/MacAir7,2/config
Normal file
@@ -0,0 +1,150 @@
|
||||
font pango:VictorMono Nerd Font bold 12
|
||||
|
||||
output * background /home/toniiz/Pictures/to_the_sky.png fill
|
||||
|
||||
output DP-3 mode 4096x2304@60Hz
|
||||
output DP-1 mode 2560x1440@144Hz
|
||||
|
||||
gaps inner 4
|
||||
gaps outer 4
|
||||
|
||||
default_border pixel 4
|
||||
default_floating_border pixel 4
|
||||
|
||||
# class border backgr. text indicator child_border
|
||||
client.focused #303536 #303536 #d4be98 #303536 #303536
|
||||
client.focused_inactive #303536 #303536 #d4be98 #303536 #303536
|
||||
client.unfocused #0a0b0b #303536 #d4be98 #0a0b0b #0a0b0b
|
||||
client.urgent #d8a657 #303536 #1d2021 #d8a657 #d8a657
|
||||
client.placeholder #7daea3 #303536 #1d2021 #7daea3 #7daea3
|
||||
|
||||
# swayfx
|
||||
blur disable
|
||||
blur_xray disable
|
||||
blur_passes 0
|
||||
blur_radius 5
|
||||
shadows enable
|
||||
corner_radius 8
|
||||
layer_effects "waybar" shadows enable; corner_radius 8; blur disable
|
||||
|
||||
bar {
|
||||
swaybar_command waybar
|
||||
|
||||
# status_command /usr/bin/i3status-rs $HOME/.config/i3status/config.toml
|
||||
# position top
|
||||
# gaps 8 8 0 8
|
||||
# height 32
|
||||
# font pango:CaskaydiaCove Nerd Font bold 12
|
||||
# colors {
|
||||
# background #1d2021ff
|
||||
# focused_workspace #b7c37fff #a9b665ff #0a0b0bff
|
||||
# inactive_workspace #1d2021ff #0a0b0bff #c7ab7aff
|
||||
# }
|
||||
}
|
||||
|
||||
# variables
|
||||
set $mod Mod4
|
||||
set $left h
|
||||
set $down j
|
||||
set $up k
|
||||
set $right l
|
||||
set $term kitty
|
||||
set $menu tofi-drun | xargs swaymsg exec --
|
||||
|
||||
# common bindings
|
||||
bindsym $mod+Return exec $term
|
||||
bindsym $mod+d exec $menu
|
||||
bindsym $mod+Shift+q kill
|
||||
bindsym $mod+Shift+c reload
|
||||
bindsym $mod+Shift+e exec swaynag -t warning -m "Exit Sway?" -B "Yes, exit Sway" "swaymsg exit" --font="CaskaydiaCove Nerd Font bold 12"
|
||||
floating_modifier $mod normal
|
||||
|
||||
# more bindings
|
||||
bindsym $mod+$left focus left
|
||||
bindsym $mod+$down focus down
|
||||
bindsym $mod+$up focus up
|
||||
bindsym $mod+$right focus right
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
bindsym $mod+Shift+$left move left
|
||||
bindsym $mod+Shift+$down move down
|
||||
bindsym $mod+Shift+$up move up
|
||||
bindsym $mod+Shift+$right move right
|
||||
bindsym $mod+Shift+Left move left
|
||||
bindsym $mod+Shift+Down move down
|
||||
bindsym $mod+Shift+Up move up
|
||||
bindsym $mod+Shift+Right move right
|
||||
bindsym $mod+1 workspace number 1
|
||||
bindsym $mod+2 workspace number 2
|
||||
bindsym $mod+3 workspace number 3
|
||||
bindsym $mod+4 workspace number 4
|
||||
bindsym $mod+5 workspace number 5
|
||||
bindsym $mod+6 workspace number 6
|
||||
bindsym $mod+7 workspace number 7
|
||||
bindsym $mod+8 workspace number 8
|
||||
bindsym $mod+9 workspace number 9
|
||||
bindsym $mod+0 workspace number 10
|
||||
bindsym $mod+Shift+1 move container to workspace number 1
|
||||
bindsym $mod+Shift+2 move container to workspace number 2
|
||||
bindsym $mod+Shift+3 move container to workspace number 3
|
||||
bindsym $mod+Shift+4 move container to workspace number 4
|
||||
bindsym $mod+Shift+5 move container to workspace number 5
|
||||
bindsym $mod+Shift+6 move container to workspace number 6
|
||||
bindsym $mod+Shift+7 move container to workspace number 7
|
||||
bindsym $mod+Shift+8 move container to workspace number 8
|
||||
bindsym $mod+Shift+9 move container to workspace number 9
|
||||
bindsym $mod+Shift+0 move container to workspace number 10
|
||||
bindsym $mod+Shift+v floating toggle
|
||||
bindsym $mod+b splith
|
||||
bindsym $mod+v splitv
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
bindsym $mod+f fullscreen
|
||||
bindsym $mod+space focus mode_toggle
|
||||
bindsym $mod+a focus parent
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
# Hide waybar/enable
|
||||
bindsym $mod+escape exec killall -SIGUSR1 waybar
|
||||
|
||||
# Start programs/apps on-boot
|
||||
exec nm-applet --indicator
|
||||
|
||||
# Audio binds
|
||||
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
|
||||
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
|
||||
|
||||
mode "resize" {
|
||||
bindsym $left resize shrink width 20px
|
||||
bindsym $down resize grow height 20px
|
||||
bindsym $up resize shrink height 20px
|
||||
bindsym $right resize grow width 20px
|
||||
|
||||
bindsym Left resize shrink width 20px
|
||||
bindsym Down resize grow height 20px
|
||||
bindsym Up resize shrink height 20px
|
||||
bindsym Right resize grow width 20px
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
# Lock screen
|
||||
set $lockman exec bash ~/.config/sway/lockman.sh
|
||||
bindsym $mod+Shift+p exec $lockman
|
||||
|
||||
# Lock and hibernate
|
||||
exec swayidle -w \
|
||||
timeout 300 'swaylock -f -c 000000' \
|
||||
timeout 330 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep 'swaylock -f -c 000000'
|
||||
|
||||
# includes
|
||||
include /etc/sway/config.d/*
|
||||
# swaysome config append
|
||||
include ~/.config/sway/config.d/*.conf
|
||||
67
configs/sway_g/MacAir7,2/config.d/swaysome.conf
Normal file
67
configs/sway_g/MacAir7,2/config.d/swaysome.conf
Normal file
@@ -0,0 +1,67 @@
|
||||
# Use (un)bindcode or (un)bindsym, depending on what you used in your main sway config file.
|
||||
# The `--no-warn` setting is only added to shortcuts that exist in the default config. You may want to add or remove
|
||||
# that flag on some bindings depending on your config.
|
||||
|
||||
|
||||
# Change focus between workspaces
|
||||
bindsym --no-warn $mod+1 exec "swaysome focus 1"
|
||||
bindsym --no-warn $mod+2 exec "swaysome focus 2"
|
||||
bindsym --no-warn $mod+3 exec "swaysome focus 3"
|
||||
bindsym --no-warn $mod+4 exec "swaysome focus 4"
|
||||
bindsym --no-warn $mod+5 exec "swaysome focus 5"
|
||||
bindsym --no-warn $mod+6 exec "swaysome focus 6"
|
||||
bindsym --no-warn $mod+7 exec "swaysome focus 7"
|
||||
bindsym --no-warn $mod+8 exec "swaysome focus 8"
|
||||
bindsym --no-warn $mod+9 exec "swaysome focus 9"
|
||||
bindsym --no-warn $mod+0 exec "swaysome focus 0"
|
||||
|
||||
# Move containers between workspaces
|
||||
bindsym --no-warn $mod+Shift+1 exec "swaysome move 1"
|
||||
bindsym --no-warn $mod+Shift+2 exec "swaysome move 2"
|
||||
bindsym --no-warn $mod+Shift+3 exec "swaysome move 3"
|
||||
bindsym --no-warn $mod+Shift+4 exec "swaysome move 4"
|
||||
bindsym --no-warn $mod+Shift+5 exec "swaysome move 5"
|
||||
bindsym --no-warn $mod+Shift+6 exec "swaysome move 6"
|
||||
bindsym --no-warn $mod+Shift+7 exec "swaysome move 7"
|
||||
bindsym --no-warn $mod+Shift+8 exec "swaysome move 8"
|
||||
bindsym --no-warn $mod+Shift+9 exec "swaysome move 9"
|
||||
bindsym --no-warn $mod+Shift+0 exec "swaysome move 0"
|
||||
|
||||
# Focus workspace groups
|
||||
bindsym $mod+Alt+1 exec "swaysome focus-group 1"
|
||||
bindsym $mod+Alt+2 exec "swaysome focus-group 2"
|
||||
bindsym $mod+Alt+3 exec "swaysome focus-group 3"
|
||||
bindsym $mod+Alt+4 exec "swaysome focus-group 4"
|
||||
bindsym $mod+Alt+5 exec "swaysome focus-group 5"
|
||||
bindsym $mod+Alt+6 exec "swaysome focus-group 6"
|
||||
bindsym $mod+Alt+7 exec "swaysome focus-group 7"
|
||||
bindsym $mod+Alt+8 exec "swaysome focus-group 8"
|
||||
bindsym $mod+Alt+9 exec "swaysome focus-group 9"
|
||||
bindsym $mod+Alt+0 exec "swaysome focus-group 0"
|
||||
|
||||
# Move containers to other workspace groups
|
||||
bindsym $mod+Alt+Shift+1 exec "swaysome move-to-group 1"
|
||||
bindsym $mod+Alt+Shift+2 exec "swaysome move-to-group 2"
|
||||
bindsym $mod+Alt+Shift+3 exec "swaysome move-to-group 3"
|
||||
bindsym $mod+Alt+Shift+4 exec "swaysome move-to-group 4"
|
||||
bindsym $mod+Alt+Shift+5 exec "swaysome move-to-group 5"
|
||||
bindsym $mod+Alt+Shift+6 exec "swaysome move-to-group 6"
|
||||
bindsym $mod+Alt+Shift+7 exec "swaysome move-to-group 7"
|
||||
bindsym $mod+Alt+Shift+8 exec "swaysome move-to-group 8"
|
||||
bindsym $mod+Alt+Shift+9 exec "swaysome move-to-group 9"
|
||||
bindsym $mod+Alt+Shift+0 exec "swaysome move-to-group 0"
|
||||
|
||||
# Move focused container to next output
|
||||
bindsym $mod+o exec "swaysome next-output"
|
||||
# Move focused container to previous output
|
||||
bindsym $mod+Shift+o exec "swaysome prev-output"
|
||||
|
||||
# Move focused workspace group to next output
|
||||
bindsym $mod+Alt+o exec "swaysome workspace-group-next-output"
|
||||
# Move focused workspace group to previous output
|
||||
bindsym $mod+Alt+Shift+o exec "swaysome workspace-group-prev-output"
|
||||
|
||||
# Init workspaces for every screen
|
||||
exec "swaysome init 1"
|
||||
|
||||
|
||||
9
configs/sway_g/MacAir7,2/lockman.sh
Executable file
9
configs/sway_g/MacAir7,2/lockman.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Times the screen off and puts it to background
|
||||
swayidle \
|
||||
timeout 10 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' &
|
||||
# Locks the screen immediately
|
||||
swaylock -c 550000
|
||||
# Kills last background task so idle timer doesn't keep running
|
||||
kill %%
|
||||
Reference in New Issue
Block a user