From fc5c2fac9f64198b032caa0625c0b99b464c7c5b Mon Sep 17 00:00:00 2001 From: tavo-wasd Date: Sun, 4 Feb 2024 16:07:32 -0600 Subject: [PATCH] default menu for wayland --- .gitignore | 2 ++ foot/foot.ini | 31 ++++++++++++++++++++ scripts/menu/menu | 7 ++--- sway/config | 74 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 110 insertions(+), 4 deletions(-) create mode 100644 foot/foot.ini create mode 100644 sway/config diff --git a/.gitignore b/.gitignore index 97fec59..a09c2a0 100644 --- a/.gitignore +++ b/.gitignore @@ -214,3 +214,5 @@ microsoft-edge-dev/ monitors.xml qBittorrent/ retroarch/ +gcolor3/ +pcmanfm-qt/ diff --git a/foot/foot.ini b/foot/foot.ini new file mode 100644 index 0000000..30fe66a --- /dev/null +++ b/foot/foot.ini @@ -0,0 +1,31 @@ +font=JetBrainsMono:size=9 + +[environment] +# name=value + +[colors] +alpha=0.9 + +[colors] +background=121212 +foreground=ebdbb2 +regular0=282828 +regular1=cc241d +regular2=98971a +regular3=d79921 +regular4=458588 +regular5=b16286 +regular6=689d6a +regular7=a89984 +bright0=928374 +bright1=fb4934 +bright2=b8bb26 +bright3=fabd2f +bright4=83a598 +bright5=d3869b +bright6=8ec07c +bright7=ebdbb2 + +[key-bindings] +scrollback-up-line=Control+Shift+k +scrollback-down-line=Control+Shift+j diff --git a/scripts/menu/menu b/scripts/menu/menu index 61d8127..0c1749d 100755 --- a/scripts/menu/menu +++ b/scripts/menu/menu @@ -4,7 +4,7 @@ PROMPT="$1" ; MODE="$2" # Configuration -MENU="fzf" # Default to fzf +MENU="bemenu" # Default to fzf col_nb="#121212" # Normal background col_nf="#665c54" # Normal foreground col_sb="#d3869b" # Selected background @@ -29,10 +29,9 @@ BEMENU_OPTS=" \ -c \ -i \ -l 10 \ - -M 5 \ -W 0.3 \ - -B 2 \ - --cw 2 \ + -B 1 \ + --cw 1 \ --tb $col_sb \ --tf $col_sf \ --fb $col_nb \ diff --git a/sway/config b/sway/config new file mode 100644 index 0000000..1673635 --- /dev/null +++ b/sway/config @@ -0,0 +1,74 @@ +# Preferences +set $mod Mod4 +set $left h +set $down j +set $up k +set $right l +set $term foot +set $menu /home/tavo/.config/scripts/menu/menu "Run:" run +output * bg /home/tavo/Pictures/backgrounds/background.jpg fill + +# Keybinds +input "type:pointer" accel_profile flat +input "type:touchpad" natural_scroll enabled +bindsym $mod+Return exec $term +bindsym $mod+c kill +bindsym $mod+r exec $menu +floating_modifier $mod normal +bindsym $mod+q reload +bindsym $mod+Shift+q exec swaymsg exit + +# Navigation +bindsym $mod+$left focus left +bindsym $mod+$down focus down +bindsym $mod+$up focus up +bindsym $mod+$right focus right +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right +# - +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+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# Workspaces +bindsym $mod+1 workspace " I " +bindsym $mod+2 workspace " II " +bindsym $mod+3 workspace " III " +bindsym $mod+4 workspace " IV " +bindsym $mod+5 workspace " V " +bindsym $mod+Shift+1 move container to workspace " I " +bindsym $mod+Shift+2 move container to workspace " II " +bindsym $mod+Shift+3 move container to workspace " III " +bindsym $mod+Shift+4 move container to workspace " IV " +bindsym $mod+Shift+5 move container to workspace " V " + +# Layout +bindsym $mod+b splith +bindsym $mod+v splitv +bindsym $mod+Shift+t layout tabbed +bindsym $mod+e layout toggle split +bindsym $mod+f fullscreen +bindsym $mod+Shift+f floating toggle +default_border pixel 2 +gaps inner 5 + +bar { + position top + + # When the status_command prints a new line to stdout, swaybar updates. + # The default just shows the current date and time. + status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done + + colors { + statusline #ffffff + background #323232 + inactive_workspace #32323200 #32323200 #5c5c5c + } +}