From b20162bc7503d4b91604748b5b5dbd96dce0ef5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 11 Oct 2021 17:19:22 +0200 Subject: sway: some more investigation to using sway --- config/sway/config | 39 ++++++++++++++------------------------- private | 2 +- profile | 23 ++++++++++++----------- vimrc | 1 + 4 files changed, 28 insertions(+), 37 deletions(-) diff --git a/config/sway/config b/config/sway/config index 074af1c..cf0a671 100644 --- a/config/sway/config +++ b/config/sway/config @@ -1,4 +1,6 @@ # Sway config +exec --no-startup-id myswaylock +################################################################################## input type:keyboard { xkb_layout us,cz_qwerty @@ -6,15 +8,12 @@ input type:keyboard { xkb_numlock enabled } -output "DP-1" { - position 0 0 -} -output "HDMI-A-1" { - position 2560 0 +input type:touchpad { + tap enabled } output '*' { - background '/usr/share/backgrounds/vim-card-black-2560x1440.png' fit + background '/usr/share/backgrounds/vim-card-black-1920x1080.png' fit } ################################################################################## @@ -124,7 +123,7 @@ bindsym $mod+Shift+r reload set $mode_system System (l) lock, (e) logout, (s) suspend, (r) reboot, (Shift+s) shutdown mode "$mode_system" { bindsym l exec --no-startup-id loginctl lock-session $XDG_SESSION_ID, mode "default" - bindsym e exec --no-startup-id i3-msg exit, mode "default" + bindsym e exec --no-startup-id swaymsg exit, mode "default" bindsym s exec --no-startup-id loginctl suspend, mode "default" bindsym r exec --no-startup-id loginctl reboot, mode "default" bindsym Shift+s exec --no-startup-id loginctl poweroff, mode "default" @@ -134,18 +133,6 @@ mode "$mode_system" { } bindsym $mod+Shift+q mode "$mode_system" -set $displays (d)efault, toggle: 1:eDP 2:HDMI 3:VGA -mode "$displays" { - bindsym d exec --no-startup-id mxrandr, mode "default" - bindsym 1 exec --no-startup-id mxrandr toggle eDP1, mode "default" - bindsym 2 exec --no-startup-id mxrandr toggle HDMI1, mode "default" - bindsym 3 exec --no-startup-id mxrandr toggle VGA1, mode "default" - - bindsym Return mode "default" - bindsym Escape mode "default" -} -bindsym $mod+o mode "$displays" - set $xshot Xshot: (w)indow or (d)desktop mode "$xshot" { # Note: xshot window is for some reason broken. @@ -226,8 +213,10 @@ for_window [ title="Music player daemon client" ] floating enable; for_window [ title="Music player daemon client" ] resize set 70 ppt 70 ppt for_window [ title="Music player daemon client" ] move position center -# Set Rambox to scratchpad +# Set IM to scratchpad +for_window [class="Ferdi"] move scratchpad for_window [class="Rambox"] move scratchpad +for_window [class="Signal"] move scratchpad # On-screen keyboard Florence for_window [class="Florence"] floating enable @@ -235,12 +224,12 @@ for_window [class="Florence"] floating enable # Start various applications # Start daemons -exec --no-startup-id compton -b --vsync opengl -exec --no-startup-id ibus-daemon -drx -exec --no-startup-id xss-lock -l -n 'mylock-notifier-fade.sh' -- myi3lock +exec --no-startup-id kanshi +#exec --no-startup-id ibus-daemon -drx exec --no-startup-id dunst # Set background exec --no-startup-id i3background -# Start Rambox -exec rambox +# Start Ferdi +exec ferdi +exec signal-desktop diff --git a/private b/private index 91f5198..cae05bb 160000 --- a/private +++ b/private @@ -1 +1 @@ -Subproject commit 91f51982a2fcdb686f3a0ecb16a1b760f0d91226 +Subproject commit cae05bbab463f0d42517fa1f1684248fdbc702e8 diff --git a/profile b/profile index 92ea6ef..e2e3407 100644 --- a/profile +++ b/profile @@ -9,6 +9,11 @@ export CT_LOCAL_TARBALLS_DIR="~/src/ct-ng" # Python caching export PYTHONPYCACHEPREFIX="$HOME/.cache/pycache" +# Nix +[ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ] && \ + . "$HOME/.nix-profile/etc/profile.d/nix.sh" # added by Nix installer + + # Rest of the profile run only if login is from linux console [[ "$(tty)" != /dev/tty* ]] && return @@ -19,18 +24,14 @@ eval "$(ssh-agent -s)" # And if we are on first terminal also automatically start x server if [ "$(tty)" = "/dev/tty1" ]; then - exec startx -- vt1 + PROFILE_SELECTION=1 +else + echo + echo "(1) i3" + echo "(2) sway" + echo -n "Select or pass to shell: " + read -r PROFILE_SELECTION fi - -# Nix -[ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ] && \ - . "$HOME/.nix-profile/etc/profile.d/nix.sh" # added by Nix installer - -echo -echo "(1) i3" -echo "(2) sway" -echo -n "Select or pass to shell: " -read -r PROFILE_SELECTION if [ "$PROFILE_SELECTION" -eq 1 ]; then exec startx -- "vt$XDG_VTNR" elif [ "$PROFILE_SELECTION" -eq 2 ]; then diff --git a/vimrc b/vimrc index 1256990..3378284 100644 --- a/vimrc +++ b/vimrc @@ -14,6 +14,7 @@ set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Plugin 'VundleVim/Vundle.vim' +Plugin 'jasonccox/vim-wayland-clipboard' " Visual Plugin 'itchyny/lightline.vim' Plugin 'nathanaelkane/vim-indent-guides' -- cgit v1.2.3