Move from i3 to sway

This commit is contained in:
Fabian Becker 2022-07-29 16:44:17 +02:00
parent 1a965cc580
commit b82bec612d
4 changed files with 10 additions and 23 deletions

View File

@ -28,21 +28,13 @@ floating_modifier $mod
# start a terminal
# bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Return exec xterm
bindsym $mod+Return exec alacritty
# kill focused window
# bindsym $mod+space exec "/home/theprimeagen/dotfiles/awesome-streamerrc/ThePrimeagen/tmux2"
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
bindsym $mod+d exec --no-startup-id wofi --show run --gtk-dark
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# app launcher
bindsym $mod+d exec wofi --show=run --gtk-dark
# change focus
bindsym $mod+h focus left
@ -120,7 +112,7 @@ bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
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'"
# 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'"
# resize window (you can also use the mouse for that)
mode "resize" {
@ -152,18 +144,8 @@ bindsym $mod+r mode "resize"
# finds out, if available)
set $status_script ~/.config/sway/status.sh
bar {
status_command while $status_script; do sleep 1; done
position top
colors {
statusline #ffffff
background #323232
}
font pango:DejaVu Sans Mono 14
}
# Suspend
bindsym $mod+Shift+period exec systemctl suspend
include ~/.config/sway/config.d/*
include /etc/sway/config.d/*

View File

@ -0,0 +1,3 @@
input 1452:591:Keychron_Keychron_K2 {
xkb_layout us
}

View File

@ -1,5 +1,7 @@
# Devices
set $display_tv 'Technical Concepts Ltd TCL SMART TV 0x00001111'
set $curved_small 'Goldstar Company Ltd LG HDR WQHD 0x0000655D'
# Resolution
output $display_tv mode 1920x1080@30Hz
output $curved_small mode 3440x1440@60Hz