Skip to content

Commit

Permalink
updated configs
Browse files Browse the repository at this point in the history
  • Loading branch information
gerblesh committed Aug 18, 2023
1 parent d97bd52 commit 583d317
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 17 deletions.
9 changes: 9 additions & 0 deletions usr/bin/screenshot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash


FILE="$(grimshot save $1)"

if [[ -f "$FILE" ]]; then
cat $FILE | wl-copy
notify-send "Screenshot" "Screenshot taken, copied to clipboard and saved in Pictures folder" --icon "$FILE"
fi
6 changes: 3 additions & 3 deletions usr/etc/homedir/.config/fuzzel/fuzzel.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ terminal=foot # Note: you cannot actually use environment variables here
# lines=15
width=25
# tabs=8
horizontal-pad=10
vertical-pad=10
inner-pad=10
horizontal-pad=15
vertical-pad=15
inner-pad=15

# image-size-ratio=0.5

Expand Down
3 changes: 2 additions & 1 deletion usr/etc/homedir/.config/mako/config
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ font=Overpass: 15
border-radius=0
default-timeout=7000
progress-color=#313244
#padding=25,20,20
padding=15
#anchor=bottom-right
#text-alignment=center
height=150
width=450
max-icon-size=100
icon-path=/usr/share/icons/Papirus/:/usr/share/icons/Adwaita
on-button-left=exec makoctl menu -n "$id" fuzzel -d --prompt 'Select action: ' && makoctl dismiss -n "$id"

Expand Down
19 changes: 16 additions & 3 deletions usr/etc/homedir/.config/sway/config.d/binds.conf
Original file line number Diff line number Diff line change
Expand Up @@ -126,32 +126,45 @@ bindsym $mod+r mode "resize"
bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && /usr/bin/volume-change.sh
bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && /usr/bin/volume-change.sh
bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ && /usr/bin/volume-change.sh

# music controls (special keys on keyboard)
bindsym --locked XF86AudioNext exec playerctl next
bindsym --locked XF86AudioPlay exec playerctl play-pause
bindsym --locked XF86AudioPrev exec playerctl previous
bindsym --locked XF86AudioStop exec playerctl stop
# shift the mpris dbus player
bindsym --locked $mod+p exec playerctld shift

# brightness controls
bindsym --locked XF86MonBrightnessDown exec light -U 5 && /usr/bin/brightness-change.sh
bindsym --locked XF86MonBrightnessUp exec light -A 5 && /usr/bin/brightness-change.sh

# Screenshotting
bindsym $mod+g exec grimshot copy screen && notify-send "Screenshot" "Screenshot taken, copied to clipboard" --icon "camera"
bindsym $mod+Shift+g exec grimshot copy area && notify-send "Screenshot" "Screenshot taken, copied to clipboard" --icon "camera"
bindsym $mod+g exec /usr/bin/screenshot.sh screen
bindsym $mod+Shift+g exec /usr/bin/screenshot.sh area

# Screen locking
bindsym $mod+l exec /usr/bin/lock.sh

# logout menu
bindsym $mod+Escape exec /usr/bin/logout-menu.sh

# emoji menu
bindsym $mod+Period exec /usr/bin/emoji-menu.sh

# wallpaper menu
bindsym $mod+z exec /usr/bin/wallpaper-menu.sh

# dismiss notifications
bindsym $mod+delete exec makoctl dismiss
bindsym $mod+delete exec makoctl dismiss -a

# Resize windows
bindsym $mod+Shift+r seat seat0 cursor press button3


# apps
bindsym $mod+Shift+e exec thunar

#Clipboard
bindsym $mod+v exec cliphist list | fuzzel --dmenu --prompt=" 󱘣 " | cliphist decode | wl-copy
bindsym $mod+Shift+v exec cliphist list | fuzzel --dmenu --prompt=" 󱘝 " | cliphist delete
Expand Down
15 changes: 10 additions & 5 deletions usr/etc/homedir/.config/waybar/config
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,21 @@
}
},
"mpris": {
"format": "󰝚 {player_icon} {title}",
"format-paused": "󰝚 {status_icon} {title}",
"format": "{player_icon} {title}",
"format-paused": "{player_icon} {title}",
"max-length": 32,
"player-icons": {
"default": "⏸",
"default": " ",
"G4Music": "󰝚",
"Spot": "󰝚",
"mpv": "󰸬",
},
"status-icons": {
"paused": "▶"
"paused": "▶",
"playing": "⏸"
},
// "ignored-players": ["firefox"]
"ignored-players": [],
"interval": 1
},
"custom/power-profile": {
"format": "{}",
Expand Down
10 changes: 6 additions & 4 deletions usr/etc/homedir/.config/waybar/scripts/powerprofile-menu.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
#!/usr/bin/env bash

CHOICE=$(printf "󰾆 Power Saver\n󰾅 Balanced\n󰓅 Performance" | fuzzel --dmenu --prompt " Select Power Profile: " | awk '{print $2}')
CHOICE=$(printf "󰾆 Power Saver\n󰾅 Balanced\n󰓅 Performance" | fuzzel --dmenu --index --prompt " Select Power Profile: ")

case "$CHOICE" in
Power)
0)
powerprofilesctl set power-saver
;;
Balanced)
1)
powerprofilesctl set balanced
;;
Performance)
2)
powerprofilesctl set performance
;;
esac


2 changes: 1 addition & 1 deletion usr/etc/homedir/.config/waybar/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
}

#battery.charging {
color: @complete;
color: @secondary;
}

#battery {
Expand Down

0 comments on commit 583d317

Please sign in to comment.