From 81bf5b1f1bdc01e16fda25a5569a1e754fc49868 Mon Sep 17 00:00:00 2001 From: Andrea Date: Sun, 9 Jun 2024 15:06:57 +0200 Subject: [PATCH] chore: add wofy and ly --- README.md | 12 +++--- ly/config.ini | 100 +++++++++++++++++++++++++++++++++++++++++++++++++ sway/config | 53 +++++++++----------------- wofi/config | 5 +++ wofi/style.css | 17 +++++++++ 5 files changed, 147 insertions(+), 40 deletions(-) create mode 100644 ly/config.ini create mode 100644 wofi/config create mode 100644 wofi/style.css diff --git a/README.md b/README.md index 9fb4bab..4c21633 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,13 @@ -# .env +# dotenv/configs -List of my dot files for my Arch Linux desktop. +List of my dot files and config files for my Arch Linux desktop setup. ## Programs +- [Alacritty](https://github.com/alacritty/alacritty): Terminal emulator +- [Ly](https://github.com/fairyglade/ly): Lightweight TUI (ncurses-like) display manager +- [Mako](https://github.com/emersion/mako): Wayland notification daemon +- [Swappy](https://github.com/jtheoof/swappy): Wayland native snapshot editing tool - [Sway](https://github.com/swaywm/sway): i3-compatible Wayland compositor - [Waybar](https://github.com/Alexays/Waybar): Wayland bar for Sway -- [Alacritty](https://github.com/alacritty/alacritty): Terminal emulator -- [Mako](https://github.com/emersion/mako): Wayland notification daemon -- [Swappy](https://github.com/jtheoof/swappy): Wayland native snapshot editing tool \ No newline at end of file +- [Wofi](https://hg.sr.ht/~scoopta/wofi): Launcher program for wlroots compositors \ No newline at end of file diff --git a/ly/config.ini b/ly/config.ini new file mode 100644 index 0000000..2cf2dfe --- /dev/null +++ b/ly/config.ini @@ -0,0 +1,100 @@ +# animation enabled +#animate = false + +# the active animation (only animation '0' available for now) +#animation = 0 + +# the char used to mask the password +asterisk = * + +# background color id +#bg = 0 + +# blank main box +#blank_box = true + +# erase password input on failure +blank_password = true + +# console path +#console_dev = /dev/console + +# input active by default on startup +#default_input = 2 + +# foreground color id +#fg = 9 + +# remove main box borders +#hide_borders = false +#hide_borders = true + +# number of visible chars on an input +#input_len = 34 + +# active language +lang = en + +# load the saved desktop and login +load = true + +# main box margins +#margin_box_h = 2 +#margin_box_v = 1 + +# total input sizes +#max_desktop_len = 100 +#max_login_len = 255 +#max_password_len = 255 + +# cookie generator +#mcookie_cmd = /usr/bin/mcookie + +# event timeout in milliseconds +#min_refresh_delta = 5 + +# default path +#path = /sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin + +# command executed when pressing F2 +restart_cmd = /sbin/shutdown -r now + +# save the current desktop and login as defaults +#save = true + +# file in which to save and load the default desktop and login +#save_file = /etc/ly/save + +# service name (set to ly to use the provided pam config file) +#service_name = ly + +# command executed when pressing F1 +shutdown_cmd = /sbin/shutdown -h now + +# terminal reset command (tput is faster) +#term_reset_cmd = /usr/bin/tput reset + +# tty in use +#tty = 2 + +# wayland setup command +#wayland_cmd = /etc/ly/wsetup.sh + +# add wayland specifier to session names +#wayland_specifier = false +#wayland_specifier = true + +# wayland desktop environments +#waylandsessions = /usr/share/wayland-sessions + +# xorg server command +#x_cmd = /usr/bin/X + +# xorg setup command +#x_cmd_setup = /etc/ly/xsetup.sh + +# xorg xauthority edition tool +#xauth_cmd = /usr/bin/xauth + +# xorg desktop environments +#xsessions = /usr/share/xsessions diff --git a/sway/config b/sway/config index dbc31c9..cfb5580 100644 --- a/sway/config +++ b/sway/config @@ -1,6 +1,3 @@ -# -# Variables: -# # Logo key. Use Mod1 for Alt. set $mod Mod1 # Home row direction keys, like vim @@ -10,6 +7,7 @@ set $up k set $right l +# wf-recorder set $screenrecorder `bash $HOME/.config/sway/scripts/toggle-screen-recorder.sh` bindsym --to-code $mod+Shift+R exec $screenrecorder @@ -20,6 +18,9 @@ bindsym Mod4+l exec swaylock -l -f -e -F -i "/usr/share/backgrounds/sway/univers # nyxt browser bindsym $mod+Shift+b exec nyxt +# hyprpicker +bindsym $mod+p exec hyprpicker -a + # Your preferred terminal emulator set $term alacritty @@ -36,9 +37,7 @@ exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK gaps inner 2 gaps outer 2 -# # Colors -# client.background # 434c5e n/a client.focused #434c5e #434c5e #eceff4 #434c5e #434c5e client.focused_inactive #3b4252 #3b4252 #eceff4 #3b4252 #3b4252 @@ -127,9 +126,7 @@ bindsym $mod+Shift+$right move right # bindsym $mod+Shift+Down move down # bindsym $mod+Shift+Up move up # bindsym $mod+Shift+Right move right -# -# Workspaces: -# + # Switch to workspace bindsym $mod+1 workspace number 1 bindsym $mod+2 workspace number 2 @@ -141,6 +138,7 @@ bindsym $mod+7 workspace number 7 bindsym $mod+8 workspace number 8 bindsym $mod+9 workspace number 9 bindsym $mod+0 workspace number 10 + # Move focused container to workspace bindsym $mod+Shift+1 move container to workspace number 1 bindsym $mod+Shift+2 move container to workspace number 2 @@ -152,9 +150,7 @@ bindsym $mod+Shift+7 move container to workspace number 7 bindsym $mod+Shift+8 move container to workspace number 8 bindsym $mod+Shift+9 move container to workspace number 9 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. -# + # Layout stuff: # # You can "split" the current object of your focus with @@ -170,7 +166,6 @@ bindsym $mod+e layout toggle split # Make the current focus fullscreen bindsym F11 fullscreen -bindsym $mod+f fullscreen # Toggle the current focus between tiling and floating mode bindsym $mod+Shift+space floating toggle @@ -193,7 +188,6 @@ bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ bindsym --locked XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle bindsym --locked XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle -# # Scratchpad: # # Sway has a "scratchpad", which is a bag of holding for windows. @@ -205,31 +199,26 @@ bindsym $mod+Shift+minus move scratchpad # Show the next scratchpad window or hide the focused scratchpad window. # If there are multiple scratchpad windows, this command cycles through them. bindsym $mod+minus scratchpad show -# -# Resizing containers: -# + +# Resizing containers +bindsym $mod+r mode "resize" + mode "resize" { # left will shrink the containers width - # right will grow the containers width - # up will shrink the containers height - # down will grow the containers height bindsym $left resize shrink width 10px - bindsym $down resize grow height 10px - bindsym $up resize shrink height 10px + # right will grow the containers width bindsym $right resize grow width 10px - - # Ditto, with arrow keys - # bindsym Left resize shrink width 10px - - # bindsym Up resize shrink height 10px - # bindsym Right resize grow width 10px + # up will shrink the containers height + bindsym $up resize shrink height 10px + # down will grow the containers height + bindsym $down resize grow height 10px # Return to default mode - bindsym Return mode "default" bindsym Escape mode "default" } -bindsym $mod+r mode "resize" +# screenshot +bindsym Print mode "screenshot" mode "screenshot" { bindsym Mod4+s+v exec grimshot save active - | swappy -f - @@ -241,16 +230,10 @@ mode "screenshot" { bindsym $mod+c+w exec grimshot copy window # Return to default mode - bindsym Return mode "default" bindsym Escape mode "default" } -bindsym Print mode "screenshot" - - -# # Status Bar: -# bar swaybar_command waybar include /etc/sway/config.d/* diff --git a/wofi/config b/wofi/config new file mode 100644 index 0000000..54077a5 --- /dev/null +++ b/wofi/config @@ -0,0 +1,5 @@ +show=drun +allow_images=true +matching=fuzzy +no_actions=true +prompt=Search \ No newline at end of file diff --git a/wofi/style.css b/wofi/style.css new file mode 100644 index 0000000..82718e2 --- /dev/null +++ b/wofi/style.css @@ -0,0 +1,17 @@ +#window { + border-radius: 10px; + background: #383c4a; +} + +#outer-box { + padding: 5px; +} + +#input, #entry { + border-radius: 10px; + margin-bottom: 5px; +} + +#img { + padding-right: 10px; +} \ No newline at end of file