basic sway binds, git, rofi

This commit is contained in:
eneller
2024-03-21 18:46:12 +01:00
parent 62f344a83d
commit eb1c5081d9
12 changed files with 361 additions and 556 deletions

View File

@@ -1,5 +1,8 @@
# vim: filetype=i3config
# Logo key. Use Mod1 for Alt.
set $mod Mod4
bindsym $mod+F12 reload
focus_follows_mouse no
# Variables to set
set $terminal alacritty
@@ -7,14 +10,6 @@ set $browser firefox
set $files thunar
set $editor code
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $smallmenu rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/sway/rofi/launcher1.rasi
set $grandmenu rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/sway/rofi/launcher2.rasi
set $cheat kitty -e micro ~/.config/sway/cheatsheet.md
### Idle configuration
@@ -50,17 +45,13 @@ bindsym $mod+F8 exec $files
bindsym $mod+F9 exec lollypop
bindsym $mod+F10 exec spotify
bindsym $mod+F11 exec rofi -show drun
bindsym $mod+F12 exec rofi -show drun
## xfce4-terminal
bindsym f12 exec xfce4-terminal --drop-down
bindsym $mod+Shift+Return exec thunar
# Start a terminal
bindsym $mod+Return exec kitty
bindsym $mod+t exec kitty
bindsym Ctrl+Alt+Return exec foot
bindsym Ctrl+Alt+t exec $terminal
bindsym $mod+Return exec "rofi -show"
bindsym $mod+Shift+Space exec $terminal
# archlinux tweak tool
bindsym Ctrl+Alt+e archlinux-tweak-tool
@@ -72,18 +63,7 @@ bindsym $mod+Shift+x exec archlinux-logout
## Lock Screen
bindsym Ctrl+Alt+l exec ~/.config/sway/scripts/lockman.sh
# Kill focused window
bindsym $mod+q kill
bindsym $mod+Shift+q kill
# Launcher menu
bindsym $mod+d exec $grandmenu
# Launcher menu
bindsym $mod+Shift+d exec $smallmenu
# Cheatsheet
bindsym $mod+Shift+i exec $cheat
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
@@ -92,8 +72,6 @@ bindsym $mod+Shift+i exec $cheat
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
bindsym $mod+Shift+r reload
# conky
bindsym $mod+c exec conky-toggle
@@ -137,16 +115,16 @@ bindsym Ctrl+Alt+s exec spotify
# Moving around:
#
# Move your focus around
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# Move the focused window with the same, but add Shift
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
#
# Workspaces:
#
@@ -175,33 +153,18 @@ bindsym Ctrl+Alt+s exec spotify
bindsym $mod+Shift+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
bindsym $mod+Prior container prev
bindsym $mod+Shift+Prior move container to workspace prev
bindsym $mod+Next workspace next
bindsym $mod+Shift+Next move container to workspace next
bindsym $mod+Tab workspace back_and_forth
# Azerty
# Switch to workspace
#bindsym $mod+Ampersand workspace number 1
#bindsym $mod+Eacute workspace number 2
#bindsym $mod+Quotedbl workspace number 3
#bindsym $mod+Apostrophe workspace number 4
#bindsym $mod+Parenleft workspace number 5
#bindsym $mod+Section workspace number 6
#bindsym $mod+Egrave workspace number 7
#bindsym $mod+Exclam workspace number 8
#bindsym $mod+ccedilla workspace number 9
#bindsym $mod+agrave workspace number 10
# moving workspaces between screens:
bindsym $mod+Left move workspace to output left
bindsym $mod+Up move workspace to output up
bindsym $mod+Right move workspace to output right
bindsym $mod+Down move workspace to output down
# Move focused container to workspace
#bindsym $mod+Shift+Ampersand move container to workspace number 1
#bindsym $mod+Shift+Eacute move container to workspace number 2
#bindsym $mod+Shift+Quotedbl move container to workspace number 3
#bindsym $mod+Shift+Apostrophe move container to workspace number 4
#bindsym $mod+Shift+Parenleft move container to workspace number 5
#bindsym $mod+Shift+Section move container to workspace number 6
#bindsym $mod+Shift+Egrave move container to workspace number 7
#bindsym $mod+Shift+Exclam move container to workspace number 8
#bindsym $mod+Shift+ccedilla move container to workspace number 9
#bindsym $mod+Shift+agrave move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
@@ -215,13 +178,13 @@ bindsym Ctrl+Alt+s exec spotify
# Switch the current container between different layout styles
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+t layout toggle split
# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
bindsym $mod+d floating toggle
# Swap focus between the tiling area and the floating area
bindsym $mod+space focus mode_toggle