diff --git a/README.md b/README.md index 958ce3f..fc7327a 100755 --- a/README.md +++ b/README.md @@ -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 diff --git a/config/i3/config b/config/i3/config index a200081..34e10c0 100755 --- a/config/i3/config +++ b/config/i3/config @@ -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 @@ -290,4 +291,4 @@ mode "$mode_gaps_outer" { bindsym Return mode "default" bindsym Escape mode "default" -} \ No newline at end of file +} diff --git a/config/rofi/main_without_icons.rasi b/config/rofi/main_without_icons.rasi index 8996c07..455b4b2 100755 --- a/config/rofi/main_without_icons.rasi +++ b/config/rofi/main_without_icons.rasi @@ -26,7 +26,7 @@ window { border: 2px; border-color: @br; border-radius: 20px; - height: 32%; + height: 28%; width: 25%; location: center; x-offset: 0; diff --git a/install-on-arch.sh b/install-on-arch.sh index 7808e3b..1e4094e 100755 --- a/install-on-arch.sh +++ b/install-on-arch.sh @@ -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." @@ -167,4 +167,4 @@ do 13) install_emoji_fonts;; 14) install_sddm;; esac -done \ No newline at end of file +done diff --git a/scripts/lock b/scripts/lock index 431d6bf..ff8aa01 100644 --- a/scripts/lock +++ b/scripts/lock @@ -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 \ diff --git a/scripts/rofi-powermenu b/scripts/rofi-powermenu new file mode 100755 index 0000000..fdacc0b --- /dev/null +++ b/scripts/rofi-powermenu @@ -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 \ No newline at end of file diff --git a/wallpapers/lockscreen.png b/wallpapers/lockscreen.png new file mode 100644 index 0000000..888c307 Binary files /dev/null and b/wallpapers/lockscreen.png differ