Compare commits

...

6 Commits

Author SHA1 Message Date
Inhji 0e8a5c2c12 add menu for copying common phrases 2023-10-20 13:21:33 +02:00
Inhji 721fc41ce5 sway: add tofi, more stuff 2023-10-20 13:18:54 +02:00
Inhji 7bca7edd79 waybar: add now playing, window names 2023-10-20 13:16:19 +02:00
Inhji 22bada1f55 tofi: add config 2023-10-20 13:16:00 +02:00
Inhji 73d592ed7a add now-playing script 2023-10-20 13:15:49 +02:00
Inhji bc30240aaa fish: add site alias 2023-10-20 13:15:32 +02:00
7 changed files with 55 additions and 4 deletions

View File

@ -3,6 +3,8 @@
## Paths
set -xU GOPATH $HOME/.go
set -xU DOTFILES $HOME/.dotfiles
set SITE $HOME/Devel/kirby
set KEYFILE $HOME/.ssh/id_ed25519
fish_add_path $HOME/.local/bin $HOME/.mix $HOME/.mix/escripts $HOME/.cargo/bin $GOPATH/bin
@ -23,6 +25,7 @@ end
alias r='source ~/.config/fish/config.fish && echo "Config reloaded."'
alias c="clear"
alias dot="$EDITOR $DOTFILES"
alias site="$EDITOR $SITE"
# Add apt aliases for updating / upgrading if available
if test -e (which apt)

10
config/scripts/menu.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
UMLAUTS="ä\nö\nü\nß"
GREETINGS="Viele Grüße"
PROMPTS="$UMLAUTS\n$GREETINGS"
RESULT=$(echo -e $PROMPTS | tofi)
notify-send "$RESULT copied"
wl-copy $RESULT

8
config/scripts/now-playing.sh Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
TITLE=$(cmus-remote -Q | grep title | cut --delimiter=' ' --fields=3-)
ARTIST=$(cmus-remote -Q | grep ' artist ' | cut --delimiter=' ' --fields=3-)
if [ -n "$ARTIST" ] || [ -n "$TITLE" ] ; then
echo "$ARTIST - $TITLE"
fi

View File

@ -21,7 +21,9 @@ set $MON1 "HDMI-A-1"
# Your preferred application launcher
# Note: it's recommended that you pass the final command to sway
#set $menu dmenu_path | dmenu | xargs swaymsg exec --
set $menu wofi --show drun -p Search -n -i -I -W 66% -s $HOME/.config/wofi.css
#set $menu wofi --show drun -p Search -n -i -I -W 66% -s $HOME/.config/wofi.css
set $menu tofi-drun | xargs swaymsg exec --
set $dmenu tofi-run | xargs swaymsg exec --
#xwayland disable
@ -93,9 +95,10 @@ hide_edge_borders both
bindsym --border button3 kill
# Start your launcher
bindsym $mod+d exec $menu
bindsym $mod+d exec $dmenu
bindsym $mod+Tab exec $menu
bindsym $mod+t exec $files
bindsym $mod+Shift+w exec waypaper
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
@ -279,6 +282,7 @@ for_window [app_id="gnome-control-center"] floating enable
for_window [app_id="blueman-manager"] floating enable
for_window [instance="Msgcompose"] floating enable
for_window [app_id="waypaper"] floating enable
for_window [app_id="mpv"] floating enable
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway

22
config/tofi/config Normal file
View File

@ -0,0 +1,22 @@
# dmenu theme
anchor = top
width = 100%
height = 34
horizontal = true
font-size = 16
prompt-text = " run: "
outline-width = 0
border-width = 0
background-color = #000000
min-input-width = 50
result-spacing = 15
padding-top = 1
padding-bottom = 0
padding-left = 0
padding-right = 0
# performance
font = "/home/inhji/.fonts/Inter-Regular.otf"
num-results = 10
hint-font = false
late-keyboard-init = true

View File

@ -3,7 +3,7 @@
// "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 32, // Waybar height (to be removed for auto height)
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-left": ["sway/workspaces", "sway/window", "sway/mode"],
"modules-center": ["custom/cmus"],
"modules-right": ["tray", "custom/stat", "battery", "clock"],
"custom/run": {
@ -51,7 +51,7 @@
"format": " {}",
"max-length": 30,
"interval": 1,
"exec": "cmus-remote -Q | grep 'tag title' | sed 's/tag title //g'"
"exec": "now-playing.sh"
},
"custom/stat": {
"format": "{}",

View File

@ -35,6 +35,10 @@
glob: true
create: true
path: config/helix/**
~/.config/tofi:
glob: true
create: true
path: config/tofi/**
~/.config/lsd/config.yaml:
create: true
path: config/lsd/config.yaml