From 819e3ced23853586bfadda0857af4e2c02f7b573 Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Sun, 21 Jan 2024 15:37:18 +0100 Subject: Changes --- Common/nvim/lua/lsp-conf.lua | 5 +- Common/sway/autostart | 3 + Common/sway/config-backup-20230330-194759 | 134 ------------------------------ 3 files changed, 6 insertions(+), 136 deletions(-) delete mode 100644 Common/sway/config-backup-20230330-194759 (limited to 'Common') diff --git a/Common/nvim/lua/lsp-conf.lua b/Common/nvim/lua/lsp-conf.lua index 20ffcc5..84f43ff 100644 --- a/Common/nvim/lua/lsp-conf.lua +++ b/Common/nvim/lua/lsp-conf.lua @@ -9,7 +9,7 @@ require("mason").setup({ } }) require("mason-lspconfig").setup({ - ensure_installed = { "rust_analyzer", "tsserver", "clangd", "intelephense", "pyright", "ltex", "jdtls" } + ensure_installed = { "rust_analyzer", "tsserver", "clangd", "intelephense", "pyright", "texlab", "jdtls" } }) require("mason-lspconfig").setup_handlers { function (server_name) -- default handler (optional) @@ -18,7 +18,8 @@ require("mason-lspconfig").setup_handlers { ["rust_analyzer"] = function () require("rust-tools").setup {} - end + end, + } -- LSP Diagnostics Options Setup diff --git a/Common/sway/autostart b/Common/sway/autostart index faece20..2d5eae7 100644 --- a/Common/sway/autostart +++ b/Common/sway/autostart @@ -1,3 +1,6 @@ +# Fix GTK+ application slow start +exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK + # screen locking exec swayidle timeout 1200 physlock \ timeout 1800 'swaymsg "output * dpms off"' \ diff --git a/Common/sway/config-backup-20230330-194759 b/Common/sway/config-backup-20230330-194759 deleted file mode 100644 index f8058d6..0000000 --- a/Common/sway/config-backup-20230330-194759 +++ /dev/null @@ -1,134 +0,0 @@ -# set modifier -set $super Mod4 -set $alt Mod1 - -# set font -font pango: Noto Sans 8 - -# Use Mouse+$super to drag floating windows to their wanted position -floating_modifier $super - -exec nm-applet --indicator - -# start a terminal -bindsym $super+Return exec urxvt -bindsym $super+Alt+Return exec urxvt --name floating -e noemutt - -# Shortcut to tt gui -bindsym $super+Shift+Return exec /home/jakob/.local/bin/tt-g - -# start dmenu (a program launcher) -bindsym $super+Shift+d exec i3-dmenu-desktop --dmenu="dmenu -i -fn 'Noto Sans:size=8'" -bindsym $super+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 8' - -# change volume -bindsym XF86AudioRaiseVolume exec amixer -q set Master 2%+ -bindsym XF86AudioLowerVolume exec amixer -q set Master 2%- -bindsym XF86AudioMute exec amixer set Master toggle -bindsym XF86AudioMicMute exec amixer set Capture toggle - -# music control -#bindsym XF86AudioNext exec mpc next -#bindsym XF86AudioPrev exec mpc prev -#bindsym XF86AudioPlay exec mpc toggle -#bindsym XF86AudioStop exec mpc stop - -# kill focused window -bindsym $alt+F4 kill - -# change focus -bindsym $super+Left focus left -bindsym $super+Down focus down -bindsym $super+Up focus up -bindsym $super+Right focus right -focus_follows_mouse no - -# move focused window -bindsym $super+Shift+Left move left -bindsym $super+Shift+Down move down -bindsym $super+Shift+Up move up -bindsym $super+Shift+Right move right - -# split in horizontal orientation -bindsym $super+h split h - -# split in vertical orientation -bindsym $super+v split v - -# enter fullscreen mode for the focused container -bindsym $super+f fullscreen toggle - -# change container layout split -bindsym $super+s layout toggle split - -# toggle tiling / floating -bindsym $super+space floating toggle - -# change focus between tiling / floating windows -bindsym $super+Shift+space focus mode_toggle - -# switch to workspace -bindsym $alt+Control+Right workspace next -bindsym $alt+Control+Left workspace prev -bindsym $super+1 workspace 1 -bindsym $super+2 workspace 2 -bindsym $super+3 workspace 3 -bindsym $super+4 workspace 4 -bindsym $super+5 workspace 5 -bindsym $super+6 workspace 6 -bindsym $super+7 workspace 7 -bindsym $super+8 workspace 8 -bindsym $super+9 workspace 9 - -# move focused container to workspace -bindsym $super+Shift+1 move container to workspace 1 -bindsym $super+Shift+2 move container to workspace 2 -bindsym $super+Shift+3 move container to workspace 3 -bindsym $super+Shift+4 move container to workspace 4 -bindsym $super+Shift+5 move container to workspace 5 -bindsym $super+Shift+6 move container to workspace 6 -bindsym $super+Shift+7 move container to workspace 7 -bindsym $super+Shift+8 move container to workspace 8 -bindsym $super+Shift+9 move container to workspace 9 - - -#bindsym $super+l exec i3lock -f -c 63bfb6 #-i /home/jakob/.lockscreen.png -bindsym $super+l exec dbus-send --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock -bindsym $super+Shift+e exec "swaynag -t warning -m 'Really, exit?' -b 'Yes' 'swaymsg exit'" -bindsym $super+p exec --no-startup-id /home/jakob/.config/rofi/bin/applet_powermenu -bindsym $super+Shift+r reload - -# resize window (you can also use the mouse for that) -mode "resize" { - bindsym Left resize shrink width 5 px or 5 ppt - bindsym Down resize grow height 5 px or 5 ppt - bindsym Up resize shrink height 5 px or 5 ppt - bindsym Right resize grow width 5 px or 5 ppt - bindsym Return mode "default" -} -bindsym $super+r mode "resize" - -bar { - swaybar_command waybar -} - -# window rules, you can find the window class using xprop -for_window [class="^.*"] border pixel 2 -for_window [class=Viewnior|feh|Audacious|File-roller|Lxappearance|Lxtask|Pavucontrol|wdisplays|Nitrogen|Nautilus|Eog|gnome-calculator|Thunar|gnome-system-monitor] floating enable -for_window [class=URxvt|Firefox|Geany|Evince|Soffice|libreoffice*|mpv|Ghb|Xfburn|Gimp*|Inkscape|Vlc|Lxappearance|Audacity|Nautilus|Eog|gnome-calculator|Thunar] focus -for_window [class=Xfburn|GParted|System-config-printer.py|Lxtask|Pavucontrol|Exo-helper*|Lxrandr|wdisplays|Nitrogen] focus -for_window [ instance="floating" ] floating enable - -# Keybinds for lenovo x1 carbon -bindsym XF86MonBrightnessUp exec --no-startup-id "/home/jakob/bin/brightness-popup.sh inc" -bindsym XF86MonBrightnessDown exec --no-startup-id "/home/jakob/bin/brightness-popup.sh dec" - -bindsym XF86Display exec --no-startup-id "wdisplays" -bindsym Print exec --no-startup-id "gnome-screenshot --interactive" -bindsym XF86Favorites exec --no-startup-id "kill -s USR1 $(pidof deadd-notification-center)" - -# Keybinds for switching keyboard layout -#bindsym $super+Shift+F1 exec setxkbmap -layout no; notify-send.py "Keyboard layout NO" -#bindsym $super+Shift+F2 exec setxkbmap -layout gb; notify-send.py "Keyboard layout EN" -bindsym $super+Shift+F1 exec "/home/jakob/bin/kblayout.sh no" -bindsym $super+Shift+F2 exec "/home/jakob/bin/kblayout.sh us" -- cgit v1.2.3