Skip to content

Commit

Permalink
Update: added powermenu, minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyitdev committed Jul 24, 2022
1 parent a2d46e7 commit c3f992e
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 11 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ Detailed information and dependencies

## Showcase

|vsc & ncmpcpp & cava|rofi & dunst|
|neofetch|vsc & ncmpcpp & cava|
|-|-|
|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v23/screenshots/1.png)|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/1.png)|
|nemo & nvim & ranger|-|
|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/1.png)|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/1.png)|
|-|i3lock-color|
|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/1.png)|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/1.png)|
|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/1.png)|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/2.png)|
|rofi & dunst|nemo & nvim & ranger|
|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/3.png)|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/4.png)|
|i3lock-color|sddm|
|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/5.png)|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/6.png)|

## Installation

Expand Down
3 changes: 2 additions & 1 deletion config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ bindsym $mod+a exec "rofi -show window -no-default-config -config ~/.config/rofi
bindsym $mod+d exec "rofi -show drun -no-default-config -config ~/.config/rofi/main.rasi"
bindsym $mod+s exec "rofi -show drun -no-default-config -config ~/.config/rofi/full_screen.rasi"
bindsym $mod+z exec "rofi -show  -modi ':rofi-bookmarks' -no-default-config -config ~/.config/rofi/main.rasi"
bindsym $mod+x exec "rofi-powermenu"
bindsym $mod+c exec "rofi-screenshot"

# take a screenshot
Expand Down Expand Up @@ -290,4 +291,4 @@ mode "$mode_gaps_outer" {

bindsym Return mode "default"
bindsym Escape mode "default"
}
}
2 changes: 1 addition & 1 deletion config/rofi/main_without_icons.rasi
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ window {
border: 2px;
border-color: @br;
border-radius: 20px;
height: 32%;
height: 28%;
width: 25%;
location: center;
x-offset: 0;
Expand Down
4 changes: 2 additions & 2 deletions install-on-arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ create_backup(){
[ -d "$config_directory"/rofi ] && mv "$config_directory"/rofi "$config_directory"/rofi_$date && echo "rofi configs detected, backing up."
[ -d "$config_directory"/zathura ] && mv "$config_directory"/zathura "$config_directory"/zathura_$date && echo "zathura configs detected, backing up."

[ -d "$scripts_directory" ] && mv "$scripts_directory" "$scripts_directory"_$date && echo "scripts ($scripts_directory) detected, backing up."
[ -d "$scripts_directory" ] && sudo mv "$scripts_directory" "$scripts_directory"_$date && echo "scripts ($scripts_directory) detected, backing up."

[ -f "$config_directory"/Code\ -\ OSS/User/settings.json ] && mv "$config_directory"/Code\ -\ OSS/User/settings.json "$config_directory"/Code\ -\ OSS/User/settings.json_$date && echo "Vsc configs detected, backing up."

Expand Down Expand Up @@ -167,4 +167,4 @@ do
13) install_emoji_fonts;;
14) install_sddm;;
esac
done
done
2 changes: 1 addition & 1 deletion scripts/lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ font="dedede"
green="9ece6a"
red="db4b4b"

i3lock -n --force-clock -F -i ~/Pictures/wallpapers/lockscreen2.png -e \
i3lock -n --force-clock -F -i ~/Pictures/wallpapers/lockscreen.png -e \
--refresh-rate=1 --line-uses-inside --pointer=default --pass-media-keys --pass-volume-keys --pass-screen-keys \
--inside-color="$green" --ring-color="$green" --insidever-color="$green" --ringver-color="$green" --insidewrong-color="$red" --ringwrong-color="$red" \
--keyhl-color="$green" --separator-color="$green" --bshl-color="$green" --color=000000 \
Expand Down
48 changes: 48 additions & 0 deletions scripts/rofi-powermenu
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/bin/sh

# rofi theme
theme="$HOME/.config/rofi/main_without_icons.rasi"

get_options() {
echo " Poweroff"
echo " Reboot"
echo " Hibernate"
echo " Lock"
echo " Suspend"
echo " Log out"
}

main() {

# get choice from rofi
choice=$( (get_options) | rofi -dmenu -i -fuzzy -p "" -theme "$theme")

# run the selected command
case $choice in
' Poweroff')
systemctl poweroff
;;
' Reboot')
systemctl reboot
;;
' Hibernate')
systemctl hibernate
;;
' Lock')
lock
;;
' Suspend')
systemctl suspend
;;
' Log out')
i3-msg exit
;;
esac

# done
set -e
}

main &

exit 0
Binary file added wallpapers/lockscreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c3f992e

Please sign in to comment.