sway, search, power, kitty_shell

This commit is contained in:
Greg 2024-10-23 23:07:12 +03:00
parent a4ee9d5e19
commit 9a9279397b
6 changed files with 16 additions and 12 deletions

View file

@ -9,7 +9,6 @@ client.unfocused #88c0d0 #2e3440 #d8dee9 #4c566a #4c566a
client.urgent #ebcb8b #ebcb8b #2e3440 #8fbcbb #ebcb8b client.urgent #ebcb8b #ebcb8b #2e3440 #8fbcbb #ebcb8b
workspace_layout default workspace_layout default
focus_wrapping workspace
default_border normal default_border normal
default_floating_border none default_floating_border none
font pango:monospace 0.001 font pango:monospace 0.001
@ -17,7 +16,8 @@ titlebar_padding 1
titlebar_border_thickness 1 titlebar_border_thickness 1
smart_borders off smart_borders off
gaps inner 10 gaps inner 10
for_window [app_id="kitty_shell"] floating enable, resize set 700 700, move center
for_window [app_id="kitty_shell"] floating enable, move center
### Variables ### Variables
# #
@ -30,7 +30,6 @@ set $right l
set $term kitty set $term kitty
set $browser firefox set $browser firefox
set $menu fish -c 'rofi -show run -terminal $term' set $menu fish -c 'rofi -show run -terminal $term'
set $switcher ~/.scripts/kitty_shell.fish ~/.scripts/switcher.fish
set $laptop eDP-1 set $laptop eDP-1
set $external DP-1 set $external DP-1
@ -105,10 +104,10 @@ input "type:keyboard" {
bindsym $mod+Return exec $term bindsym $mod+Return exec $term
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
bindsym $mod+Space exec $menu bindsym $mod+Space exec $menu
bindsym $mod+Tab exec $switcher bindsym $mod+Tab workspace next
bindsym $mod+Backspace exec ~/.config/sway/power.fish bindsym $mod+Backspace exec ~/.scripts/kitty_shell.fish ~/.scripts/power.fish
bindsym $mod+grave exec ~/.config/sway/shot.fish bindsym $mod+grave exec ~/.scripts/shot.fish
bindsym $mod+backslash exec ~/.config/sway/search.fish bindsym $mod+backslash exec KS_WIDTH=30c KS_HEIGHT=1c ~/.scripts/kitty_shell.fish ~/.scripts/search.fish
# Drag floating windows by holding down $mod and left mouse button. # Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod. # Resize them with right mouse button + $mod.
@ -126,7 +125,6 @@ input "type:keyboard" {
# Moving around: # Moving around:
# #
# Move your focus around # Move your focus around
#bindsym $mod+Tab focus next
bindsym $mod+$left focus left bindsym $mod+$left focus left
bindsym $mod+$down focus down bindsym $mod+$down focus down
bindsym $mod+$up focus up bindsym $mod+$up focus up
@ -241,7 +239,7 @@ exec $term
### Idle configuration ### Idle configuration
# #
exec ~/.config/sway/idle.fish exec ~/.scripts/idle.fish

View file

@ -1,3 +1,6 @@
#!/usr/bin/fish #!/usr/bin/fish
kitty --class "kitty_shell" $argv set -q KS_WIDTH || set KS_WIDTH "50c"
set -q KS_HEIGHT || set KS_HEIGHT "7c"
kitty --class "kitty_shell" -o remember_window_size=no -o initial_window_height=$KS_HEIGHT -o initial_window_width=$KS_WIDTH $argv

View file

@ -1,6 +1,8 @@
#!/usr/bin/fish #!/usr/bin/fish
set action (echo -e "hibernate\nreboot\npoweroff\nsuspend\nlock" | rofi -dmenu -p "to:") set options "hibernate\nreboot\npoweroff\nsuspend\nlock"
set action (echo -e $options | fzf)
if test "$action" = "lock" if test "$action" = "lock"
swaylock swaylock

View file

@ -1,6 +1,7 @@
#!/bin/env fish #!/bin/env fish
set search (echo "" | rofi -dmenu -p "" -theme-str 'listview {lines: 0;}')
set search (read -P ">")
if test "$search" != "" if test "$search" != ""
firefox --new-tab "https://www.google.de/search?q=$search" && swaymsg [app_id="org.mozilla.firefox"] focus firefox --new-tab "https://www.google.de/search?q=$search" && swaymsg [app_id="org.mozilla.firefox"] focus