(sway) "finished" config

This commit is contained in:
zegonix
2025-06-09 21:39:39 +02:00
parent dd43286949
commit 8f5d6e3927

View File

@@ -1,13 +1,4 @@
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
#### sway configuration
include /etc/sway/config.d/50-systemd-user.conf
include ./monitors
@@ -37,25 +28,29 @@ floating_modifier $mod
tiling_drag modifier
###################################
# starting auxiliary applications #
###################################
### starting auxiliary applications
# clean up and start polybar
exec_always --no-startup-id waybar
# start waybar
bar {
swaybar_command waybar
}
## xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
## screen before suspend. Use loginctl lock-session to lock your screen.
#exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# start screen locker
exec swayidle -w \
timeout 300 'swaylock -f -e -i ~/dotfiles/images/city_skyline.png' \
timeout 330 'swaymsg "output * power off"' \
resume 'swaymsg "output * power on"' \
before-sleep 'swaylock -f -e -i ~/dotfiles/images/city_skyline.png'
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet
exec nm-applet
### configuring input
input * accel_profile flat
input * pointer_accel 0.53
###########################
# configuring keybindings #
###########################
### configuring keybindings
# keymaps for i3 actions
## reload the i3 configuration file
@@ -64,18 +59,15 @@ bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
### exit i3 (logs you out of your X session)
#bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
### lock screen
#bindsym $mod+Escape exec i3lock
## lock screen
bindsym $mod+Escape exec swaylock -f -e -c 000000
## kill focused window
bindsym $mod+Shift+q kill
### start/kill compositor
#bindsym $mod+Shift+f exec --no-startup-id picom -b
#bindsym $mod+Shift+v exec pkill picom
# start rofi (a program launcher with fuzzy finder functionality)
bindsym $mod+d exec --no-startup-id wmenu-run
#bindsym $mod+d exec --no-startup-id rofi -show combi
#bindsym $mod+Shift+d exec --no-startup-id rofi -show run
# start programm launcher
bindsym $mod+d exec fuzzel
#bindsym $mod+d exec rofi -show combi
#bindsym $mod+Shift+d exec rofi -show run
# start a terminal
bindsym $mod+Return exec foot
@@ -160,31 +152,28 @@ bindsym $mod+o move workspace to output up
bindsym $mod+p move workspace to output right
## take screenshots
#bindsym $mod+s exec --no-startup-id maim -su | xclip -selection clipboard -t image/png
#bindsym $mod+Shift+s exec --no-startup-id maim -su "${HOME}/Pictures/screenshots/$(date '+%Y%m%d_%H%M%S').png"
#bindsym $mod+s exec maim -su | xclip -selection clipboard -t image/png
#bindsym $mod+Shift+s exec maim -su "${HOME}/Pictures/screenshots/$(date '+%Y%m%d_%H%M%S').png"
# use pactl for media keys
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
bindsym $mod+a exec --no-startup-id bash select-audio-sink.sh
bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
bindsym --locked XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym --locked XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
bindsym --locked XF86AudioPlay exec playerctl play-pause
bindsym --locked XF86AudioPrev exec playerctl previous
bindsym --locked XF86AudioNext exec playerctl next
bindsym --locked XF86AudioStop exec playerctl stop
bindsym $mod+a exec bash select-audio-sink.sh
#########################
# configuring behaviour #
#########################
### configuring behaviour
focus_follows_mouse no
mouse_warping none
############################
# configuring presentation #
############################
## load background image
#exec --no-startup-id feh --bg-fill ~/dotfiles/images/blaa.jpg
### configuring presentation
# window border style
default_border pixel 2
@@ -194,17 +183,16 @@ for_window [class=".*"] border pixel 1
# gaps between windows and screen border
gaps inner 12px
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:VictorMonoNerdFont SemiBold 12
# fonts
font pango:JetBrainsMonoNerdFont SemiBold 14
# defining colors
set $cyan #15d7e5
set $magenta #e02482
set $l_magenta #fbaddd
set $d_blue #001d42
set $indc_focus #a0a0ff
set $back_focus #ffffff
set $cyan #15D7E5
set $magenta #E02482
set $l_magenta #FBADDD
set $d_blue #001D42
set $indc_focus #A0A0FF
set $back_focus #FFFFFF
set $text_focus #000000
set $transp #00000000
@@ -214,11 +202,5 @@ client.focused_inactive $transp $back_focus $text_focus $transp $transp
client.unfocused $transp $back_focus $text_focus $transp $transp
client.urgent $transp $back_focus $text_focus $transp $transp
client.placeholder $transp $back_focus $text_focus $transp $transp
client.background #ffffff
# TODO: figure out transparency
for_window [class="Alacritty"] opacity set 0.9
for_window [class="com.mitchellh.ghostty"] opacity set 0.9
for_window [class="SpeedCrunch"] opacity set 0.93
for_window [class="foot"] opacity set 0.9