update sway config
This commit is contained in:
parent
a330adaf1e
commit
d9e336de5d
|
@ -375,6 +375,21 @@ install_vscodium() {
|
|||
# vscodevim.vim
|
||||
}
|
||||
|
||||
install_wine() {
|
||||
|
||||
# https://wiki.winehq.org/Debian
|
||||
curl https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor > /etc/apt/trusted.gpg.d/winehq.gpg
|
||||
echo 'deb https://dl.winehq.org/wine-builds/debian/ bullseye main' | sudo tee --append /etc/apt/sources.list.d/wine.list
|
||||
|
||||
apt update
|
||||
apt install \
|
||||
winehq-staging \
|
||||
--no-install-recommends
|
||||
|
||||
wine version
|
||||
|
||||
}
|
||||
|
||||
install_docker() {
|
||||
# https://docs.docker.com/install/linux/docker-ce/debian/#install-using-the-repository
|
||||
|
||||
|
@ -543,6 +558,9 @@ main() {
|
|||
rust)
|
||||
install_rust
|
||||
;;
|
||||
wine)
|
||||
install_wine
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
60
sway/config
60
sway/config
|
@ -25,9 +25,10 @@ bindsym $mod+Return exec alacritty
|
|||
bindsym $mod+Shift+q kill
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
for_window [app_id="^launcher$"] floating enable, sticky enable, resize set 30 ppt 60 ppt, border pixel 10
|
||||
set $menu exec $term --class=launcher -e /home/fschl/projects/sway-launcher-desktop/sway-launcher-desktop.sh
|
||||
bindsym $mod+d exec $menu
|
||||
# for_window [app_id="^launcher$"] floating enable, sticky enable, resize set 30 ppt 60 ppt, border pixel 10
|
||||
# set $menu exec $term --class=launcher -e /home/fschl/projects/sway-launcher-desktop/sway-launcher-desktop.sh
|
||||
# bindsym $mod+d exec $menu
|
||||
bindsym $mod+d exec wofi --show=drun --lines=10 --prompt=""
|
||||
|
||||
# bindsym Ctrl+Shift+l exec i3lock-fancy
|
||||
bindsym Ctrl+Shift+l exec swaylock \
|
||||
|
@ -36,7 +37,7 @@ bindsym Ctrl+Shift+l exec swaylock \
|
|||
--indicator \
|
||||
--indicator-radius 100 \
|
||||
--indicator-thickness 7 \
|
||||
--effect-blur 7x5 \
|
||||
--effect-blur 7x9 \
|
||||
--effect-vignette 0.5:0.5 \
|
||||
--ring-color 859900 \
|
||||
--key-hl-color 2aa198 \
|
||||
|
@ -120,24 +121,24 @@ assign [class=".*ee.*ass.*"] $WS8
|
|||
|
||||
# https://faq.i3wm.org/question/3726/workspace-output-multiple-values/index.html%3Fanswer=3731.html#post-id-3731
|
||||
set $LAPTOP LVDS-1
|
||||
set $CENTER HDMI-1
|
||||
set $RIGHT VGA-1
|
||||
# set $EXTERN HDMI-1
|
||||
set $EXTERN VGA-1
|
||||
|
||||
# monitor settings
|
||||
bindsym $mod+m mode "monitor"
|
||||
mode "monitor" {
|
||||
# only laptop
|
||||
bindsym 1 exec xrandr --output $LAPTOP --auto --primary --output $CENTER --off $RIGHT --off
|
||||
# bindsym 1 exec xrandr --output $LAPTOP --auto --primary --output $CENTER --off $RIGHT --off
|
||||
# HDMI main, laptop secondary
|
||||
bindsym 2 exec xrandr --output $CENTER --primary --auto --output $LAPTOP --auto --left-of $CENTER --output $RIGHT --off
|
||||
# bindsym 2 exec xrandr --output $CENTER --primary --auto --output $LAPTOP --auto --left-of $CENTER --output $RIGHT --off
|
||||
# HDMI main, laptop left, VGA right, *not* supported on X230
|
||||
bindsym 3 exec xrandr --output $CENTER --primary --auto --output $LAPTOP --auto --left-of $CENTER --output $RIGHT --auto --right-of $CENTER
|
||||
# bindsym 3 exec xrandr --output $CENTER --primary --auto --output $LAPTOP --auto --left-of $CENTER --output $RIGHT --auto --right-of $CENTER
|
||||
# HDMI main, VGA right, laptop off
|
||||
bindsym 4 exec xrandr --output $CENTER --primary --auto --output $RIGHT --right-of $CENTER --rotate left --auto --output $LAPTOP --off
|
||||
# bindsym 4 exec xrandr --output $CENTER --primary --auto --output $RIGHT --right-of $CENTER --rotate left --auto --output $LAPTOP --off
|
||||
# VGA main, laptop left, HDMI off
|
||||
bindsym 8 exec xrandr --output $RIGHT --primary --auto --output $LAPTOP --auto --left-of $RIGHT --output $CENTER --off
|
||||
# bindsym 8 exec xrandr --output $RIGHT --primary --auto --output $LAPTOP --auto --left-of $RIGHT --output $CENTER --off
|
||||
# HDMI main, VGA right, laptop off
|
||||
bindsym 9 exec xrandr --output $CENTER --primary --auto --output $RIGHT --auto --right-of $CENTER --output $LAPTOP --off
|
||||
# bindsym 9 exec xrandr --output $CENTER --primary --auto --output $RIGHT --auto --right-of $CENTER --output $LAPTOP --off
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
|
@ -147,11 +148,12 @@ mode "monitor" {
|
|||
|
||||
bindsym $mod+p exec xrandr-toggle
|
||||
|
||||
workspace $WS1 output $CENTER
|
||||
workspace $WS2 output $CENTER
|
||||
workspace $WS1 output $EXTERN
|
||||
workspace $WS2 output $EXTERN
|
||||
# workspace $WS3 output $LAPTOP
|
||||
workspace $WS3 output $LAPTOP
|
||||
workspace $WS4 output $LAPTOP
|
||||
workspace $WS5 output $CENTER
|
||||
workspace $WS5 output $EXTERN
|
||||
workspace $WS8 output $LAPTOP
|
||||
workspace $WS9 output $LAPTOP
|
||||
|
||||
|
@ -248,32 +250,10 @@ bar {
|
|||
tray_output primary
|
||||
|
||||
output $LAPTOP
|
||||
output $CENTER
|
||||
output $EXTERN
|
||||
font pango:DejaVu Sans Mono, FontAwesome 8
|
||||
}
|
||||
|
||||
bar {
|
||||
# position top
|
||||
colors {
|
||||
background #323232
|
||||
statusline #93b4a6
|
||||
focused_workspace #7d9683 #6c71b4 #ede6b3
|
||||
active_workspace #fdf6e3 #6c71b4 #ede6b3
|
||||
# focused_workspace #7d9683 #6c71c4 #fdf6e3
|
||||
# active_workspace #fdf6e3 #6c71c4 #fdf6e3
|
||||
inactive_workspace #002b36 #586e75 #002b36
|
||||
urgent_workspace #d33682 #d33682 #fdf6e3
|
||||
}
|
||||
|
||||
status_command i3status --config ~/dotfiles/.i3/status.conf
|
||||
tray_output primary
|
||||
|
||||
# i3blocks: http://kumarcode.com/Colorful-i3/
|
||||
# status_command i3blocks -c ~/.i3/i3blocks.conf
|
||||
output $LAPTOP
|
||||
output $CENTER
|
||||
font pango:DejaVu Sans Mono, FontAwesome 8
|
||||
}
|
||||
|
||||
# bar {
|
||||
# # output $CENTER
|
||||
|
@ -286,8 +266,8 @@ bar {
|
|||
exec swaymsg 'exec mako -c /home/fschl/dotfiles/sway/mako.conf'
|
||||
exec swaymsg 'udiskie'
|
||||
exec swaymsg 'workspace $WS1; exec firefox;'
|
||||
exec swaymsg 'workspace $WS2; exec emacs'
|
||||
exec swaymsg 'workspace $WS2; exec emacs-29.0.50'
|
||||
exec swaymsg 'workspace $WS3; exec alacritty;'
|
||||
exec swaymsg 'workspace $WS4; exec thunderbird'
|
||||
exec swaymsg 'workspace $WS8; exec keepassxc'
|
||||
exec swaymsg 'workspace $WS3; exec alacritty;'
|
||||
|
||||
|
|
Loading…
Reference in New Issue