Removing sway config as I don't use sway anymore

This commit is contained in:
jfm 2024-04-25 09:11:59 +02:00
parent 011ea9016a
commit 43a132863e
20 changed files with 47 additions and 338 deletions

View File

@ -1 +1,48 @@
require('lualine').setup {}
require('telescope').setup({
defaults = {
-- configure to use ripgrep
vimgrep_arguments = {
"rg",
"--follow", -- Follow symbolic links
"--hidden", -- Search for hidden files
"--no-heading", -- Don't group matches by each file
"--with-filename", -- Print the file path with the matched lines
"--line-number", -- Show line numbers
"--column", -- Show column numbers
"--smart-case", -- Smart case search
-- Exclude some patterns from search
"--glob=!**/.git/*",
"--glob=!**/.idea/*",
"--glob=!**/.vscode/*",
"--glob=!**/build/*",
"--glob=!**/dist/*",
"--glob=!**/yarn.lock",
"--glob=!**/package-lock.json",
},
...
},
pickers = {
find_files = {
hidden = true,
-- needed to exclude some files & dirs from general search
-- when not included or specified in .gitignore
find_command = {
"rg",
"--files",
"--hidden",
"--glob=!**/.git/*",
"--glob=!**/.idea/*",
"--glob=!**/.vscode/*",
"--glob=!**/build/*",
"--glob=!**/dist/*",
"--glob=!**/yarn.lock",
"--glob=!**/package-lock.json",
},
},
},
})

View File

@ -1,187 +0,0 @@
# Input Config
input * xkb_layout "dk"
input * xkb_variant "nodeadkeys"
input * xkb_options "grp:menu_toggle,caps:none"
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4
# Configure border style <normal|1pixel|pixel xx|none|pixel>
default_border pixel 2
default_floating_border none
# Hide borders
hide_edge_borders none
# change borders
bindsym $mod+u border none
bindsym $mod+y border pixel 2
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
#font xft:DejaVu Sans Mono for Powerline 14
font xft:Hack Nerd Font 14
# Use Mouse+$mod to drag floating windows
floating_modifier $mod
# start a terminal
#bindsym $mod+Return exec termite
bindsym $mod+Return exec termite
# kill focused window
bindsym $mod+Shift+q kill
# Start rofi program launcher
bindsym $mod+d exec rofi -m -1 -show drun -config ~/.config/rofi/config
# Start Applications
bindsym $mod+Shift+d --release exec "killall mako; exec notify-send 'restart mako'"
bindsym Print exec --no-startup-id scrot '%Y-%m-%d_$wx$h_scrot.png' -e 'mv $f ~/Pictures/screenshots/'
bindsym $mod+Print --release exec --no-startup-id scrot -u '%Y-%m-%d_$wx$h_scrot.png' -e 'mv $f ~/Pictures/screenshots/'
bindsym $mod+Shift+Print --release exec --no-startup-id scrot -s '%Y-%m-%d_$wx$h_scrot.png' -e 'mv $f ~/Pictures/screenshots/'
# Music Control
bindsym $mod+Ctrl+Mod1+9 exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
bindsym $mod+Ctrl+Mod1+0 exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
bindsym $mod+Ctrl+Mod1+8 exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
focus_follows_mouse always
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# Resize help
bindsym $mod+Ctrl+Shift+Right resize shrink width 1 px or 1 ppt
bindsym $mod+Ctrl+Shift+Up resize grow height 1 px or 1 ppt
bindsym $mod+Ctrl+Shift+Down resize shrink height 1 px or 1 ppt
bindsym $mod+Ctrl+Shift+Left resize grow width 1 px or 1 ppt
# workspace back and forth (with/without active container)
workspace_auto_back_and_forth no
bindsym $mod+b workspace back_and_forth
bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
# split orientation
bindsym $mod+h split h;exec notify-send -u low -a "Sway" "Tile Horizontally"
bindsym $mod+v split v;exec notify-send -u low -a "Sway" "Tile Vertically"
bindsym $mod+q split toggle
# toggle fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# Scratchpad
bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show
#navigate workspaces next / previous
bindsym $mod+Ctrl+Right workspace next
bindsym $mod+Ctrl+Left workspace prev
# Workspace names
set $ws1 1:
set $ws2 2:
set $ws3 3:
set $ws4 4:
set $ws5 5:
set $ws6 6:
set $ws7 7:
set $ws8 8:
set $ws9 9:
set $ws10 10:
# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
# Move to workspace with focused container
bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10; workspace $ws10
# Open specific applications in floating mode
for_window [class="^.*"] border pixel 2
for_window [class="mpv"] floating enable sticky enable border none
for_window [class="Google-chrome" instance="tmp_neomutt.html"] floating enable, sticky enable, border pixel 2, resize set 1024px 768px
# reload the configuration file
bindsym $mod+Shift+c reload
# Lock screen
bindsym $mod+l exec swaylock -i ~/.config/sway/wallpapers/stars_3840x2160.jpg -s stretch --indicator-radius 100 --indicator-thickness 20
# Theme colors
# class border backgr. text indic #childborder
client.focused #5E81AC #556064 #80FFF9 #b58900 #5E81AC
client.focused_inactive #2E3440 #2E3440 #1ABC9C #454948 #2E3440
client.unfocused #2E3440 #2E3440 #1ABC9C #454948 #2E3440
client.urgent #2E3440 #FDF6E3 #1ABC9C #268BD2 #2E3440
client.placeholder #000000 #0c0c0c #ffffff #000000 #2E3440
client.background #2B2C2B #0c0c0c #ffffff #000000 #2E3440
#############################
### settings for i3-gaps: ###
#############################
# Set inner/outer gaps
gaps inner 10
gaps outer -4
# Smart gaps (gaps used if only more than one container on the workspace)
smart_gaps on
smart_borders on
#### Exit Menu
set $exitmenu "system: [r]eboot [s]hutdown"
mode $exitmenu {
bindsym r exec shutdown -r now
bindsym s exec shutdown -P now
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+backspace mode $exitmenu
set $gnome-schema org.gnome.desktop.interface
exec_always {
gsettings set $gnome-schema gtk-theme 'Papirus-Dark'
gsettings set $gnome-schema icon-theme 'Materia-dark'
}
#### Custom Config
exec swayidle timeout 300 'swaylock -i ~/.config/sway/wallpapers/stars_3840x2160.jpg -s stretch' timeout 1800 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -i ~/.config/sway/wallpapers/stars_3840x2160.jpg -s stretch'
exec /home/jfm/.config/sway/scripts/start_layout.sh
exec mako
exec nm-applet --indicator

View File

@ -1,15 +0,0 @@
#!/bin/bash
source ~/.config/sway/scripts/location-helper.sh
if [ $LOCATION = "work" ];
then
echo "WORK"
~/.config/sway/scripts/work-sway.sh &
fi
if [ $LOCATION = "home" ];
then
echo "HOME"
~/.config/sway/scripts/home-sway.sh &
fi
exit 0

View File

@ -1,15 +0,0 @@
#!/bin/bash
swaymsg output DP-5 enable
swaymsg output DP-4 enable
swaymsg output eDP-1 disable
swaymsg output DP-5 pos 0 0 res 3440 1440
swaymsg output DP-4 pos 3440 0 res 1920 1200
swaymsg output DP-4 transform 270
swaymsg output DP-4 background ~/.config/sway/wallpapers/planet-surface-horizon-stars-galaxy_1200x1920.jpg fill
swaymsg output DP-5 background ~/.config/sway/wallpapers/space_ultrawide.jpg fill
killall waybar
waybar -c ~/.config/waybar/home-config &
exit 0

View File

@ -1,12 +0,0 @@
#!/bin/bash
swaymsg output DP-5 disable
swaymsg output eDP-1 enable
swaymsg output eDP-1 scale 1.5
swaymsg output eDP-1 pos 0 0 res 2560 1440
swaymsg output eDP-1 background ~/.config/sway/wallpapers/space_2560x1440.jpg fill
killall waybar
waybar -c ~/.config/waybar/laptop-config &
exit 0

View File

@ -1,19 +0,0 @@
#!/bin/bash
CONNECTED_CMD="swaymsg -t get_outputs | jq -c '. | length'"
monitors=`eval $CONNECTED_CMD`
HOME_CMD="swaymsg -t get_outputs | grep SyncMaster | wc -l"
is_home=`eval $HOME_CMD`
total=$(($monitors + $is_home))
echo $total
if [[ $monitors = 1 ]];
then
export LOCATION="laptop"
elif [[ $total = 4 ]];
then
export LOCATION="home"
elif [[ $total = 3 ]];
then
export LOCATION="work"
fi

View File

@ -1,15 +0,0 @@
#!/bin/bash
CONNECTED_CMD="swaymsg -t get_outputs | jq -c '. | length'"
monitors=`eval $CONNECTED_CMD`
if [ $monitors -gt 1 ]
then
echo "DOCKED"
~/.config/sway/scripts/dock.sh &
else
echo "UNDOCKED"
~/.config/sway/scripts/undock.sh &
fi
exit 0

View File

@ -1,5 +0,0 @@
#!/bin/bash
~/.config/sway/scripts/laptop-sway.sh &
exit 0

View File

@ -1,17 +0,0 @@
#!/bin/bash
swaymsg output eDP-1 enable
swaymsg output DP-4 enable
swaymsg output DB-5 enable
swaymsg output eDP-1 scale 1.5
swaymsg output eDP-1 pos 0 0 res 2560 1440
swaymsg output DP-5 pos 1706 0 res 1920 1080
swaymsg output DP-4 pos 3626 0 res 1680 1050
swaymsg output eDP-1 background ~/.config/sway/wallpapers/space_2560x1440.jpg fill
swaymsg output DP-4 background ~/.config/sway/wallpapers/planet_rings_1680x1050.jpg fill
swaymsg output DP-5 background ~/.config/sway/wallpapers/solar_eclipse_1920x1080.jpg fill
killall waybar
waybar -c ~/.config/waybar/work-config &
exit 0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 495 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 900 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 649 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -1,4 +0,0 @@
#!/bin/bash
swaymsg splith
swaymsg exec "termite -t weechat -e weechat"
swaymsg exec slack

View File

@ -1,12 +0,0 @@
#!/bin/bash
source ~/.config/sway/scripts/location-helper.sh
if [ $LOCATION = "home" ];
then
swaymsg exec "google-chrome-stable --app=https://mail.google.com"
swaymsg exec "google-chrome-stable --app=https://calendar.google.com"
swaymsg exec "google-chrome-stable --app=https://web.whatsapp.com"
swaymsg exec "google-chrome-stable --app=https://messages.google.com/web/"
else
swaymsg "exec google-chrome-stable --no-default-browser-check --new-window https://www.toggl.com/app/timer https://mail.google.com/mail/u/0/#inbox https://calendar.google.com/calendar/r?tab=mc https://web.whatsapp.com https://messages.google.com/web/"
fi

View File

@ -1,8 +0,0 @@
#!/bin/bash
source ~/.config/sway/scripts/location-helper.sh
if [ $LOCATION = "home" ];
then
swaymsg "exec google-chrome-stable --no-default-browser-check --new-window"
swaymsg "exec /home/jfm/Tools/idea-2018.3/bin/idea.sh"
fi

View File

@ -1,15 +0,0 @@
#!/bin/bash
source ~/.config/sway/scripts/location-helper.sh
if [ $LOCATION = "home" ];
then
swaymsg layout splith
swaymsg exec google-chrome-stable
swaymsg exec "termite -t vim -e nvim"
swaymsg exec "termite -t shell1"
swaymsg exec "termite -t shell2"
else
swaymsg exec "termite -t vim -e nvim"
swaymsg exec "termite -t shell1"
swaymsg exec "termite -t shell2"
fi

View File

@ -1,14 +0,0 @@
#!/bin/bash
source ~/.config/sway/scripts/location-helper.sh
if [ $LOCATION = "home" ];
then
swaymsg "exec termite -t newsboat -e newsboat"
swaymsg "exec termite -t bark -d '/home/jfm/Repositories/bark' -e 'pipenv run python Bark.py'"
swaymsg "exec termite -t rtv -e 'rtv --enable-media --theme default'"
swaymsg "exec spotify"
else
swaymsg "exec termite -t newsboat -e newsboat"
swaymsg "exec termite -t twitter -d '/home/jfm/Repositories/bark' -e 'pipenv run python Bark.py'"
swaymsg "exec termite -t rtv -e 'rtv --enable-media --theme default'"
fi