diff --git a/CHANGELOG.md b/CHANGELOG.md index e81aeb4..5725d20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ ## CHANGES +### 06-Nov-2023 +- Hyprland-Dots-v2 Featuring rofi, kitty and pywal and adding Hint Button to Assist new users +- Screenshots +

+ + + +- More Screenshots can be viewed here +-Hyprland-Dots-v2 Changes [`Link`](https://github.com/JaKooLit/screenshots/tree/main/Hyprland-V2-Screenshots/General) + ### 04-Nov-2023 - Various clean up scripts (change all to !#/bin/bash shebangs) except pythons! - Tweaked abit Wofi Beats (SUPER CTRL S) to have a better notification diff --git a/README.md b/README.md index 8237b8e..8d7481b 100644 --- a/README.md +++ b/README.md @@ -8,28 +8,23 @@ ## ๐Ÿ‘๏ธโ€๐Ÿ—จ๏ธ My Hyprland install Scripts ๐Ÿ‘๏ธโ€๐Ÿ—จ๏ธ +- You can install Hyprland using Scripts below: + - [Fedora-Linux](https://github.com/JaKooLit/Fedora-Hyprland) - [Debian/Ubuntu-Linux](https://github.com/JaKooLit/Debian-Hyprland) - [Arch-Linux](https://github.com/JaKooLit/Arch-Hyprland) -- [Arch-Linux-(orig)](https://github.com/JaKooLit/Hyprland-v4) - -- As you noticed there are 2 for Arch Linux. At some point I will be concentrating on the Arch-Linux only - refer to install scripts what packages needed to install... but atleast, Hyprland packages is needed ๐Ÿ˜๐Ÿ˜๐Ÿ˜ duh!! ## ๐Ÿ‘€ Screenshots ๐Ÿ‘€ - All screenshots are collected here [Screenshots](https://github.com/JaKooLit/screenshots/tree/main/Hyprland-ScreenShots) -### โ—โ— This is basically to re-construct my previous hyprland dot files -- why? Generally, alot of users, especially new users are confused with my original layout. In which waybar, dunst, swaylock, etc are inside ~/.config/hypr , which is originally meant for Hyprland configuration only. - -- This would ultimately mean much easier for users to use other waybar, or hyprland dots from other Hyprland users who are sharing their dotfiles. - (Make me sad, although, I am still glad you tried my install script and dotfiles) - -- But my main reason for creating this repo, is that, in the future, I will be focusing only into one repo, as I aimed to just download and install this repo for any install script that I will be using or wanted to share. Less maintainance for me and to avoid errors. - -- Users of my Hyprland install scripts, Arch-Hyprlands, Fedora-Hyprland, Debian/Ubuntu-Hyprland, upgrade to these dotfiles/configuration to replace their previous dots. +### โ—โ— V2! What's new? +- Switched to rofi as app launcher, added pywal colors and switched Kitty for tty. +- I have also added a small button HINT!, which should help new users. +- Previous users can upgrade! However, you need to install rofi-wayland, kitty and pywal. If you want the HINT button, install yad as well. ### ๐Ÿ“ฆ Changelogs - To easily track changes, I will be updating the changelogs. [CHANGELOGS](https://github.com/JaKooLit/Hyprland-Dots/blob/main/CHANGELOG.md) Screenshots will be included if worth it! @@ -38,7 +33,7 @@ ## โœจ Copying instructions. - Note! The auto copy script will create backups of intended folders to be copied. However, still a good idea to manually backup just incase script failed to backup! -- ~/.config (btop, cava, dunst, foot, hypr, swappy, swaylock, waybar, wofi) - These are folders to be copied. +- ~/.config (btop cava dunst gtk-3.0 hypr kitty rofi swappy swaylock waybar wlogout) - These are folders to be copied. - ~/Pictures/wallpapers - Will be backed up ### ๐Ÿ”” Automatic copy of configurations @@ -60,35 +55,43 @@ chmod +x $HOME/.config/hypr/scripts/* - Make sure to execute initial symlinks else dunst, wofi and waybar will fail to launch ```bash ln -sf "$HOME/.config/waybar/configs/config-default" "$HOME/.config/waybar/config" -ln -sf "$HOME/.config/waybar/style/style-dark.css" "$HOME/.config/waybar/style.css" +ln -sf "$HOME/.config/waybar/style/style-pywal.css" "$HOME/.config/waybar/style.css" ln -sf "$HOME/.config/dunst/styles/dunstrc-dark" "$HOME/.config/dunst/dunstrc" -ln -sf "$HOME/.config/wofi/styles/style-dark.css" "$HOME/.config/wofi/style.css" -ln -sf "$HOME/.config/wofi/configs/config-default" "$HOME/.config/wofi/config" ``` +- after that initialize pywal with +```wal -i wallpaper/path``` +- then run this +```bash +ln -sf "$HOME/.cache/wal/colors-rofi-dark.rasi" "$HOME/.config/rofi/pywal-color/pywal-theme.rasi" +``` +- Before reboot or logout, choose wallpaper with SUPER CTRL W. + ### โš ๏ธโš ๏ธโš ๏ธ A MUST! after copying these dots -- By default I have not set a wallpaper. If using swww, just press SUPER CTRL W and choose wallpaper. Once you reboot or logged out, the last wallpaper will be loaded by swww automatically. -- If not using swww, edit ~/.config/hypr/Execs.conf and set using swaybg +- By default I have not set a wallpaper. Press SSUPER CTRL W and set a wallpaper. This is also to initiate pywal for waybar, kitty (tty) and rofi themes. If you use the copy.sh script, you wont need to do this. - Nvidia Owners. Make sure to edit your ~/.config/hypr/configs/ENVariables.conf if you have set a proper environment already. (recommended). WLR_NO_CURSORS will be activated if nvidia gpu is detected. - If you have already set your own keybinds, monitors, etc.... Just copy over from backup created before log-out or reboot. (recommended) ### ๐Ÿ“– Known issues and possibly solutions -- Foot tty fonts after copying dots is broken - Install Fira Code or just restore your previous foot configuration in ~/.config/foot - Themes are broken when changing dark light - Ensure you have Tokyo Night Dark and Light themes installed and Tokyo Night SE icons or adjust the Dark Light script located in ~/.config/hypr/scripts/DarkLight.sh - Keyboard shortcuts or customized Keybinds are broken! - Just copy over your previous Keybinds.conf from the hypr-backup in ~/.config/ ### ๐Ÿ™‹ QUESTIONS ?!?! โ‰๏ธ -- Maybe answered already in Help File! SUPER H to launch it! +- FAQ! Yes you can use these dotfiles to other distro! Just ensure to install proper packages first! If it makes you feel better, I use same config on my Gentoo and NixOS :) +- QUICK HINT! Click the HINT! Waybar module (note only available in default layout). Can be launched by Keybind SUPER H +- More question? Maybe answered already in Help File! SUPER SHIFT H to launch it! - If you still have, kindly join my discord for faster communication. See invite link below. If not, open an issue on github + ### ๐Ÿ™ Special request - If you have improvements on the dotfiles or configuration, feel free to submit a PR for improvement. I always welcome improvements as I am also just learning just like you guys! - Waybar styles (all those new panel styles require some tweaking) - I kindly request assistance ๐Ÿ™ ### ๐Ÿคทโ€โ™‚๏ธ TO DO! -- [X] ~~After Arch update the hyprland package, will uncomment line 38 to 44 in ~/.config/hypr/configs/Settings.conf. Users of hyprland-git or if compiled from source, you can safely uncomment these lines (group and groupbar)~~ Switched to Hyprland-git for Arch-Hyprland script as Arch dev is not updating its Hyprland repo - [ ] Tweak waybar layouts and Themes -- [X] ~~Integrate these dotfiles into my Hyprland install scripts for a centralized configurations~~ +- [ ] Tweak rofi layouts and Themes +- [ ] Quite possibly switch to starship? Although starship has limited themes compared to oh-my-zsh. + ### ๐Ÿ”ฎ Discord Server - kindly join my Discord Server https://discord.gg/V2SJ92vbEN diff --git a/config/foot/foot.ini b/config/foot/foot.ini deleted file mode 100644 index 8dd3b11..0000000 --- a/config/foot/foot.ini +++ /dev/null @@ -1,194 +0,0 @@ -# -*- conf -*- - -# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd) -# term=foot (or xterm-256color if built with -Dterminfo=disabled) -# login-shell=no - -# app-id=foot -# title=foot -# locked-title=no - -font=Fira Code:weight=SemiBold:size=12 -#font=Fantasque Sans Mono:weight=SemiBold:size=13 -# font-bold= -# font-italic= -# font-bold-italic= -# line-height= -# letter-spacing=0 -# horizontal-letter-offset=0 -# vertical-letter-offset=0 -# underline-offset= -# box-drawings-uses-font-glyphs=no -dpi-aware=no - -# initial-window-size-pixels=700x500 # Or, -# initial-window-size-chars= -# initial-window-mode=windowed -# pad=2x2 # optionally append 'center' -# resize-delay-ms=100 - -# notify=notify-send -a ${app-id} -i ${app-id} ${title} ${body} - -bold-text-in-bright=yes -# word-delimiters=,โ”‚`|:"'()[]{}<> -# selection-target=primary -# workers= - -#[environment] -# name=value - -[bell] -# urgent=no -# notify=no -# command= -# command-focused=no - -[scrollback] -# lines=1000 -# multiplier=3.0 -# indicator-position=relative -# indicator-format= - -[url] -# launch=xdg-open ${url} -# label-letters=sadfjklewcmpgh -# osc8-underline=url-mode -# protocols=http, https, ftp, ftps, file, gemini, gopher -# uri-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[] - -[cursor] -# style=block -# color= -# blink=no -# beam-thickness=1.5 -# underline-thickness= - -[mouse] -# hide-when-typing=no -# alternate-scroll-mode=yes - -[colors] -alpha=0.6 -foreground=dddddd -background=000000 - -## kitty themes ## -regular0=000000 # black -regular1=cc0403 # red -regular2=19cb00 # green -regular3=cecb00 # yellow -regular4=0d73cc # blue -regular5=cb1ed1 # magenta -regular6=0dcdcd # cyan -regular7=dddddd # white -bright0=767676 # bright black -bright1=f2201f # bright red -bright2=23fd00 # bright green -bright3=fffd00 # bright yellow -bright4=1a8fff # bright blue -bright5=fd28ff # bright magenta -bright6=14ffff # bright cyan -bright7=ffffff # bright white - -## dimmed colors (see foot.ini(5) man page) -# dim0= -# ... -# dim7= - -## The remaining 256-color palette -# 16 = <256-color palette #16> -# ... -# 255 = <256-color palette #255> - -## Misc colors -# selection-foreground= -# selection-background= -# jump-labels= # black-on-yellow -# scrollback-indicator= # black-on-bright-blue -# search-box-no-match= # black-on-red -# search-box-match= # black-on-yellow -# urls= - -[csd] -# preferred=server -# size=26 -# font= -# color= -# hide-when-typing=no -# border-width=0 -# border-color= -# button-width=26 -# button-color= -# button-minimize-color= -# button-maximize-color= -# button-close-color= - -[key-bindings] -# scrollback-up-page=Shift+Page_Up -# scrollback-up-half-page=none -# scrollback-up-line=none -# scrollback-down-page=Shift+Page_Down -# scrollback-down-half-page=none -# scrollback-down-line=none -# clipboard-copy=Control+Shift+c XF86Copy -# clipboard-paste=Control+Shift+v XF86Paste -# primary-paste=Shift+Insert -# search-start=Control+Shift+r -# font-increase=Control+plus Control+equal Control+KP_Add -# font-decrease=Control+minus Control+KP_Subtract -# font-reset=Control+0 Control+KP_0 -# spawn-terminal=Control+Shift+n -# minimize=none -# maximize=none -# fullscreen=none -# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none -# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none -# pipe-selected=[xargs -r firefox] none -# show-urls-launch=Control+Shift+u -# show-urls-copy=none -# show-urls-persistent=none -# prompt-prev=Control+Shift+z -# prompt-next=Control+Shift+x -# unicode-input=none -# noop=none - -[search-bindings] -# cancel=Control+g Control+c Escape -# commit=Return -# find-prev=Control+r -# find-next=Control+s -# cursor-left=Left Control+b -# cursor-left-word=Control+Left Mod1+b -# cursor-right=Right Control+f -# cursor-right-word=Control+Right Mod1+f -# cursor-home=Home Control+a -# cursor-end=End Control+e -# delete-prev=BackSpace -# delete-prev-word=Mod1+BackSpace Control+BackSpace -# delete-next=Delete -# delete-next-word=Mod1+d Control+Delete -# extend-to-word-boundary=Control+w -# extend-to-next-whitespace=Control+Shift+w -# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste -# primary-paste=Shift+Insert -# unicode-input=none - -[url-bindings] -# cancel=Control+g Control+c Control+d Escape -# toggle-url-visible=t - -[text-bindings] -# \x03=Mod4+c # Map Super+c -> Ctrl+c - -[mouse-bindings] -# selection-override-modifiers=Shift -# primary-paste=BTN_MIDDLE -# select-begin=BTN_LEFT -# select-begin-block=Control+BTN_LEFT -# select-extend=BTN_RIGHT -# select-extend-character-wise=Control+BTN_RIGHT -# select-word=BTN_LEFT-2 -# select-word-whitespace=Control+BTN_LEFT-2 -# select-row=BTN_LEFT-3 - -# vim: ft=dosini diff --git a/config/gtk-3.0/bookmarks b/config/gtk-3.0/bookmarks new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/config/gtk-3.0/bookmarks @@ -0,0 +1 @@ + diff --git a/config/gtk-3.0/settings.ini b/config/gtk-3.0/settings.ini new file mode 100644 index 0000000..5ecd3ed --- /dev/null +++ b/config/gtk-3.0/settings.ini @@ -0,0 +1,17 @@ +[Settings] +gtk-theme-name=Tokyonight-Dark-B +gtk-icon-theme-name=TokyoNight-SE +gtk-font-name=Fira Code Medium 12 +gtk-cursor-theme-name= +gtk-cursor-theme-size= +gtk-toolbar-style=GTK_TOOLBAR_BOTH +gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR +gtk-button-images=1 +gtk-menu-images=1 +gtk-enable-event-sounds=1 +gtk-enable-input-feedback-sounds=0 +gtk-xft-antialias=1 +gtk-xft-hinting=1 +gtk-xft-hintstyle=hintslight +gtk-xft-rgba=rgb +gtk-application-prefer-dark-theme=1 diff --git a/config/hypr/HelpFile.md b/config/hypr/HelpFile.md index abec965..e22a5d9 100644 --- a/config/hypr/HelpFile.md +++ b/config/hypr/HelpFile.md @@ -7,34 +7,28 @@ Super = Windows Key # common operations - Super h *keyhint* (THIS DOCUMENT) - Super Return *term* (`foot`) + Super Shift H *keyhint* (THIS DOCUMENT) + Super Return *term* (`kitty`) Super q *quit* (kill focused window) Super Shift q *quit* (kill focused window) - Super d *show app menu* (`wofi small`) - Super Shift d *show app menu* (`wofi large`) + Super d *show app menu* (`rofi`) -# Wofi scripts (Power menu, waybar-layout menu, wallpaper menu, etc, have small box) - - edit the scripts which are all located in ~/.config/hypr/scripts. You can set a desired Width and Height to your liking. +# Scripts (Power menu, waybar-layout menu, wallpaper menu, etc, have small box) + - All the scripts all located in ~/.config/hypr/scripts. # wallpaper / styling stuff Super w *wallpaper shuffle* (right click on wallpaper ๏€พ waybar module) Super Shift w *waybar style-change* (middle click on wallpaper ๏€พ waybar module) - Super Ctrl w *wallpaper switcher* (click on wallpaper waybar ๏€พ module) + Super Ctrl w *wallpaper select* (click on wallpaper waybar ๏€พ module) add more wallpaper in ~/Pictures/wallpapers - - right click on update ๏€™ waybar module *wallpaper cycle using swaybg* (no animations) - - - To change permanently the wallpaper edit the file in *~/.config/hypr/configs/Execs.conf* + - right click on update ๏€™ waybar module *wallpaper cycle using swww* - for the wallpaper styles and configurations, you can watch my video about it *https://youtu.be/6ZGzOjMJBe4* - - scripts for wallpaper stuff are located in *~/.config/hypr/scripts* file names `DarkLight.sh` `DarkLight-swaybg.sh` `Wallpaper.sh` `WallpaperSelect.sh` `WaybarStyles.sh` (last one for waybar) - - - swww is broken if you use fractional scaling. Use swaybg as your wallpaper provider. - - Sample of swaybg for wallpaper is located in ~/.config/hypr/configs/Execs.conf + - scripts for wallpaper stuff are located in *~/.config/hypr/scripts* file names `DarkLight.sh` `Wallpaper.sh` `WallpaperSelect.sh` `WaybarStyles.sh` (last one for waybar) # Monitor, executables, keybindings, window rules, - files are located in *~/.config/hypr/configs* + files are located in *~/.config/hypr/configs* . View with SUPER E Keybindings file is located here *~/.config/hypr/configs/Keybinds.conf* # screenshot may need to hold down the function (`fn`) key. You can change keybinds in *~/.config/hypr/configs/Keybinds.conf* @@ -42,40 +36,42 @@ Super Shift PrintSrc(button) *active window screenshot* Super CTRL SHIFT PrintScr *full screenshot + timer (5s)* Super Alt PrintScr *full screenshot + timer (10s)* - Super Shift S *screenshot with swappy* + Super Shift S *screenshot with swappy* (NOT AVAILABLE FOR DEBIAN/UBUNTU) # clipboard manager (cliphist) - Super Alt V *launch the wofi menu of clipboard manager* - - double click to select the clipboard. And paste as normal - - to clean up clipboard manager, launch foot (super enter) then type cliphist wipe + Super Alt V *launch the rofi menu of clipboard manager* + - click to select the clipboard. And paste as normal (CTRL V or right click menu) + - to clean up clipboard manager, launch kitty (super enter) then type ```cliphist wipe``` # applications shortcuts Super T *file manager* (`thunar`) - if installed # container layout Super Shift Space *toggle tiling/floating mode* + Super Shift F *toggle all windows in float mode* Super left mouse button *move window* - Super right mouse button *resize window* (note only in float mode) + Super right mouse button *resize window* (note! only in float mode) # workspaces Super 1 .. 0 *switch to workspace 1 .. 10* Super Shift 1 .. 0 *move container to workspace 1 .. 10* Super Tab *cycle through workspaces* + Super Shift Tab *cycle previous workspaces* # waybar customizations - - waybar font too big or too small. Edit the font-size in waybar styles located in ~/.config/waybar/styles/ . By default, it is set to 100%. After adjusting the GTK font scaling to your liking, edit all the waybar styles. Reduce or increase according to your needs. NOTE that its on percent %. You can also change to px whichever suits you. + - waybar font too big or too small. Edit the font-size in waybar styles located in ~/.config/waybar/styles/ . By default, it is set to 98%. After adjusting the GTK font scaling to your liking, edit all the waybar styles. Reduce or increase according to your needs. NOTE that its on percent %. You can also change to px whichever suits you. Note: This corresponds well with nwg-look - if you want 12h format instead of 24H format, edit the ~/.config/waybar/modules look for clock. delete the // and add // or delete the previous one - CPU Temperature: - a.) to change from deg C to deg F , edit the ~/.config/waybar/modules look for "temperature". Change the format to "format": "{temperatureF}ยฐF {icon}", - - b.) to fix the temperature if not showing correctly, comment "thermal zone": 0 by putting // before. Delete the // on the "hwmon path". Refresh waybar by pressing CTRL SHIFT w. If still not showing correctly, navigate to /sys/class/hwmon/ and open each hwmon. Look for k10temp for amd. Not sure about intel cpu. and edit accordingly the hwmon path in the "temperature" waybar module. + - b.) to fix the temperature if not showing correctly, comment "thermal zone": 0 by putting // before. Delete the // on the "hwmon path". Refresh waybar by pressing SUPER SHIFT W or SUPER ALT W If still not showing correctly, navigate to /sys/class/hwmon/ and open each hwmon. Look for k10temp for amd. Not sure about intel cpu. and edit accordingly the hwmon path in the "temperature" waybar module. - b.1) use this function to easily identify the hwmon path. Ran this in your terminal ``` for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done ``` - - Weather.sh (Default weather app in waybar) edit ~/.config/hypr/scripts/Weather.sh and add your city. Make sure a major city in your Area. Delete rbn folder in ~/.cache and refresh waybar by either pressing super shift w or choose waybar layout super alt w. + - Weather.sh (Default weather app in waybar) edit ~/.config/hypr/scripts/Weather.sh or Weather.py and add your city. Make sure a major city in your Area. Delete rbn folder in ~/.cache and refresh waybar by either pressing SUPER SHIFT W or choose waybar layout SUPER ALT W. If wanted to use Weather.py for weather, edit weather module located in ~/.config/waybar/modules. # Hyprland configurations - - *Hyprland* configuration files are in `~/.config/hypr/` + - *Hyprland* configuration files are in `~/.config/hypr/configs` Can view using SUPER E - files located in this folder can be edited using editor of your choice. # notes for nvidia gpu users @@ -83,12 +79,9 @@ - a guide on wiki - https://wiki.hyprland.org/Nvidia/ - # other notes - *Multimedia keys* - may not work for every keyboard may need to hold down the function (`fn`) key - Follow the wiki - https://wiki.hyprland.org/ - Follow the github - https://github.com/hyprwm/Hyprland - - -TO CLOSE THIS DOCUMENT - (vim) press esc :q! +# If you dont like kitty or in your tty to get the pywal colors, edit ~/.config/kitty/kitty.conf or .zshrc (for zsh) diff --git a/config/hypr/configs/ENVariables.conf b/config/hypr/configs/ENVariables.conf index a705aa7..08541a1 100644 --- a/config/hypr/configs/ENVariables.conf +++ b/config/hypr/configs/ENVariables.conf @@ -16,7 +16,7 @@ env = XDG_SESSION_TYPE,wayland #env = WLR_RENDERER,vulkan # firefox -#env = MOZ_ENABLE_WAYLAND,1 +env = MOZ_ENABLE_WAYLAND,1 # NVIDIA # This is from Hyprland Wiki. As a start, WLR_NO_HARDWARE_CURSORS 1 will be activated if nvidia gpu detected @@ -30,3 +30,5 @@ env = XDG_SESSION_TYPE,wayland #env = WLR_DRM_NO_ATOMIC,1 #env = NVD_BACKEND,direct +# FOR VM and POSSIBLY NVIDIA +#env = WLR_RENDERER_ALLOW_SOFTWARE,1 diff --git a/config/hypr/configs/Execs.conf b/config/hypr/configs/Execs.conf index 15bd093..a577776 100644 --- a/config/hypr/configs/Execs.conf +++ b/config/hypr/configs/Execs.conf @@ -3,10 +3,12 @@ $scriptsDir = $HOME/.config/hypr/scripts $themes = $HOME/.config/hypr/themes $lock = $scriptsDir/LockScreen.sh +# Initial boot script to start Pywal and Set wallpaper. This line and corresponding script can be safely deleted once logged in +exec-once = $HOME/.config/hypr/initial-boot.sh + # wallpaper stuff exec-once = swww query || swww init #exec-once = swww query || swww init && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png #using swww utility -#exec-once = swaybg -m fill -i $HOME/Pictures/wallpapers/mecha-nostalgia.png #using swaybg # Startup exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP @@ -15,13 +17,16 @@ exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESK # Polkit (Polkit Gnome / KDE) exec-once = $scriptsDir/Polkit.sh +#gnome polkit for nixos +#exec-once = $scriptsDir/Polkit-NixOS.sh + # Portal Hyprland #exec-once = $scriptsDir/PortalHyprland.sh # starup apps exec-once = waybar & exec-once = dunst & -exec-once = blueman-applet & +#exec-once = blueman-applet & exec-once = nm-applet --indicator & #exec-once = rog-control-center & #exec-once = easyeffects --gapplication-service -l my_own @@ -41,7 +46,10 @@ exec-once = $scriptsDir/RainbowBorders.sh # auto close of apps (timeout 5 secs) # exec-once = $scriptsDir/AppAutoClose.sh -# sway-idle with lock -exec-once = swayidle -w timeout 1200 '$lock' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock' -# without lock + +# sway-idle with lock only +exec-once = swayidle -w timeout 1200 '$lock' timeout 1200 +# sway-idle with lock and sleep +#exec-once = swayidle -w timeout 1200 '$lock' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock' +# sway idle without lock #exec-once = swayidle -w timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 3c0a00a..11a2d71 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -3,7 +3,7 @@ $mainMod = SUPER $files = thunar $browser = firefox -$term = foot +$term = kitty $hyprDir = $HOME/.config/hypr $scriptsDir = $HOME/.config/hypr/scripts @@ -11,53 +11,42 @@ $scriptsDir = $HOME/.config/hypr/scripts $AirplaneMode = $scriptsDir/AirplaneMode.sh $backlight = $scriptsDir/Brightness.sh $ChangeBlur = $scriptsDir/ChangeBlur.sh -$ChangeLayout = $scriptsDir/ChangeLayout.sh -$ChangeLayoutMenu = $scriptsDir/ChangeLayoutMenu.sh -$Clipboard = $scriptsDir/ClipManager.sh $DarkLight = $scriptsDir/DarkLight.sh -$GameMode = $scriptsDir/GameMode.sh -$Help = $scriptsDir/Help.sh $kbacklight = $scriptsDir/BrightnessKbd.sh $LidSwitch = $scriptsDir/LidSwitch.sh $LockScreen = $scriptsDir/LockScreen.sh $Media = $scriptsDir/MediaCtrl.sh -$QuickEdit = $scriptsDir/QuickEdit.sh $screenshot = $scriptsDir/ScreenShot.sh $touchpad = $scriptsDir/TouchPad.sh $volume = $scriptsDir/Volume.sh -$wallpaper = $scriptsDir/Wallpaper.sh -$wallpaperSelect = $scriptsDir/WallpaperSelect.sh $waybar = $scriptsDir/Waybar.sh -$waybarStyle = $scriptsDir/WaybarStyles.sh -$wlogout = $scriptsDir/Wlogout.sh -$Wofi = $scriptsDir/Wofi.sh -$WofiBeats = $scriptsDir/WofiBeats.sh -$WofiBig = $scriptsDir/WofiBig.sh -$WofiEmoji = $scriptsDir/WofiEmoji.sh + +bind = SUPER, Y, exec, rofi -show run -theme # see https://wiki.hyprland.org/Configuring/Binds/ for more bind = CTRL ALT, Delete, exec, hyprctl dispatch exit 0 bind = $mainMod SHIFT, C, exec, hyprctl reload -bind = $mainMod SHIFT, D, exec, $WofiBig -bind = $mainMod, D, exec, $Wofi +bind = $mainMod, D, exec, pkill rofi || rofi -show drun -modi run,drun,filebrowser +#bind = CTRL, D, exec, pkill rofi || rofi -dmenu bind = $mainMod SHIFT, Q, killactive, bind = $mainMod SHIFT, Space, togglefloating, bind = $mainMod, F, fullscreen bind = $mainMod, Q, killactive, bind = $mainMod, Return, exec, $term bind = $mainMod, T, exec, $files -bind = CTRL ALT, L, exec, $LockScreen -bind = CTRL ALT, P, exec, $wlogout -bind = $mainMod CTRL, S, exec, $WofiBeats -bind = $mainMod ALT, E, exec, $WofiEmoji -bind = $mainMod, W, exec, $wallpaper swaybg -bind = $mainMod SHIFT, W, exec, $waybarStyle -bind = $mainMod CTRL, W, exec, $wallpaperSelect -bind = $mainMod ALT, W, exec, $ChangeLayoutMenu -bind = $mainMod, H, exec, $Help -bind = $mainMod, E, exec, $QuickEdit +bind = CTRL ALT, L, exec, $scriptsDir/LockScreen.sh +bind = CTRL ALT, P, exec, $scriptsDir/Wlogout.sh +bind = $mainMod CTRL, S, exec, $scriptsDir/RofiBeats.sh +bind = $mainMod ALT, E, exec, $scriptsDir/RofiEmoji.sh +bind = $mainMod, W, exec, $scriptsDir/Wallpaper.sh swww +bind = $mainMod SHIFT, W, exec, $scriptsDir/WaybarStyles.sh +bind = $mainMod CTRL, W, exec, $scriptsDir/WallpaperSelect.sh +bind = $mainMod ALT, W, exec, $scriptsDir/ChangeLayoutMenu.sh +bind = $mainMod SHIFT, H, exec, $scriptsDir/Help.sh +bind = $mainMod, H, exec, $scriptsDir/KeyHints.sh +bind = $mainMod, E, exec, $scriptsDir/QuickEdit.sh bind = $mainMod, B, exec, killall -SIGUSR1 waybar # Toggle hide/show waybar -bind = $mainMod SHIFT, G, exec, $GameMode +bind = $mainMod SHIFT, G, exec, $scriptsDir/GameMode.sh #bind = $mainMod SHIFT, M, exec, hyprctl dispatch splitratio -0.3 #bind = $mainMod SHIFT, Y, exec, $term --class clock -T clock -e tty-clock -c -C 7 -r -s -f "%A, %B, %d" @@ -70,9 +59,9 @@ bind = $mainMod, K, layoutmsg, cycleprev bind = $mainMod, M, exec, hyprctl dispatch splitratio 0.3 bind = $mainMod, P, pseudo, # dwindle bind = $mainMod CTRL, Return, layoutmsg, swapwithmaster -bind = $mainMod, Space, exec, $ChangeLayout -bind = $mainMod ALT, V, exec, $Clipboard - +bind = $mainMod, Space, exec, $scriptsDir/ChangeLayout.sh +bind = $mainMod ALT, V, exec, $scriptsDir/ClipManager.sh +bind = $mainMod SHIFT, F, exec, hyprctl dispatch workspaceopt allfloat # group bind = $mainMod, G, togglegroup bind = $mainMod, tab, workspace, m+1 diff --git a/config/hypr/configs/Monitors.conf b/config/hypr/configs/Monitors.conf index 4587d6b..f7299e6 100644 --- a/config/hypr/configs/Monitors.conf +++ b/config/hypr/configs/Monitors.conf @@ -9,12 +9,11 @@ monitor=,preferred,auto,1 # my G15 Laptop #monitor = eDP-1, preferred, auto, 1 #monitor = eDP-1, 2560x1440@165, 0x0, 1 #own screen -#monitor = DP-2, preferred, auto, 1 #my Samsung Odyssey-G7 +#monitor = DP-2, preferred, auto, 1 #monitor = DP-1, preferred, auto, 1 #monitor = HDMI-A-1, preferred,auto,1 - -# QEMU +# QEMU-KVM or any virtual box #monitor = Virtual-1, 1920x1080@60,auto,1 # Hi Refresh Rate diff --git a/config/hypr/configs/Settings.conf b/config/hypr/configs/Settings.conf index 13d8bf1..87fb04d 100644 --- a/config/hypr/configs/Settings.conf +++ b/config/hypr/configs/Settings.conf @@ -2,7 +2,7 @@ ## JaKooLit Github - https://github.com/JaKooLit # blurls = waybar -blurls = wofi +#blurls = rofi dwindle { pseudotile = yes @@ -134,7 +134,7 @@ misc { enable_swallow = true no_direct_scanout = true #for fullscreen games focus_on_activate = false - swallow_regex = ^(foot)$ + swallow_regex = ^(kitty)$ } binds { diff --git a/config/hypr/configs/WindowRules.conf b/config/hypr/configs/WindowRules.conf index 8ca3396..42da0e2 100644 --- a/config/hypr/configs/WindowRules.conf +++ b/config/hypr/configs/WindowRules.conf @@ -3,12 +3,14 @@ windowrule = float, org.kde.polkit-kde-authentication-agent-1 windowrule = float, nm-connection-editor|blueman-manager -windowrule = float, viewnior|pavucontrol +windowrule = float, pavucontrol windowrule = float, nwg-look|qt5ct|mpv windowrule = float, onedriver|onedriver-launcher -windowrule = float, swayimg|zoom -windowrule = float, wofi +windowrule = float, viewnior|swayimg +windowrule = float, zoom +windowrule = float, rofi windowrule = float, gnome-system-monitor +windowrule = float, yad #windowrule = noblur,gamescope #windowrule = fullscreen,gamescope @@ -19,10 +21,13 @@ windowrule = center,^(pavucontrol) # Make sure to delete this line if uncommen t #windowrule = size 533 533,^(pavucontrol) # These are optionals. But recommended # windowrule v2 + +windowrulev2 = float, class:^([Vv]iewnior)$ + windowrulev2 = workspace 1, class:^(thunderbird)$ windowrulev2 = workspace 2, class:^(firefox)$ windowrulev2 = workspace 2, class:^(Firefox-esr)$ -windowrulev2 = workspace 2, class:^(Microsoft-edge-beta)$ #this is on arch +windowrulev2 = workspace 2, class:^(Microsoft-edge-beta)$ windowrulev2 = workspace 3, class:^([Tt]hunar)$ windowrulev2 = workspace 4, class:^(com.obsproject.Studio)$ windowrulev2 = workspace 5 silent, class:^([Ss]team)$,title:^([Ss]team)$ @@ -33,13 +38,21 @@ windowrulev2 = workspace 7 silent, class:^(WebCord)$ windowrulev2 = workspace 9 silent, class:^(audacious)$ #opacity (transparent) #enable as desired +windowrulev2 = opacity 0.9 0.6, class:^([Rr]ofi)$ windowrulev2 = opacity 0.9 0.7, class:^(firefox)$ windowrulev2 = opacity 0.9 0.7, class:^([Tt]hunar)$ +windowrulev2 = opacity 0.8 0.6, class:^(pcmanfm-qt)$ +windowrulev2 = opacity 0.9 0.7, class:^(gedit)$ #windowrulev2 = opacity 0.8 0.7, class:^(foot)$ +windowrulev2 = opacity 0.8 0.7, class:^(kitty)$ #windowrulev2 = opacity 0.9 0.7, class:^(mousepad)$ windowrulev2 = opacity 0.9 0.7, class:^(codium-url-handler)$ windowrulev2 = opacity 0.9 0.7, class:^(VSCodium)$ +windowrulev2 = opacity 0.9 0.7, class:^(yad)$ +#layerrule = unset,class:^([Rr]ofi)$ +#layerrule = blur,class:^([Rr]ofi)$ +#layerrule = ignorezero, #windowrulev2 = bordercolor rgb(EE4B55) rgb(880808), fullscreen:1 #windowrulev2 = bordercolor rgb(282737) rgb(1E1D2D), floating:1 diff --git a/config/hypr/initial-boot.sh b/config/hypr/initial-boot.sh new file mode 100644 index 0000000..d5ce323 --- /dev/null +++ b/config/hypr/initial-boot.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# THIS SCRIPT CAN BE DELETED ONCE BOOTED!! + +# A bash script designed to ran it only once dotfiles installed +# Check if a marker file exists. +if [ ! -f ~/.config/hypr/.initial_startup_done ]; then + + # Check if the ~/.cache/wal directory exists + if [ ! -d ~/.cache/wal ]; then + printf " Initializing pywal........\n\n" + # Check if the ~/Pictures/wallpapers directory exists + if [ -d ~/Pictures/wallpapers ]; then + # Run wal with random wallpapers from ~/Pictures/wallpapers + wal -i ~/Pictures/wallpapers/mecha-nostalgia.png + echo "Pywal initialized" + fi + fi + + #initial symlink for Pywal Dark and Light for Rofi Themes + ln -sf "$HOME/.cache/wal/colors-rofi-dark.rasi" "$HOME/.config/rofi/pywal-color/pywal-theme.rasi" + + # Initial scripts to load inorder to have a proper wallpaper waybar and pywal themes + exec $HOME/.config/hypr/scripts/Wallpaper.sh & + + # Create a marker file to indicate that the script has been executed. + touch ~/.config/hypr/.initial_startup_done +fi + + diff --git a/config/hypr/scripts/ChangeLayoutMenu.sh b/config/hypr/scripts/ChangeLayoutMenu.sh index 52e6aa3..bebe0c0 100755 --- a/config/hypr/scripts/ChangeLayoutMenu.sh +++ b/config/hypr/scripts/ChangeLayoutMenu.sh @@ -5,27 +5,6 @@ CONFIG="$HOME/.config/waybar/configs" WCONFIG="$HOME/.config/waybar/config" -#wofi configs -CONFIGB="$HOME/.config/wofi/WofiBig/config" -STYLE="$HOME/.config/wofi/style.css" -COLORS="$HOME/.config/wofi/colors" -WOFICONFIGS="$HOME/.config/wofi/configs" -WOFICONFIG="$HOME/.config/wofi/config" - -# wofi window config (in %) -WIDTH=12 -HEIGHT=40 - -## Wofi Command -wofi_command="wofi --show dmenu \ - --prompt choose... - --conf $CONFIGB --style $STYLE --color $COLORS \ - --width=$WIDTH% --height=$HEIGHT% \ - --cache-file=/dev/null \ - --hide-scroll --no-actions \ - --matching=fuzzy" - - menu(){ printf "1. default\n" printf "2. plasma-style\n" @@ -44,59 +23,46 @@ printf "14. no panel" } main() { - choice=$(menu | ${wofi_command} | cut -d. -f1) + choice=$(menu | rofi -dmenu -config ~/.config/rofi/config-long.rasi | cut -d. -f1) case $choice in 1) ln -sf "$CONFIG/config-default" "$WCONFIG" - ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG" ;; 2) ln -sf "$CONFIG/config-plasma" "$WCONFIG" - ln -sf "$WOFICONFIGS/config-plasma" "$WOFICONFIG" ;; 3) ln -sf "$CONFIG/config-gnome" "$WCONFIG" - ln -sf "$WOFICONFIGS/config-gnome" "$WOFICONFIG" ;; 4) ln -sf "$CONFIG/config-simple" "$WCONFIG" - ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG" ;; 5) ln -sf "$CONFIG/config-simple2" "$WCONFIG" - ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG" ;; 6) ln -sf "$CONFIG/config-dual" "$WCONFIG" - ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG" ;; 7) ln -sf "$CONFIG/config-left" "$WCONFIG" - ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG" ;; 8) ln -sf "$CONFIG/config-right" "$WCONFIG" - ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG" ;; 9) ln -sf "$CONFIG/config-dual-TL" "$WCONFIG" - ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG" ;; 10) ln -sf "$CONFIG/config-dual-TR" "$WCONFIG" - ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG" ;; 11) ln -sf "$CONFIG/config-dual-BL" "$WCONFIG" - ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG" ;; 12) ln -sf "$CONFIG/config-dual-BR" "$WCONFIG" - ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG" ;; 13) ln -sf "$CONFIG/config-all" "$WCONFIG" - ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG" ;; 14) if pgrep -x "waybar" >/dev/null; then @@ -109,9 +75,9 @@ main() { esac } -# Check if wofi is already running -if pidof wofi >/dev/null; then - pkill wofi +# Check if rofi is already running +if pidof rofi >/dev/null; then + pkill rofi exit 0 else main diff --git a/config/hypr/scripts/ClipManager.sh b/config/hypr/scripts/ClipManager.sh index a171b39..eb717ea 100755 --- a/config/hypr/scripts/ClipManager.sh +++ b/config/hypr/scripts/ClipManager.sh @@ -1,14 +1,9 @@ #!/bin/bash +# +# Clipboard Manager -# WOFI STYLES -CONFIG="$HOME/.config/wofi/WofiBig/config" -STYLE="$HOME/.config/wofi/style.css" -COLORS="$HOME/.config/wofi/colors" - -if [[ ! $(pidof wofi) ]]; then - cliphist list | wofi --show dmenu --prompt 'Search...' \ - --conf ${CONFIG} --style ${STYLE} --color ${COLORS} \ - --width=600 --height=400 | cliphist decode | wl-copy +if [[ ! $(pidof rofi) ]]; then + cliphist list | rofi -dmenu -config ~/.config/rofi/config-long.rasi | cliphist decode | wl-copy else - pkill wofi -fi \ No newline at end of file + pkill rofi +fi diff --git a/config/hypr/scripts/DarkLight-swaybg.sh b/config/hypr/scripts/DarkLight-swaybg.sh deleted file mode 100755 index ad8aa19..0000000 --- a/config/hypr/scripts/DarkLight-swaybg.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash -set -x -# Define the path -wallpaper_path="$HOME/Pictures/wallpapers/Dynamic-Wallpapers" -hypr_config_path="$HOME/.config/hypr" -waybar_config="$HOME/.config/waybar" -dunst_config="$HOME/.config/dunst" -wofi_config="$HOME/.config/wofi" - -# Tokyo Night -light_gtk_theme="Tokyonight-Light-B" -dark_gtk_theme="Tokyonight-Dark-B" -light_icon_theme="TokyoNight-SE" -dark_icon_theme="TokyoNight-SE" - -# Define functions for notifying user and updating symlinks -notify_user() { - notify-send -h string:x-canonical-private-synchronous:sys-notify -u normal "Switching to $1 mode" -} - -# Determine the current wallpaper mode by checking a configuration file -if [ "$(cat ~/.wallpaper_mode)" = "light" ]; then - current_mode="light" - next_mode="dark" -else - current_mode="dark" - next_mode="light" -fi -path_param=$(echo $next_mode | sed 's/.*/\u&/') - -notify_user "$next_mode" -ln -sf "${waybar_config}/style/style-${next_mode}.css" "${waybar_config}/style.css" -ln -sf "${dunst_config}/styles/dunstrc-${next_mode}" "${dunst_config}/styles/dunstrc" -ln -sf "${wofi_config}/styles/style-${next_mode}.css" "${wofi_config}/style.css" - -gtk_theme="${next_mode}_gtk_theme" -icon_theme="${next_mode}_icon_theme" - -gsettings set org.gnome.desktop.interface gtk-theme "${!gtk_theme}" -gsettings set org.gnome.desktop.interface icon-theme "${!icon_theme}" - -# Find the next wallpaper if one exists -current_wallpaper="$(cat ~/.current_wallpaper)" -next_wallpaper="${current_wallpaper/_"$current_mode"/_"$next_mode"}" - -if ! [ -f "$next_wallpaper" ]; then - next_wallpaper="$(find "${wallpaper_path/"${path_param}"}" -type f -iname "*_"${next_mode}".jpg" -print0 | shuf -n1 -z | xargs -0)" -fi - -swaybg -m fill -i "${next_wallpaper}" & - -# Update the configuration file to reflect the new wallpaper mode and current wallpaper -echo "$next_mode" > ~/.wallpaper_mode -echo "$next_wallpaper" > ~/.current_wallpaper - -sleep 2 -exec ~/.config/hypr/scripts/Refresh.sh & \ No newline at end of file diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 86c1f11..f20dc33 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -5,7 +5,10 @@ wallpaper_path="$HOME/Pictures/wallpapers/Dynamic-Wallpapers" hypr_config_path="$HOME/.config/hypr" waybar_config="$HOME/.config/waybar" dunst_config="$HOME/.config/dunst" -wofi_config="$HOME/.config/wofi" + +dark_rofi_pywal="$HOME/.cache/wal/colors-rofi-dark.rasi" +light_rofi_pywal="$HOME/.cache/wal/colors-rofi-light.rasi" + # Tokyo Night light_gtk_theme="Tokyonight-Light-B" @@ -28,7 +31,7 @@ notify_user() { } # Determine the current wallpaper mode by checking a configuration file -if [ "$(cat ~/.wallpaper_mode)" = "light" ]; then +if [ "$(cat ~/.cache/.wallpaper_mode)" = "light" ]; then current_mode="light" next_mode="dark" else @@ -38,9 +41,15 @@ fi path_param=$(echo $next_mode | sed 's/.*/\u&/') notify_user "$next_mode" -ln -sf "${waybar_config}/style/style-${next_mode}.css" "${waybar_config}/style.css" -ln -sf "${dunst_config}/styles/dunstrc-${next_mode}" "${dunst_config}/dunstrc" -ln -sf "${wofi_config}/styles/style-${next_mode}.css" "${wofi_config}/style.css" +ln -sf "${waybar_config}/style/style-pywal.css" "${waybar_config}/style.css" +ln -sf "${dunst_config}/styles/dunstrc-${next_mode}" "${dunst_config}/styles/dunstrc" + +# Symlink for rofi theme +if [ "$next_mode" = "dark" ]; then + ln -sf $dark_rofi_pywal "$HOME/.config/rofi/pywal-color/pywal-theme.rasi" +else + ln -sf $light_rofi_pywal "$HOME/.config/rofi/pywal-color/pywal-theme.rasi" +fi gtk_theme="${next_mode}_gtk_theme" icon_theme="${next_mode}_icon_theme" @@ -49,7 +58,7 @@ gsettings set org.gnome.desktop.interface gtk-theme "${!gtk_theme}" gsettings set org.gnome.desktop.interface icon-theme "${!icon_theme}" # Find the next wallpaper if one exists -current_wallpaper="$(cat ~/.current_wallpaper)" +current_wallpaper="$(cat ~/.cache/.current_wallpaper)" next_wallpaper="${current_wallpaper/_"$current_mode"/_"$next_mode"}" if ! [ -f "$next_wallpaper" ]; then @@ -59,8 +68,9 @@ fi $swww "${next_wallpaper}" $effect # Update the configuration file to reflect the new wallpaper mode and current wallpaper -echo "$next_mode" > ~/.wallpaper_mode -echo "$next_wallpaper" > ~/.current_wallpaper +echo "$next_mode" > ~/.cache/.wallpaper_mode +echo "$next_wallpaper" > ~/.cache/.current_wallpaper +exec ~/.config/hypr/scripts/PywalSwww.sh & sleep 2 exec ~/.config/hypr/scripts/Refresh.sh & \ No newline at end of file diff --git a/config/hypr/scripts/Help.sh b/config/hypr/scripts/Help.sh index 565e7e5..38bcdec 100755 --- a/config/hypr/scripts/Help.sh +++ b/config/hypr/scripts/Help.sh @@ -1,2 +1,3 @@ #!/bin/bash -foot -e vim ~/.config/hypr/HelpFile.md + +mousepad ~/.config/hypr/HelpFile.md diff --git a/config/hypr/scripts/KeyHints.sh b/config/hypr/scripts/KeyHints.sh new file mode 100755 index 0000000..d95c16e --- /dev/null +++ b/config/hypr/scripts/KeyHints.sh @@ -0,0 +1,38 @@ +#!/bin/sh + +yad --width=1000 --height=900 \ +--center \ +--title="Keybindings" \ +--no-buttons \ +--list \ +--column=Key: \ +--column=Description: \ +--column=Command: \ +--timeout=30 \ +--timeout-indicator=bottom \ +"ESC" "close this app" "๏—" "๏…ผ=๏…บ" "SUPER KEY" "(SUPER KEY)" \ +"๏…ผ enter" "Terminal" "(kitty)" \ +"๏…ผ D" "App Launcher" "(rofi)" \ +"๏…ผ T" "Open File Manager" "(Thunar)" \ +"๏…ผ Q or ๏…ผ Shift Q " "close focused app" "(kill)" \ +"๏…ผ Alt V" "Clipboard Manager" "(cliphist)" \ +"๏…ผ CTRL W" "Choose wallpaper" "(swww)" \ +"๏…ผ W" "Random wallpaper" "(swww)" \ +"๏…ผ ALT W" "Choose waybar layout" "(waybar layout)" \ +"๏…ผ SHIFT W" "cycle waybar styles" "(waybar styles)" \ +"๏…ผ Print" "screenshot" "(grim)" \ +"๏…ผ Shift Print" "screenshot region" "(grim + slurp)" \ +"๏…ผ Shift S" "screenshot region" "(swappy)" \ +"CTRL ALT P" "power-menu" "(wlogout)" \ +"CTRL ALT L" "screen lock" "(swaylock)" \ +"CTRL ALT Del" "Hyprland Exit" "(SAVE YOUR WORK!!!)" \ +"๏…ผ F" "Fullscreen" "Toggles to full screen" \ +"๏…ผ Spacebar" "Toggle Dwindle | Master Layout" "Hyprland Layout" \ +"๏…ผ Shift F" "Toggle all windows to float" "" \ +"๏…ผ SHIFT H" "Launch a small Help File" "" \ +"๏…ผ H" "Launch this app" "" \ +"๏…ผ E" "View or EDIT Keybinds, Settings, Monitor" "" \ +"" "" "" \ +"" "This window will auto-close in 30 secs" ""\ + + diff --git a/config/hypr/scripts/Polkit-NixOS.sh b/config/hypr/scripts/Polkit-NixOS.sh new file mode 100755 index 0000000..ef5e74f --- /dev/null +++ b/config/hypr/scripts/Polkit-NixOS.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Find all polkit-gnome executables in the Nix store +polkit_gnome_paths=$(find /nix/store -name 'polkit-gnome-authentication-agent-1' -type f 2>/dev/null) + +for polkit_gnome_path in $polkit_gnome_paths; do + # Extract the directory containing the executable + polkit_gnome_dir=$(dirname "$polkit_gnome_path") + + # Check if the executable is valid and exists + if [ -x "$polkit_gnome_dir/polkit-gnome-authentication-agent-1" ]; then + # Start the Polkit-GNOME Authentication Agent + "$polkit_gnome_dir/polkit-gnome-authentication-agent-1" & + exit 0 + fi +done + +# If no valid executable is found, report an error +echo "No valid Polkit-GNOME Authentication Agent executable found." \ No newline at end of file diff --git a/config/hypr/scripts/PortalHyprland.sh b/config/hypr/scripts/PortalHyprland.sh index 0142e77..70a994e 100755 --- a/config/hypr/scripts/PortalHyprland.sh +++ b/config/hypr/scripts/PortalHyprland.sh @@ -1,9 +1,9 @@ #!/bin/bash sleep 1 -pkill xdg-desktop-portal-hyprland -pkill xdg-desktop-portal-wlr -pkill xdg-desktop-portal-gnome -pkill xdg-desktop-portal +killall xdg-desktop-portal-hyprland +killall xdg-desktop-portal-wlr +killall xdg-desktop-portal-gnome +killall xdg-desktop-portal sleep 1 /usr/lib/xdg-desktop-portal-hyprland & /usr/libexec/xdg-desktop-portal-hyprland & diff --git a/config/hypr/scripts/PywalSwww.sh b/config/hypr/scripts/PywalSwww.sh new file mode 100755 index 0000000..1532878 --- /dev/null +++ b/config/hypr/scripts/PywalSwww.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# Define the path to the swww cache directory +cache_dir="$HOME/.cache/swww/" + +# Get a list of monitor outputs +monitor_outputs=($(ls "$cache_dir")) + +# Loop through monitor outputs +for output in "${monitor_outputs[@]}"; do + # Construct the full path to the cache file + cache_file="$cache_dir$output" + + # Check if the cache file exists for the current monitor output + if [ -f "$cache_file" ]; then + # Get the wallpaper path from the cache file + wallpaper_path=$(cat "$cache_file") + + # Copy the wallpaper to the location Rofi can access + cp "$wallpaper_path" "$HOME/.config/rofi/.current_wallpaper" + + break # Exit the loop after processing the first found monitor output + fi +done + + +# execute pywal + +wal -i $wallpaper_path \ No newline at end of file diff --git a/config/hypr/scripts/QuickEdit.sh b/config/hypr/scripts/QuickEdit.sh index 8738085..36213c5 100755 --- a/config/hypr/scripts/QuickEdit.sh +++ b/config/hypr/scripts/QuickEdit.sh @@ -1,25 +1,7 @@ #!/bin/bash -# WOFI STYLES -CONFIG="$HOME/.config/wofi/WofiBig/config" -STYLE="$HOME/.config/wofi/style.css" -COLORS="$HOME/.config/wofi/colors" - hyprDir="$HOME/.config/hypr/configs" -# wofi window config (in %) -WIDTH=10 -HEIGHT=20 - -## Wofi Command -wofi_command="wofi --show dmenu \ - --prompt choose to view or edit... - --conf $CONFIG --style $STYLE --color $COLORS \ - --width=$WIDTH% --height=$HEIGHT% \ - --cache-file=/dev/null \ - --hide-scroll --no-actions \ - --matching=fuzzy" - menu(){ printf "1. view Env-variables\n" printf "2. view Rules\n" @@ -30,25 +12,25 @@ menu(){ } main() { - choice=$(menu | ${wofi_command} | cut -d. -f1) + choice=$(menu | rofi -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1) case $choice in 1) - foot -e vim "$hyprDir/ENVariables.conf" + kitty -e nano "$hyprDir/ENVariables.conf" ;; 2) - foot -e vim "$hyprDir/WindowRules.conf" + kitty -e nano "$hyprDir/WindowRules.conf" ;; 3) - foot -e vim "$hyprDir/Execs.conf" + kitty -e nano "$hyprDir/Execs.conf" ;; 4) - foot -e vim "$hyprDir/Keybinds.conf" + kitty -e nano "$hyprDir/Keybinds.conf" ;; 5) - foot -e vim "$hyprDir/Monitors.conf" + kitty -e nano "$hyprDir/Monitors.conf" ;; 6) - foot -e vim "$hyprDir/Settings.conf" + kitty -e nano "$hyprDir/Settings.conf" ;; *) ;; diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh index 0d32ba6..8b9597d 100755 --- a/config/hypr/scripts/Refresh.sh +++ b/config/hypr/scripts/Refresh.sh @@ -3,7 +3,7 @@ SCRIPTSDIR=$HOME/.config/hypr/scripts # Kill already running process -_ps=(waybar mako dunst wofi) +_ps=(waybar mako dunst rofi) for _prs in "${_ps[@]}"; do if [[ $(pidof ${_prs}) ]]; then pkill ${_prs} diff --git a/config/hypr/scripts/WofiBeats.sh b/config/hypr/scripts/RofiBeats.sh similarity index 80% rename from config/hypr/scripts/WofiBeats.sh rename to config/hypr/scripts/RofiBeats.sh index 0a3b573..37c1bba 100755 --- a/config/hypr/scripts/WofiBeats.sh +++ b/config/hypr/scripts/RofiBeats.sh @@ -1,22 +1,7 @@ #!/bin/bash ## Files -CONFIG="$HOME/.config/wofi/WofiBig/config" -STYLE="$HOME/.config/wofi/style.css" -COLORS="$HOME/.config/wofi/colors" -iDIR="$HOME/.config/dunst/icons" - -# wofi window config (in %) -WIDTH=12 -HEIGHT=30 -## Wofi Command -wofi_command="wofi --show dmenu \ - --prompt choose... - --conf $CONFIG --style $STYLE --color $COLORS \ - --width=$WIDTH% --height=$HEIGHT% \ - --cache-file=/dev/null \ - --hide-scroll --no-actions \ - --matching=fuzzy" +iDIR="$HOME/.config/dunst/icons" notification(){ notify-send -h string:x-canonical-private-synchronous:sys-notify -u normal -i "$iDIR/music.png" "Playing now: " "$@" @@ -34,7 +19,8 @@ printf "8. Youtube Remix\n" printf "9. Korean Drama OST" } main() { -choice=$(menu | ${wofi_command} | cut -d. -f1) +choice=$(menu | rofi -dmenu -config ~/.config/rofi/config-rofi-Beats.rasi | cut -d. -f1) + case $choice in 1) notification "Lofi Girl โ˜•๏ธ๐ŸŽถ"; diff --git a/config/hypr/scripts/WofiEmoji.sh b/config/hypr/scripts/RofiEmoji.sh similarity index 99% rename from config/hypr/scripts/WofiEmoji.sh rename to config/hypr/scripts/RofiEmoji.sh index 88c1b19..4540f57 100755 --- a/config/hypr/scripts/WofiEmoji.sh +++ b/config/hypr/scripts/RofiEmoji.sh @@ -1,16 +1,7 @@ #!/bin/bash -# WOFI STYLES -CONFIG="$HOME/.config/wofi/WofiBig/config" -STYLE="$HOME/.config/wofi/style.css" -COLORS="$HOME/.config/wofi/colors" - -# wofi window config (in %) -WIDTH=40 -HEIGHT=40 - sed '1,/^### DATA ###$/d' $0 | -wofi --show dmenu -i --conf ${CONFIG} --style ${STYLE} --color ${COLORS} --width=$WIDTH% --height=$HEIGHT% | +rofi -dmenu | cut -d ' ' -f 1 | tr -d '\n' | wl-copy exit diff --git a/config/hypr/scripts/Wallpaper.sh b/config/hypr/scripts/Wallpaper.sh index db18626..20c367c 100755 --- a/config/hypr/scripts/Wallpaper.sh +++ b/config/hypr/scripts/Wallpaper.sh @@ -45,4 +45,8 @@ case "$1" in *) change_current ;; -esac \ No newline at end of file +esac + +exec $HOME/.config/hypr/scripts/PywalSwww.sh & +sleep 1 +exec $HOME/.config/hypr/scripts/Refresh.sh \ No newline at end of file diff --git a/config/hypr/scripts/WallpaperSelect.sh b/config/hypr/scripts/WallpaperSelect.sh index fbe65d3..f56f6df 100755 --- a/config/hypr/scripts/WallpaperSelect.sh +++ b/config/hypr/scripts/WallpaperSelect.sh @@ -8,10 +8,6 @@ FPS=30 TYPE="simple" DURATION=3 -# wofi window config (in %) -WIDTH=10 -HEIGHT=30 - SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION" PICS=($(ls ${DIR} | grep -e ".jpg$" -e ".jpeg$" -e ".png$" -e ".gif$")) @@ -20,24 +16,13 @@ PICS=($(ls ${DIR} | grep -e ".jpg$" -e ".jpeg$" -e ".png$" -e ".gif$")) RANDOM_PIC=${PICS[ $RANDOM % ${#PICS[@]} ]} RANDOM_PIC_NAME="${#PICS[@]}. random" -# WOFI STYLES -CONFIG="$HOME/.config/wofi/WofiBig/config" -STYLE="$HOME/.config/wofi/style.css" -COLORS="$HOME/.config/wofi/colors" - # to check if swaybg is running if [[ $(pidof swaybg) ]]; then pkill swaybg fi -## Wofi Command -wofi_command="wofi --show dmenu \ - --prompt choose... - --conf $CONFIG --style $STYLE --color $COLORS \ - --width=$WIDTH% --height=$HEIGHT% \ - --cache-file=/dev/null \ - --hide-scroll --no-actions \ - --matching=fuzzy" +## Rofi Command +rofi_command="rofi -dmenu -config ~/.config/rofi/config-short.rasi" menu(){ # Here we are looping in the PICS array that is composed of all images in the $DIR folder @@ -56,7 +41,7 @@ menu(){ swww query || swww init main() { - choice=$(menu | ${wofi_command}) + choice=$(menu | ${rofi_command}) # no choice case if [[ -z $choice ]]; then return; fi @@ -71,14 +56,18 @@ main() { swww img ${DIR}/${PICS[$pic_index]} $SWWW_PARAMS } -# Check if wofi is already running -if pidof wofi >/dev/null; then - pkill wofi +# Check if rofi is already running +if pidof rofi >/dev/null; then + pkill rofi exit 0 else main fi +exec $HOME/.config/hypr/scripts/PywalSwww.sh & + +exec $HOME/.config/hypr/scripts/Refresh.sh + # Uncomment to launch something if a choice was made # if [[ -n "$choice" ]]; then # Restart Waybar diff --git a/config/hypr/scripts/WaybarStyles.sh b/config/hypr/scripts/WaybarStyles.sh index 3bfb368..b6819ed 100755 --- a/config/hypr/scripts/WaybarStyles.sh +++ b/config/hypr/scripts/WaybarStyles.sh @@ -17,7 +17,9 @@ elif [ "$THEMEIS" == "mauve" ]; then elif [ "$THEMEIS" == "light" ]; then SWITCHTO="-dark" elif [ "$THEMEIS" == "dark" ]; then - SWITCHTO="-uline" + SWITCHTO="-uline" +elif [ "$THEMEIS" == "uline" ]; then + SWITCHTO="-pywal" else SWITCHTO="-default" fi diff --git a/config/hypr/scripts/Weather.py b/config/hypr/scripts/Weather.py index a364f7e..154c158 100755 --- a/config/hypr/scripts/Weather.py +++ b/config/hypr/scripts/Weather.py @@ -61,7 +61,7 @@ WEATHER_CODES = { data = {} -weather = requests.get("https://wttr.in/{city}?format=j1").json() +weather = requests.get(f"https://wttr.in/{city}?format=j1").json() def format_time(time): diff --git a/config/hypr/scripts/Wofi.sh b/config/hypr/scripts/Wofi.sh deleted file mode 100755 index 9b78bee..0000000 --- a/config/hypr/scripts/Wofi.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -CONFIG="$HOME/.config/wofi/config" -STYLE="$HOME/.config/wofi/style.css" -COLORS="$HOME/.config/wofi/colors" - -if [[ ! $(pidof wofi) ]]; then - wofi --show drun --prompt 'Search...' --conf ${CONFIG} --style ${STYLE} --color ${COLORS} -else - pkill wofi -fi diff --git a/config/hypr/scripts/WofiBig.sh b/config/hypr/scripts/WofiBig.sh deleted file mode 100755 index 31d9890..0000000 --- a/config/hypr/scripts/WofiBig.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -CONFIG="$HOME/.config/wofi/WofiBig/config" -STYLE="$HOME/.config/wofi/style.css" -COLORS="$HOME/.config/wofi/colors" - -if [[ ! $(pidof wofi) ]]; then - wofi --show drun --prompt 'Search...' --conf ${CONFIG} --style ${STYLE} --color ${COLORS} -else - pkill wofi -fi diff --git a/config/kitty/kitty.conf b/config/kitty/kitty.conf new file mode 100644 index 0000000..2ae87ee --- /dev/null +++ b/config/kitty/kitty.conf @@ -0,0 +1,13 @@ +include ~/.cache/wal/colors-kitty.conf + +font_family Fira Code SemiBold +font_size 12.0 +bold_font auto +italic_font auto +bold_italic_font auto + +background_opacity 0.7 + +confirm_os_window_close 0 + +enable_audio_bell no \ No newline at end of file diff --git a/config/rofi/.current_wallpaper b/config/rofi/.current_wallpaper new file mode 100644 index 0000000..53f3784 Binary files /dev/null and b/config/rofi/.current_wallpaper differ diff --git a/config/rofi/config-cliphist.rasi b/config/rofi/config-cliphist.rasi new file mode 100644 index 0000000..c92eed9 --- /dev/null +++ b/config/rofi/config-cliphist.rasi @@ -0,0 +1,240 @@ +/* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ + +/* ---- Configuration ---- */ +configuration { + modi: "drun,run"; + font: "Fira Code SemiBold 12"; + show-icons: true; + display-drun: "๎ฏ†"; + display-run: "๏„ "; + display-filebrowser: "๏ป"; + display-window: "๏‹"; + drun-display-format: "{name}"; + hover-select: true; + me-select-entry: "MouseSecondary"; + me-accept-entry: "MousePrimary"; + window-format: "{w} ยท {c} ยท {t}"; + +} + +/* ---- Load pywal colors (custom wal template) ---- */ +@import "~/.config/rofi/pywal-color/pywal-theme.rasi" + +/* ---- Window ---- */ +window { + width: 30%; + height: 30%; + x-offset: 0px; + y-offset: 0px; + spacing: 0px; + padding: 0px; + margin: 0px; + color: transparent; + border: 2px; + border-color: @background; + cursor: "default"; + transparency: "real"; + location: center; + anchor: center; + fullscreen: false; + enabled: true; + border-radius: 10px; +} + +/* ---- Mainbox ---- */ +mainbox { + enabled: true; + orientation: horizontal; + spacing: 0px; + margin: 0px; + background-color: transparent; + background-image: url("~/.config/rofi/.current_wallpaper", height); + children: [ "imagebox", "listbox" ]; +} + +/* ---- Imagebox ---- */ +imagebox { + padding: 18px; + background-color: transparent; + orientation: vertical; + children: [ "inputbar", "dummy", "mode-switcher" ]; +} + +/* ---- Listbox ---- */ +listbox { + spacing: 20px; + background-color: transparent; + orientation: vertical; + children: [ "message", "listview" ]; +} +/* ---- Dummy ---- */ +dummy { + background-color: transparent; +} + +/* ---- Inputbar ---- */ +inputbar { + enabled: true; + text-color: @foreground; + spacing: 10px; + padding: 15px; + border-radius: 10px; + border-color: @foreground; + children: [ "textbox-prompt-colon", "entry" ]; +} + +textbox-prompt-colon { + enabled: true; + expand: false; + str: "๐Ÿ”Ž "; + text-color: inherit; +} + +entry { + enabled: true; + background-color: transparent; + text-color: inherit; + cursor: text; + placeholder: "Choose"; + placeholder-color: inherit; +} + +/* ---- Mode Switcher ---- */ +mode-switcher{ + enabled: true; + spacing: 20px; + background-color: transparent; + text-color: @foreground; +} + +button { + padding: 10px; + border-radius: 10px; + background-color: @background; + text-color: inherit; + cursor: pointer; + border: 0px; +} + +button selected { + background-color: @selected-normal-background; + text-color: @foreground; +} + +/* ---- Listview ---- */ +listview { + enabled: true; + columns: 1; + lines: 8; + cycle: true; + dynamic: true; + scrollbar: false; + layout: vertical; + reverse: false; + fixed-height: true; + fixed-columns: true; + spacing: 0px; + padding: 10px; + margin: 0px; + border-radius: 10px; + border: 0px; + background-image: url("~/.config/rofi/.current_wallpaper", height); +} + +/* ---- Element ---- */ +element { + enabled: true; + padding: 5px; + margin: 2px; + cursor: pointer; + background-color: @background; + border-radius: 10px; + border: 0px; +} + +element normal.normal { + background-color: inherit; + text-color: @foreground; +} + +element normal.urgent { + background-color: inherit; + text-color: @foreground; +} + +element normal.active { + background-color: inherit; + text-color: @foreground; +} + +element selected.normal { + background-color: @selected-normal-background; + text-color: @foreground; +} + +element selected.urgent { + background-color: inherit; + text-color: @foreground; +} + +element selected.active { + background-color: inherit; + text-color: @foreground; +} + +element alternate.normal { + background-color: inherit; + text-color: @foreground; +} + +element alternate.urgent { + background-color: inherit; + text-color: @foreground; +} + +element alternate.active { + background-color: inherit; + text-color: @foreground; +} + +element-icon { + background-color: transparent; + text-color: inherit; + size: 32px; + cursor: inherit; +} + +element-text { + background-color: transparent; + text-color: inherit; + cursor: inherit; + vertical-align: 0.5; + horizontal-align: 0.0; +} + +/*****----- Message -----*****/ +message { + background-color: transparent; + border: 0px; + margin: 20px 0px 0px 0px; + padding: 0px; + spacing: 0px; + border-radius: 10px; +} + +textbox { + padding: 15px; + margin: 0px; + border-radius: 0px; + background-color: @background; + text-color: @foreground; + vertical-align: 0.5; + horizontal-align: 0.0; +} + +error-message { + padding: 15px; + border-radius: 20px; + background-color: @background; + text-color: @foreground; +} diff --git a/config/rofi/config-compact.rasi b/config/rofi/config-compact.rasi new file mode 100644 index 0000000..c92eed9 --- /dev/null +++ b/config/rofi/config-compact.rasi @@ -0,0 +1,240 @@ +/* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ + +/* ---- Configuration ---- */ +configuration { + modi: "drun,run"; + font: "Fira Code SemiBold 12"; + show-icons: true; + display-drun: "๎ฏ†"; + display-run: "๏„ "; + display-filebrowser: "๏ป"; + display-window: "๏‹"; + drun-display-format: "{name}"; + hover-select: true; + me-select-entry: "MouseSecondary"; + me-accept-entry: "MousePrimary"; + window-format: "{w} ยท {c} ยท {t}"; + +} + +/* ---- Load pywal colors (custom wal template) ---- */ +@import "~/.config/rofi/pywal-color/pywal-theme.rasi" + +/* ---- Window ---- */ +window { + width: 30%; + height: 30%; + x-offset: 0px; + y-offset: 0px; + spacing: 0px; + padding: 0px; + margin: 0px; + color: transparent; + border: 2px; + border-color: @background; + cursor: "default"; + transparency: "real"; + location: center; + anchor: center; + fullscreen: false; + enabled: true; + border-radius: 10px; +} + +/* ---- Mainbox ---- */ +mainbox { + enabled: true; + orientation: horizontal; + spacing: 0px; + margin: 0px; + background-color: transparent; + background-image: url("~/.config/rofi/.current_wallpaper", height); + children: [ "imagebox", "listbox" ]; +} + +/* ---- Imagebox ---- */ +imagebox { + padding: 18px; + background-color: transparent; + orientation: vertical; + children: [ "inputbar", "dummy", "mode-switcher" ]; +} + +/* ---- Listbox ---- */ +listbox { + spacing: 20px; + background-color: transparent; + orientation: vertical; + children: [ "message", "listview" ]; +} +/* ---- Dummy ---- */ +dummy { + background-color: transparent; +} + +/* ---- Inputbar ---- */ +inputbar { + enabled: true; + text-color: @foreground; + spacing: 10px; + padding: 15px; + border-radius: 10px; + border-color: @foreground; + children: [ "textbox-prompt-colon", "entry" ]; +} + +textbox-prompt-colon { + enabled: true; + expand: false; + str: "๐Ÿ”Ž "; + text-color: inherit; +} + +entry { + enabled: true; + background-color: transparent; + text-color: inherit; + cursor: text; + placeholder: "Choose"; + placeholder-color: inherit; +} + +/* ---- Mode Switcher ---- */ +mode-switcher{ + enabled: true; + spacing: 20px; + background-color: transparent; + text-color: @foreground; +} + +button { + padding: 10px; + border-radius: 10px; + background-color: @background; + text-color: inherit; + cursor: pointer; + border: 0px; +} + +button selected { + background-color: @selected-normal-background; + text-color: @foreground; +} + +/* ---- Listview ---- */ +listview { + enabled: true; + columns: 1; + lines: 8; + cycle: true; + dynamic: true; + scrollbar: false; + layout: vertical; + reverse: false; + fixed-height: true; + fixed-columns: true; + spacing: 0px; + padding: 10px; + margin: 0px; + border-radius: 10px; + border: 0px; + background-image: url("~/.config/rofi/.current_wallpaper", height); +} + +/* ---- Element ---- */ +element { + enabled: true; + padding: 5px; + margin: 2px; + cursor: pointer; + background-color: @background; + border-radius: 10px; + border: 0px; +} + +element normal.normal { + background-color: inherit; + text-color: @foreground; +} + +element normal.urgent { + background-color: inherit; + text-color: @foreground; +} + +element normal.active { + background-color: inherit; + text-color: @foreground; +} + +element selected.normal { + background-color: @selected-normal-background; + text-color: @foreground; +} + +element selected.urgent { + background-color: inherit; + text-color: @foreground; +} + +element selected.active { + background-color: inherit; + text-color: @foreground; +} + +element alternate.normal { + background-color: inherit; + text-color: @foreground; +} + +element alternate.urgent { + background-color: inherit; + text-color: @foreground; +} + +element alternate.active { + background-color: inherit; + text-color: @foreground; +} + +element-icon { + background-color: transparent; + text-color: inherit; + size: 32px; + cursor: inherit; +} + +element-text { + background-color: transparent; + text-color: inherit; + cursor: inherit; + vertical-align: 0.5; + horizontal-align: 0.0; +} + +/*****----- Message -----*****/ +message { + background-color: transparent; + border: 0px; + margin: 20px 0px 0px 0px; + padding: 0px; + spacing: 0px; + border-radius: 10px; +} + +textbox { + padding: 15px; + margin: 0px; + border-radius: 0px; + background-color: @background; + text-color: @foreground; + vertical-align: 0.5; + horizontal-align: 0.0; +} + +error-message { + padding: 15px; + border-radius: 20px; + background-color: @background; + text-color: @foreground; +} diff --git a/config/rofi/config-long.rasi b/config/rofi/config-long.rasi new file mode 100644 index 0000000..fa41def --- /dev/null +++ b/config/rofi/config-long.rasi @@ -0,0 +1,240 @@ +/* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ + +/* ---- Configuration ---- */ +configuration { + modi: "drun,run"; + font: "Fira Code SemiBold 12"; + show-icons: true; + display-drun: "๎ฏ†"; + display-run: "๏„ "; + display-filebrowser: "๏ป"; + display-window: "๏‹"; + drun-display-format: "{name}"; + hover-select: true; + me-select-entry: "MouseSecondary"; + me-accept-entry: "MousePrimary"; + window-format: "{w} ยท {c} ยท {t}"; + +} + +/* ---- Load pywal colors (custom wal template) ---- */ +@import "~/.config/rofi/pywal-color/pywal-theme.rasi" + +/* ---- Window ---- */ +window { + width: 20%; + height: 50%; + x-offset: 0px; + y-offset: 0px; + spacing: 0px; + padding: 0px; + margin: 0px; + color: transparent; + border: 2px; + border-color: @background; + cursor: "default"; + transparency: "real"; + location: center; + anchor: center; + fullscreen: false; + enabled: true; + border-radius: 10px; +} + +/* ---- Mainbox ---- */ +mainbox { + enabled: true; + orientation: horizontal; + spacing: 0px; + margin: 0px; + background-color: transparent; + background-image: url("~/.config/rofi/.current_wallpaper", height); + children: [ "listbox" ]; +} + +/* ---- Imagebox ---- */ +imagebox { + padding: 18px; + background-color: transparent; + orientation: vertical; + children: [ "inputbar", "dummy", "mode-switcher" ]; +} + +/* ---- Listbox ---- */ +listbox { + spacing: 20px; + background-color: transparent; + orientation: vertical; + children: [ "inputbar", "message", "listview" ]; +} +/* ---- Dummy ---- */ +dummy { + background-color: transparent; +} + +/* ---- Inputbar ---- */ +inputbar { + enabled: true; + text-color: @foreground; + spacing: 10px; + padding: 15px; + border-radius: 10px; + border-color: @foreground; + children: [ "textbox-prompt-colon", "entry" ]; +} + +textbox-prompt-colon { + enabled: true; + expand: false; + str: "๐Ÿ”Ž "; + text-color: inherit; +} + +entry { + enabled: true; + background-color: transparent; + text-color: inherit; + cursor: text; + placeholder: "Choose"; + placeholder-color: inherit; +} + +/* ---- Mode Switcher ---- */ +mode-switcher{ + enabled: true; + spacing: 20px; + background-color: transparent; + text-color: @foreground; +} + +button { + padding: 10px; + border-radius: 10px; + background-color: @background; + text-color: inherit; + cursor: pointer; + border: 0px; +} + +button selected { + background-color: @selected-normal-background; + text-color: @foreground; +} + +/* ---- Listview ---- */ +listview { + enabled: true; + columns: 1; + lines: 12; + cycle: true; + dynamic: true; + scrollbar: false; + layout: vertical; + reverse: false; + fixed-height: true; + fixed-columns: true; + spacing: 0px; + padding: 10px; + margin: 0px; + border-radius: 10px; + border: 0px; + background-image: url("~/.config/rofi/.current_wallpaper", height); +} + +/* ---- Element ---- */ +element { + enabled: true; + padding: 5px; + margin: 2px; + cursor: pointer; + background-color: @background; + border-radius: 10px; + border: 0px; +} + +element normal.normal { + background-color: inherit; + text-color: @foreground; +} + +element normal.urgent { + background-color: inherit; + text-color: @foreground; +} + +element normal.active { + background-color: inherit; + text-color: @foreground; +} + +element selected.normal { + background-color: @selected-normal-background; + text-color: @foreground; +} + +element selected.urgent { + background-color: inherit; + text-color: @foreground; +} + +element selected.active { + background-color: inherit; + text-color: @foreground; +} + +element alternate.normal { + background-color: inherit; + text-color: @foreground; +} + +element alternate.urgent { + background-color: inherit; + text-color: @foreground; +} + +element alternate.active { + background-color: inherit; + text-color: @foreground; +} + +element-icon { + background-color: transparent; + text-color: inherit; + size: 32px; + cursor: inherit; +} + +element-text { + background-color: transparent; + text-color: inherit; + cursor: inherit; + vertical-align: 0.5; + horizontal-align: 0.0; +} + +/*****----- Message -----*****/ +message { + background-color: transparent; + border: 0px; + margin: 20px 0px 0px 0px; + padding: 0px; + spacing: 0px; + border-radius: 10px; +} + +textbox { + padding: 15px; + margin: 0px; + border-radius: 0px; + background-color: @background; + text-color: @foreground; + vertical-align: 0.5; + horizontal-align: 0.0; +} + +error-message { + padding: 15px; + border-radius: 20px; + background-color: @background; + text-color: @foreground; +} diff --git a/config/rofi/config-rofi-Beats.rasi b/config/rofi/config-rofi-Beats.rasi new file mode 100644 index 0000000..4830c97 --- /dev/null +++ b/config/rofi/config-rofi-Beats.rasi @@ -0,0 +1,240 @@ +/* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ + +/* ---- Configuration ---- */ +configuration { + modi: "drun,run"; + font: "Fira Code SemiBold 12"; + show-icons: true; + display-drun: "๎ฏ†"; + display-run: "๏„ "; + display-filebrowser: "๏ป"; + display-window: "๏‹"; + drun-display-format: "{name}"; + hover-select: true; + me-select-entry: "MouseSecondary"; + me-accept-entry: "MousePrimary"; + window-format: "{w} ยท {c} ยท {t}"; + +} + +/* ---- Load pywal colors (custom wal template) ---- */ +@import "~/.config/rofi/pywal-color/pywal-theme.rasi" + +/* ---- Window ---- */ +window { + width: 30%; + height: 34%; + x-offset: 0px; + y-offset: 0px; + spacing: 0px; + padding: 0px; + margin: 0px; + color: transparent; + border: 2px; + border-color: @background; + cursor: "default"; + transparency: "real"; + location: center; + anchor: center; + fullscreen: false; + enabled: true; + border-radius: 10px; +} + +/* ---- Mainbox ---- */ +mainbox { + enabled: true; + orientation: horizontal; + spacing: 0px; + margin: 0px; + background-color: transparent; + background-image: url("~/.config/rofi/.current_wallpaper", height); + children: [ "imagebox", "listbox" ]; +} + +/* ---- Imagebox ---- */ +imagebox { + padding: 18px; + background-color: transparent; + orientation: vertical; + children: [ "inputbar", "dummy", "mode-switcher" ]; +} + +/* ---- Listbox ---- */ +listbox { + spacing: 20px; + background-color: transparent; + orientation: vertical; + children: [ "message", "listview" ]; +} +/* ---- Dummy ---- */ +dummy { + background-color: transparent; +} + +/* ---- Inputbar ---- */ +inputbar { + enabled: true; + text-color: @foreground; + spacing: 10px; + padding: 15px; + border-radius: 10px; + border-color: @foreground; + children: [ "textbox-prompt-colon", "entry" ]; +} + +textbox-prompt-colon { + enabled: true; + expand: false; + str: "๐Ÿ”Ž "; + text-color: inherit; +} + +entry { + enabled: true; + background-color: transparent; + text-color: inherit; + cursor: text; + placeholder: "Choose"; + placeholder-color: inherit; +} + +/* ---- Mode Switcher ---- */ +mode-switcher{ + enabled: true; + spacing: 20px; + background-color: transparent; + text-color: @foreground; +} + +button { + padding: 10px; + border-radius: 10px; + background-color: @background; + text-color: inherit; + cursor: pointer; + border: 0px; +} + +button selected { + background-color: @selected-normal-background; + text-color: @foreground; +} + +/* ---- Listview ---- */ +listview { + enabled: true; + columns: 1; + lines: 8; + cycle: true; + dynamic: true; + scrollbar: false; + layout: vertical; + reverse: false; + fixed-height: true; + fixed-columns: true; + spacing: 0px; + padding: 10px; + margin: 0px; + border-radius: 10px; + border: 0px; + background-image: url("~/.config/rofi/.current_wallpaper", height); +} + +/* ---- Element ---- */ +element { + enabled: true; + padding: 5px; + margin: 2px; + cursor: pointer; + background-color: @background; + border-radius: 10px; + border: 0px; +} + +element normal.normal { + background-color: inherit; + text-color: @foreground; +} + +element normal.urgent { + background-color: inherit; + text-color: @foreground; +} + +element normal.active { + background-color: inherit; + text-color: @foreground; +} + +element selected.normal { + background-color: @selected-normal-background; + text-color: @foreground; +} + +element selected.urgent { + background-color: inherit; + text-color: @foreground; +} + +element selected.active { + background-color: inherit; + text-color: @foreground; +} + +element alternate.normal { + background-color: inherit; + text-color: @foreground; +} + +element alternate.urgent { + background-color: inherit; + text-color: @foreground; +} + +element alternate.active { + background-color: inherit; + text-color: @foreground; +} + +element-icon { + background-color: transparent; + text-color: inherit; + size: 32px; + cursor: inherit; +} + +element-text { + background-color: transparent; + text-color: inherit; + cursor: inherit; + vertical-align: 0.5; + horizontal-align: 0.0; +} + +/*****----- Message -----*****/ +message { + background-color: transparent; + border: 0px; + margin: 20px 0px 0px 0px; + padding: 0px; + spacing: 0px; + border-radius: 10px; +} + +textbox { + padding: 15px; + margin: 0px; + border-radius: 0px; + background-color: @background; + text-color: @foreground; + vertical-align: 0.5; + horizontal-align: 0.0; +} + +error-message { + padding: 15px; + border-radius: 20px; + background-color: @background; + text-color: @foreground; +} diff --git a/config/rofi/config-short.rasi b/config/rofi/config-short.rasi new file mode 100644 index 0000000..fa41def --- /dev/null +++ b/config/rofi/config-short.rasi @@ -0,0 +1,240 @@ +/* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ + +/* ---- Configuration ---- */ +configuration { + modi: "drun,run"; + font: "Fira Code SemiBold 12"; + show-icons: true; + display-drun: "๎ฏ†"; + display-run: "๏„ "; + display-filebrowser: "๏ป"; + display-window: "๏‹"; + drun-display-format: "{name}"; + hover-select: true; + me-select-entry: "MouseSecondary"; + me-accept-entry: "MousePrimary"; + window-format: "{w} ยท {c} ยท {t}"; + +} + +/* ---- Load pywal colors (custom wal template) ---- */ +@import "~/.config/rofi/pywal-color/pywal-theme.rasi" + +/* ---- Window ---- */ +window { + width: 20%; + height: 50%; + x-offset: 0px; + y-offset: 0px; + spacing: 0px; + padding: 0px; + margin: 0px; + color: transparent; + border: 2px; + border-color: @background; + cursor: "default"; + transparency: "real"; + location: center; + anchor: center; + fullscreen: false; + enabled: true; + border-radius: 10px; +} + +/* ---- Mainbox ---- */ +mainbox { + enabled: true; + orientation: horizontal; + spacing: 0px; + margin: 0px; + background-color: transparent; + background-image: url("~/.config/rofi/.current_wallpaper", height); + children: [ "listbox" ]; +} + +/* ---- Imagebox ---- */ +imagebox { + padding: 18px; + background-color: transparent; + orientation: vertical; + children: [ "inputbar", "dummy", "mode-switcher" ]; +} + +/* ---- Listbox ---- */ +listbox { + spacing: 20px; + background-color: transparent; + orientation: vertical; + children: [ "inputbar", "message", "listview" ]; +} +/* ---- Dummy ---- */ +dummy { + background-color: transparent; +} + +/* ---- Inputbar ---- */ +inputbar { + enabled: true; + text-color: @foreground; + spacing: 10px; + padding: 15px; + border-radius: 10px; + border-color: @foreground; + children: [ "textbox-prompt-colon", "entry" ]; +} + +textbox-prompt-colon { + enabled: true; + expand: false; + str: "๐Ÿ”Ž "; + text-color: inherit; +} + +entry { + enabled: true; + background-color: transparent; + text-color: inherit; + cursor: text; + placeholder: "Choose"; + placeholder-color: inherit; +} + +/* ---- Mode Switcher ---- */ +mode-switcher{ + enabled: true; + spacing: 20px; + background-color: transparent; + text-color: @foreground; +} + +button { + padding: 10px; + border-radius: 10px; + background-color: @background; + text-color: inherit; + cursor: pointer; + border: 0px; +} + +button selected { + background-color: @selected-normal-background; + text-color: @foreground; +} + +/* ---- Listview ---- */ +listview { + enabled: true; + columns: 1; + lines: 12; + cycle: true; + dynamic: true; + scrollbar: false; + layout: vertical; + reverse: false; + fixed-height: true; + fixed-columns: true; + spacing: 0px; + padding: 10px; + margin: 0px; + border-radius: 10px; + border: 0px; + background-image: url("~/.config/rofi/.current_wallpaper", height); +} + +/* ---- Element ---- */ +element { + enabled: true; + padding: 5px; + margin: 2px; + cursor: pointer; + background-color: @background; + border-radius: 10px; + border: 0px; +} + +element normal.normal { + background-color: inherit; + text-color: @foreground; +} + +element normal.urgent { + background-color: inherit; + text-color: @foreground; +} + +element normal.active { + background-color: inherit; + text-color: @foreground; +} + +element selected.normal { + background-color: @selected-normal-background; + text-color: @foreground; +} + +element selected.urgent { + background-color: inherit; + text-color: @foreground; +} + +element selected.active { + background-color: inherit; + text-color: @foreground; +} + +element alternate.normal { + background-color: inherit; + text-color: @foreground; +} + +element alternate.urgent { + background-color: inherit; + text-color: @foreground; +} + +element alternate.active { + background-color: inherit; + text-color: @foreground; +} + +element-icon { + background-color: transparent; + text-color: inherit; + size: 32px; + cursor: inherit; +} + +element-text { + background-color: transparent; + text-color: inherit; + cursor: inherit; + vertical-align: 0.5; + horizontal-align: 0.0; +} + +/*****----- Message -----*****/ +message { + background-color: transparent; + border: 0px; + margin: 20px 0px 0px 0px; + padding: 0px; + spacing: 0px; + border-radius: 10px; +} + +textbox { + padding: 15px; + margin: 0px; + border-radius: 0px; + background-color: @background; + text-color: @foreground; + vertical-align: 0.5; + horizontal-align: 0.0; +} + +error-message { + padding: 15px; + border-radius: 20px; + background-color: @background; + text-color: @foreground; +} diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi new file mode 100644 index 0000000..c92eed9 --- /dev/null +++ b/config/rofi/config.rasi @@ -0,0 +1,240 @@ +/* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ + +/* ---- Configuration ---- */ +configuration { + modi: "drun,run"; + font: "Fira Code SemiBold 12"; + show-icons: true; + display-drun: "๎ฏ†"; + display-run: "๏„ "; + display-filebrowser: "๏ป"; + display-window: "๏‹"; + drun-display-format: "{name}"; + hover-select: true; + me-select-entry: "MouseSecondary"; + me-accept-entry: "MousePrimary"; + window-format: "{w} ยท {c} ยท {t}"; + +} + +/* ---- Load pywal colors (custom wal template) ---- */ +@import "~/.config/rofi/pywal-color/pywal-theme.rasi" + +/* ---- Window ---- */ +window { + width: 30%; + height: 30%; + x-offset: 0px; + y-offset: 0px; + spacing: 0px; + padding: 0px; + margin: 0px; + color: transparent; + border: 2px; + border-color: @background; + cursor: "default"; + transparency: "real"; + location: center; + anchor: center; + fullscreen: false; + enabled: true; + border-radius: 10px; +} + +/* ---- Mainbox ---- */ +mainbox { + enabled: true; + orientation: horizontal; + spacing: 0px; + margin: 0px; + background-color: transparent; + background-image: url("~/.config/rofi/.current_wallpaper", height); + children: [ "imagebox", "listbox" ]; +} + +/* ---- Imagebox ---- */ +imagebox { + padding: 18px; + background-color: transparent; + orientation: vertical; + children: [ "inputbar", "dummy", "mode-switcher" ]; +} + +/* ---- Listbox ---- */ +listbox { + spacing: 20px; + background-color: transparent; + orientation: vertical; + children: [ "message", "listview" ]; +} +/* ---- Dummy ---- */ +dummy { + background-color: transparent; +} + +/* ---- Inputbar ---- */ +inputbar { + enabled: true; + text-color: @foreground; + spacing: 10px; + padding: 15px; + border-radius: 10px; + border-color: @foreground; + children: [ "textbox-prompt-colon", "entry" ]; +} + +textbox-prompt-colon { + enabled: true; + expand: false; + str: "๐Ÿ”Ž "; + text-color: inherit; +} + +entry { + enabled: true; + background-color: transparent; + text-color: inherit; + cursor: text; + placeholder: "Choose"; + placeholder-color: inherit; +} + +/* ---- Mode Switcher ---- */ +mode-switcher{ + enabled: true; + spacing: 20px; + background-color: transparent; + text-color: @foreground; +} + +button { + padding: 10px; + border-radius: 10px; + background-color: @background; + text-color: inherit; + cursor: pointer; + border: 0px; +} + +button selected { + background-color: @selected-normal-background; + text-color: @foreground; +} + +/* ---- Listview ---- */ +listview { + enabled: true; + columns: 1; + lines: 8; + cycle: true; + dynamic: true; + scrollbar: false; + layout: vertical; + reverse: false; + fixed-height: true; + fixed-columns: true; + spacing: 0px; + padding: 10px; + margin: 0px; + border-radius: 10px; + border: 0px; + background-image: url("~/.config/rofi/.current_wallpaper", height); +} + +/* ---- Element ---- */ +element { + enabled: true; + padding: 5px; + margin: 2px; + cursor: pointer; + background-color: @background; + border-radius: 10px; + border: 0px; +} + +element normal.normal { + background-color: inherit; + text-color: @foreground; +} + +element normal.urgent { + background-color: inherit; + text-color: @foreground; +} + +element normal.active { + background-color: inherit; + text-color: @foreground; +} + +element selected.normal { + background-color: @selected-normal-background; + text-color: @foreground; +} + +element selected.urgent { + background-color: inherit; + text-color: @foreground; +} + +element selected.active { + background-color: inherit; + text-color: @foreground; +} + +element alternate.normal { + background-color: inherit; + text-color: @foreground; +} + +element alternate.urgent { + background-color: inherit; + text-color: @foreground; +} + +element alternate.active { + background-color: inherit; + text-color: @foreground; +} + +element-icon { + background-color: transparent; + text-color: inherit; + size: 32px; + cursor: inherit; +} + +element-text { + background-color: transparent; + text-color: inherit; + cursor: inherit; + vertical-align: 0.5; + horizontal-align: 0.0; +} + +/*****----- Message -----*****/ +message { + background-color: transparent; + border: 0px; + margin: 20px 0px 0px 0px; + padding: 0px; + spacing: 0px; + border-radius: 10px; +} + +textbox { + padding: 15px; + margin: 0px; + border-radius: 0px; + background-color: @background; + text-color: @foreground; + vertical-align: 0.5; + horizontal-align: 0.0; +} + +error-message { + padding: 15px; + border-radius: 20px; + background-color: @background; + text-color: @foreground; +} diff --git a/config/rofi/pywal-color/Readme.md b/config/rofi/pywal-color/Readme.md new file mode 100644 index 0000000..5e2da85 --- /dev/null +++ b/config/rofi/pywal-color/Readme.md @@ -0,0 +1,3 @@ +# NOTE!! + +This is symlink from ~/.cache/wal/colors-rofi-dark.rasi or ~/.cache/wal/colors-rofi-dark.rasi. Do not delete this folder and files else rofi theme wont be loaded. \ No newline at end of file diff --git a/config/rofi/pywal-color/pywal-theme.rasi b/config/rofi/pywal-color/pywal-theme.rasi new file mode 100644 index 0000000..e729892 --- /dev/null +++ b/config/rofi/pywal-color/pywal-theme.rasi @@ -0,0 +1 @@ +For symlink. DO NOT DELETE \ No newline at end of file diff --git a/config/waybar/configs/config-default b/config/waybar/configs/config-default index 2174d51..a597163 100644 --- a/config/waybar/configs/config-default +++ b/config/waybar/configs/config-default @@ -35,13 +35,19 @@ "custom/separator#dot-line", "custom/light_dark", "custom/separator#dot-line", - "custom/lock", + "custom/lock", + "custom/separator#dot-line", + "custom/keybinds", ], "modules-right": [ //"hyprland/window", "tray", "custom/separator#dot-line", + "bluetooth", + "custom/separator#dot-line", + //"network", + //"custom/separator#dot-line", //"cava", "battery", "custom/separator#dot-line", @@ -52,8 +58,8 @@ //"wireplumber", "pulseaudio#microphone", "custom/separator#dot-line", - //"keyboard-state", - //"custom/separator#dot-line", + "keyboard-state", + "custom/separator#dot-line", "custom/power", ], } diff --git a/config/waybar/modules b/config/waybar/modules index e23066e..3b033aa 100644 --- a/config/waybar/modules +++ b/config/waybar/modules @@ -7,7 +7,7 @@ //"format-icons": ["๓ฐƒž", "๓ฐƒŸ", "๓ฐƒ "], "format": "{icon}", "format-icons": ["๓ฐ›ฉ", "๓ฑฉŽ", "๓ฑฉ", "๓ฑฉ‘", "๓ฑฉ’", "๓ฑฉ“", "๓ฑฉ”", "๓ฑฉ•", "๓ฐ›จ"], - "tooltip-format": "{percent}%", + "tooltip-format": "backlight {percent}%", "icon-size": 10, "on-click": "", "on-click-middle": "", @@ -41,17 +41,18 @@ "tooltip": true, "tooltip-format": "{timeTo} {power}w", "on-click-middle": "~/.config/hypr/scripts/ChangeBlur.sh", - "on-click-right": "$HOME/.config/hypr/scripts/WofiPower.sh", + "on-click-right": "$HOME/.config/hypr/scripts/Wlogout.sh", }, "bluetooth": { - "format": "", - "format-disabled": "", // an empty format will hide the module - "format-connected": "๏Š“ {num_connections}", + "format": "๏Š“", + "format-disabled": "๓ฐ‚ณ", + "format-connected": "๓ฐ‚ฑ {num_connections}", "tooltip-format": "๏Š“ {device_alias}", "tooltip-format-connected": "{device_enumerate}", "tooltip-format-enumerate-connected": "๏Š“ {device_alias} ๓ฐ‚„{device_battery_percentage}%", - "tooltip": true + "tooltip": true, + "on-click": "blueman-manager", }, "cava": { @@ -163,7 +164,7 @@ "9": "๏‹", "10": "10", "focused": "๏†’", - "default": "๏€•", + "default": "๏„Œ", }, "on-scroll-up": "hyprctl dispatch workspace e+1", "on-scroll-down": "hyprctl dispatch workspace e-1", @@ -210,7 +211,7 @@ "format-alt-click": "click", "tooltip": true, "tooltip-format": "{used:0.1f}GB/{total:0.1f}G", - "on-click-right": "foot --title btop sh -c 'btop'" + "on-click-right": "kitty --title btop sh -c 'btop'" }, "network": { @@ -229,7 +230,7 @@ "pulseaudio": { "format": "{icon}", - "format-bluetooth": "{icon} ๏Š“ {volume}%", + "format-bluetooth": "{icon} ๓ฐ‚ฐ {volume}%", "format-muted": "๓ฐ–", "format-icons": { "headphone": "๏€ฅ", @@ -268,8 +269,8 @@ "critical-threshold": 82, "format-critical": "{temperatureC}ยฐC {icon}", "format": "{temperatureC}ยฐC {icon}", - "format-icons": ["๏‹ˆ"], - "on-click-right": "foot --title nvtop sh -c 'nvtop'" + "format-icons": ["๓ฐˆธ"], + "on-click-right": "kitty --title nvtop sh -c 'nvtop'" }, "tray": { @@ -295,7 +296,8 @@ "on-click": "activate", "on-click-middle": "close", "ignore-list": [ - "wofi" + "wofi", + "rofi", ] }, @@ -308,10 +310,10 @@ "tooltip-format": "Change wallpaper or style" }, -"custom/keybindings": { - "format":"๏Œƒ", +"custom/keybinds": { + "format":"๓ฐบ HINT!", "tooltip": false, - "on-click": "~/.config/hypr/scripts/Help.sh", + "on-click": "~/.config/hypr/scripts/KeyHints.sh", }, "custom/light_dark": { @@ -329,9 +331,9 @@ "custom/menu": { "format": "๏…ผ", "tooltip": false, - "on-click": "$HOME/.config/hypr/scripts/Wofi.sh", + "on-click": "pkill rofi || rofi -show drun -modi run,drun,filebrowser", "on-click-right": "$HOME/.config/hypr/scripts/ChangeLayoutMenu.sh", - "on-click-middle": "~/.config/hypr/scripts/Wallpaper.sh swaybg", + "on-click-middle": "~/.config/hypr/scripts/Wallpaper.sh swww", }, "custom/playerctl": { @@ -356,8 +358,7 @@ "exec": "checkupdates | wc -l", "exec-if": "[[ $(checkupdates | wc -l) ]]", "interval": 15, - "on-click": "foot -T update paru -Syu || yay -Syu && notify-send 'The system has been updated'", - "on-click-right": "~/.config/hypr/scripts/WallpaperSwitch.sh", + "on-click": "kitty -T update paru -Syu || yay -Syu && notify-send 'The system has been updated'", }, "custom/weather": { @@ -440,7 +441,7 @@ "format-alt-click": "click", "tooltip": true, "tooltip-format": "{used:0.1f}GB/{total:0.1f}G", - "on-click-right": "foot --title btop sh -c 'btop'", + "on-click-right": "kitty --title btop sh -c 'btop'", }, "pulseaudio#microphone_vertical": { @@ -459,19 +460,19 @@ "temperature#vertical": { "interval": 10, "tooltip": true, - "hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input", - //"thermal-zone": 0, + //"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input", + "thermal-zone": 0, "critical-threshold": 80, "format-critical": "{icon}\n{temperatureC}ยฐC", "format": " {icon}", - "format-icons": ["๏‹ˆ"], - "on-click-right": "foot --title nvtop sh -c 'nvtop'" + "format-icons": ["๓ฐˆธ"], + "on-click-right": "kitty --title nvtop sh -c 'nvtop'" }, "custom/power_vertical": { "format": "โป", "tooltip": false, - "on-click": "$HOME/.config/hypr/scripts/WofiPower.sh", + "on-click": "$HOME/.config/hypr/scripts/Wlogout.sh", "on-click-right": "~/.config/hypr/scripts/ChangeBlur.sh", }, } diff --git a/config/waybar/style/style-b&w.css b/config/waybar/style/style-b&w.css index d2edbb3..7c61d06 100644 --- a/config/waybar/style/style-b&w.css +++ b/config/waybar/style/style-b&w.css @@ -110,6 +110,7 @@ tooltip label{ #wireplumber, #workspaces, #custom-cycle_wall, +#custom-keybinds, #custom-light_dark, #custom-lock, #custom-menu, diff --git a/config/waybar/style/style-dark.css b/config/waybar/style/style-dark.css index 31f9b15..ac688ec 100644 --- a/config/waybar/style/style-dark.css +++ b/config/waybar/style/style-dark.css @@ -108,6 +108,7 @@ tooltip label { #wireplumber, #workspaces, #custom-cycle_wall, +#custom-keybinds, #custom-light_dark, #custom-lock, #custom-menu, diff --git a/config/waybar/style/style-default.css b/config/waybar/style/style-default.css index 28558be..5e5bbb0 100644 --- a/config/waybar/style/style-default.css +++ b/config/waybar/style/style-default.css @@ -98,6 +98,7 @@ tooltip label{ #wireplumber, #workspaces, #custom-cycle_wall, +#custom-keybinds, #custom-light_dark, #custom-lock, #custom-menu, diff --git a/config/waybar/style/style-default_alter.css b/config/waybar/style/style-default_alter.css index cfd718e..d273370 100644 --- a/config/waybar/style/style-default_alter.css +++ b/config/waybar/style/style-default_alter.css @@ -132,6 +132,7 @@ tooltip label{ #wireplumber, #workspaces, #custom-cycle_wall, +#custom-keybinds, #custom-light_dark, #custom-lock, #custom-menu, diff --git a/config/waybar/style/style-light.css b/config/waybar/style/style-light.css index 377ca70..0fa9581 100644 --- a/config/waybar/style/style-light.css +++ b/config/waybar/style/style-light.css @@ -108,6 +108,7 @@ tooltip label { #wireplumber, #workspaces, #custom-cycle_wall, +#custom-keybinds, #custom-light_dark, #custom-lock, #custom-menu, diff --git a/config/waybar/style/style-mauve.css b/config/waybar/style/style-mauve.css index e1b0cad..2e7bb8d 100644 --- a/config/waybar/style/style-mauve.css +++ b/config/waybar/style/style-mauve.css @@ -112,6 +112,7 @@ tooltip { #wireplumber, #workspaces, #custom-cycle_wall, +#custom-keybinds, #custom-light_dark, #custom-lock, #custom-menu, diff --git a/config/waybar/style/style-pywal.css b/config/waybar/style/style-pywal.css new file mode 100644 index 0000000..488c2da --- /dev/null +++ b/config/waybar/style/style-pywal.css @@ -0,0 +1,185 @@ +*{ +font-family: "JetBrainsMono Nerd Font"; +font-weight: bold; +min-height: 0; +/* set font-size to 100% if font scaling is set to 1.00 using nwg-look */ +font-size: 98%; +font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"'; +padding: 1px; +margin-top: 1px; +margin-bottom: 1px; +} + +@import '../../.cache/wal/colors-waybar.css'; + +window#waybar { + background: transparent; +} + +window#waybar.empty { + background-color: transparent; +} + +window#waybar.empty #window { + padding: 0px; + margin: 0px; + border: 0px; + background-color: transparent; +} + +window > box { + background: rgba(0, 0, 0, 0); + border-bottom: 1px solid rgba(0, 0, 0, 0); + color: @foreground; +} + +window { + /*font-weight: bold;*/ +} + +tooltip { + background: rgba(0, 0, 0, 0.4); + opacity: 0.8; + border-radius: 10px; + border-width: 2px; + border-style: solid; + border-color: @color15; +} + +tooltip label{ + color: @foreground; +} +/*-----module groups----*/ +.modules-right { + background-color: rgba(0, 0, 0, 0.4); + border: 0.5px solid @color15; + border-radius: 10px; +} +.modules-center { + background-color: rgba(0, 0, 0, 0.4); + border: 0.5px solid @color15; + border-radius: 10px; +} +.modules-left { + background-color: rgba(0, 0, 0, 0.4); + border: 0.5px solid @color15; + border-radius: 10px; +} +/*-----modules indv----*/ + +#workspaces button { + color: @color1; + padding: 0px 0px; + background-color: rgba(0, 0, 0, 0); + transition: all 0.3s ease-in-out; +} +#workspaces button:hover { + box-shadow: inherit; + background-color: @color2; +} + +#workspaces button.focused { + background-color: rgba(0,85,102,0); +} +#workspaces button.active { + color: @foreground; + /*background-color: rgba(0,85,102,0.3);*/ + transition: all 0.3s ease-in-out; + +} + +#backlight, +#battery, +#bluetooth, +#cava, +#clock, +#cpu, +#disk, +#idle_inhibitor, +#keyboard-state label, +#keyboard-state label.locked, +#keyboard-state, +#memory, +#mode, +#mpd, +#network, +#pulseaudio, +#taskbar button, +#taskbar, +#temperature, +#tray, +#window, +#wireplumber, +#workspaces, +#custom-cycle_wall, +#custom-keybinds, +#custom-light_dark, +#custom-lock, +#custom-menu, +#custom-power_vertical, +#custom-power, +#custom-spotify, +#custom-updater, +#custom-weather, +#custom-weather.clearNight, +#custom-weather.cloudyFoggyDay, +#custom-weather.cloudyFoggyNight, +#custom-weather.default +#custom-weather.rainyDay, +#custom-weather.rainyNight, +#custom-weather.severe, +#custom-weather.showyIcyDay, +#custom-weather.snowyIcyNight, +#custom-weather.sunnyDay { + padding: 0px 6px; +} +#mode { + color: #cc3436; + font-weight: bold; +} +#custom-power { + /*background-color: rgba(0,119,179,0.6);*/ + /*border-radius: 50px;*/ + margin: 5px 5px; + padding: 1px 3px; +} +/*-----Indicators----*/ +#idle_inhibitor.activated { + color: #2dcc36; +} +#pulseaudio.muted { + color: #cc3436; +} +#pulseaudio-microphone.muted { + color: #cc3436; +} +#temperature.critical { + color: #cc3436; +} + +#waybar { + background-color: @color14; + color: @color3; +} + +@keyframes blink { + to { + color: #000000; + } +} + +#battery.critical:not(.charging) { + color: #f53c3c; + animation-name: blink; + animation-duration: 0.5s; + animation-timing-function: linear; + animation-iteration-count: infinite; + animation-direction: alternate; +} + +#taskbar button.active { + background-color: #7f849c; +} +#waybar.empty, #waybar.tiled, #waybar.floating { + background-color: transparent; +} diff --git a/config/waybar/style/style-rgb.css b/config/waybar/style/style-rgb.css index f1224be..9f9718a 100644 --- a/config/waybar/style/style-rgb.css +++ b/config/waybar/style/style-rgb.css @@ -72,6 +72,7 @@ tooltip label{ #wireplumber, #workspaces, #custom-cycle_wall, +#custom-keybinds, #custom-light_dark, #custom-lock, #custom-menu, diff --git a/config/waybar/style/style-uline.css b/config/waybar/style/style-uline.css index 08ad750..4869d80 100644 --- a/config/waybar/style/style-uline.css +++ b/config/waybar/style/style-uline.css @@ -52,6 +52,7 @@ window#waybar { #wireplumber, #workspaces, #custom-cycle_wall, +#custom-keybinds, #custom-light_dark, #custom-lock, #custom-menu, diff --git a/config/wofi/WofiBig/config b/config/wofi/WofiBig/config deleted file mode 100644 index a8c75d9..0000000 --- a/config/wofi/WofiBig/config +++ /dev/null @@ -1,40 +0,0 @@ -## Wofi Config - -## General -show=drun -prompt=Apps -normal_window=true -layer=overlay -term=foot -columns=5 - -## Geometry -width=60% -height=40% -location=bottom_left -orientation=vertical -halign=fill -line_wrap=off -dynamic_lines=false - -## Images -allow_markup=true -allow_images=true -image_size=24 - -## Search -exec_search=false -hide_search=false -parse_search=false -insensitive=false - -## Other -hide_scroll=true -no_actions=true -sort_order=default -gtk_dark=true -filter_rate=100 - -## Keys -key_expand=Tab -key_exit=Escape diff --git a/config/wofi/colors b/config/wofi/colors deleted file mode 100644 index 3315baa..0000000 --- a/config/wofi/colors +++ /dev/null @@ -1,6 +0,0 @@ -#2F3741 -#2F3741 -#d9e0ee -#4B87CD -#f38ba8 -#cba6f7 diff --git a/config/wofi/config b/config/wofi/config deleted file mode 100644 index f7944a3..0000000 --- a/config/wofi/config +++ /dev/null @@ -1 +0,0 @@ -For symlink diff --git a/config/wofi/configs/config-default b/config/wofi/configs/config-default deleted file mode 100644 index 969d43e..0000000 --- a/config/wofi/configs/config-default +++ /dev/null @@ -1,40 +0,0 @@ -T## Wofi Config - -## General -show=drun -prompt=Apps -normal_window=true -layer=overlay -term=foot -columns=2 - -## Geometry -width=30% -height=30% -location=top_left -orientation=vertical -halign=fill -line_wrap=off -dynamic_lines=false - -## Images -allow_markup=true -allow_images=true -image_size=24 - -## Search -exec_search=false -hide_search=false -parse_search=false -insensitive=false - -## Other -hide_scroll=true -no_actions=true -sort_order=default -gtk_dark=true -filter_rate=100 - -## Keys -key_expand=Tab -key_exit=Escape diff --git a/config/wofi/configs/config-gnome b/config/wofi/configs/config-gnome deleted file mode 100644 index d4ae53a..0000000 --- a/config/wofi/configs/config-gnome +++ /dev/null @@ -1,46 +0,0 @@ -## Wofi Config - -## General -mode=drun,run -run-always_parse_args=true -show=drun -prompt=Apps -#normal_window=true -layer=overlay -term=foot -columns=1 -lines=15 - -## Geometry -height=20% -width=12% -location=top_left -xoffset=4 -yoffset=10 -orientation=vertical -halign=fill -line_wrap=off -dynamic_lines=false - -## Images -allow_markup=true -allow_images=true -image_size=24 - -## Search -exec_search=false -hide_search=false -parse_search=false -insensitive=false - -## Other -hide_scroll=false -no_actions=true -sort_order=default -gtk_dark=true -filter_rate=100 - -## Keys -key_expand=Tab -key_exit=Escape - diff --git a/config/wofi/configs/config-plasma b/config/wofi/configs/config-plasma deleted file mode 100644 index 185a1c7..0000000 --- a/config/wofi/configs/config-plasma +++ /dev/null @@ -1,46 +0,0 @@ -## Wofi Config - -## General -mode=drun,run -run-always_parse_args=true -show=drun -prompt=Apps -#normal_window=true -#layer=overlay -term=foot -columns=1 -lines=15 - -## Geometry -height=20% -width=14% -xoffset=10 -yoffset=-40 -location=bottom_left -orientation=vertical -halign=fill -line_wrap=off -dynamic_lines=false - -## Images -allow_markup=true -allow_images=true -image_size=24 - -## Search -exec_search=false -hide_search=false -parse_search=false -insensitive=false - -## Other -hide_scroll=false -no_actions=true -sort_order=default -gtk_dark=true -filter_rate=100 - -## Keys -key_expand=Tab -key_exit=Escape - diff --git a/config/wofi/style.css b/config/wofi/style.css deleted file mode 100644 index f7944a3..0000000 --- a/config/wofi/style.css +++ /dev/null @@ -1 +0,0 @@ -For symlink diff --git a/config/wofi/styles/style-dark.css b/config/wofi/styles/style-dark.css deleted file mode 100644 index 7f8419e..0000000 --- a/config/wofi/styles/style-dark.css +++ /dev/null @@ -1,69 +0,0 @@ -*{ -font-family: "JetBrainsMono Nerd Font"; -min-height: 0; -font-size: 100%; -font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"'; -padding: 0px; -margin-top: 1px; -margin-bottom: 1px; -} - - -#window { - /*background-color: --wofi-color0;*/ - background-color: rgba(50, 50, 50, 0.6); - color: --wofi-color2; - /*border: 2px solid --wofi-color1;*/ - border-radius: 0px; -} - -#outer-box { - padding: 10px; -} - -#input { - background-color: --wofi-color1; - /*border: 1px solid --wofi-color3;*/ - padding: 4px 6px; -} - -#scroll { - margin-top: 10px; - margin-bottom: 10px; -} - -#inner-box { -} - -#img { - padding-right: 5px; -} - -#text { - color: --wofi-color2; -} - -#text:selected { - color: --wofi-color0; -} - -#entry { - padding: 3px; -} - -#entry:selected { - background-color: --wofi-color3; - background: linear-gradient(90deg, #89b4fa, #b4befe, #89b4fa); - color: --wofi-color0; -} - -#unselected { -} - -#selected { -} - -#input, #entry:selected { - border-radius: 10px; - border: 1px solid #b4befe; -} diff --git a/config/wofi/styles/style-light.css b/config/wofi/styles/style-light.css deleted file mode 100644 index 6c3985e..0000000 --- a/config/wofi/styles/style-light.css +++ /dev/null @@ -1,71 +0,0 @@ -*{ -font-family: "JetBrainsMono Nerd Font"; -min-height: 0; -/* set font-size to 100% if font scaling is set to 1.00 using nwg-look */ -font-size: 100%; -dfont-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"'; -padding: 0px; -margin-top: 1px; -margin-bottom: 1px; -} - -#window { - /*background-color: --wofi-color0;*/ - background: rgba(230, 230, 250, 0.8); - color: #1e1e2e; - /*border: 2px solid #1e1e2e;*/ - border-radius: 8px; -} - -#outer-box { - padding: 10px; -} - -#input { - background-color: #e7e7ec; - /*border: 1px solid #1e1e2e;*/ - padding: 4px 6px; - color: #585b70 -} - -#scroll { - margin-top: 10px; - margin-bottom: 10px; -} - -#inner-box { - color: #585b70 -} - -#img { - padding-right: 5px; -} - -#text { - color: #585b70; -} - -#text:selected { - color: #1e1e2e; -} - -#entry { - padding: 3px; -} - -#entry:selected { - background-color: --wofi-color3; - background: linear-gradient(90deg, #89b4fa, #b4befe, #89b4fa); - color: --wofi-color0; -} - -#unselected { -} - -#selected { -} - -#input, #entry:selected { - border-radius: 10px; - border: 1px solid #b4befe; -} diff --git a/copy.sh b/copy.sh index cc42efe..1a30555 100644 --- a/copy.sh +++ b/copy.sh @@ -21,12 +21,19 @@ RESET=$(tput sgr0) # Set the name of the log file to include the current date and time LOG="install-$(date +%d-%H%M%S)_dotfiles.log" -#uncommenting WLR_NO_HARDWARE_CURSORS if nvidia is detected +# uncommenting WLR_NO_HARDWARE_CURSORS if nvidia is detected if lspci -k | grep -A 2 -E "(VGA|3D)" | grep -iq nvidia; then # NVIDIA GPU detected, uncomment line 23 in ENVariables.conf sed -i '/env = WLR_NO_HARDWARE_CURSORS,1/s/^#//' config/hypr/configs/ENVariables.conf fi +# uncommenting WLR_RENDERER_ALLOW_SOFTWARE,1 if running in a VM is detected +if hostnamectl | grep -q 'Chassis: vm'; then + echo "This script is running in a virtual machine." + sed -i '/env = WLR_NO_HARDWARE_CURSORS,1/s/^#//' config/hypr/configs/ENVariables.conf + sed -i '/env = WLR_RENDERER_ALLOW_SOFTWARE,1/s/^#//' config/hypr/configs/ENVariables.conf +fi + # preparing hyprland.conf keyboard layout # Function to detect keyboard layout in an X server environment detect_x_layout() { @@ -59,8 +66,7 @@ fi echo "Keyboard layout: $layout" -printf "${NOTE} Detecting keyboard layout to prepare necessary changes in hyprland.conf before copying\n" -printf "\n" +printf "${NOTE} Detecting keyboard layout to prepare necessary changes in hyprland.conf before copying\n\n" # Prompt the user to confirm whether the detected layout is correct read -p "Detected keyboard layout or keymap: $layout. Is this correct? [y/n] " confirm @@ -83,7 +89,7 @@ printf "\n" set -e # Exit immediately if a command exits with a non-zero status. printf "${NOTE} copying dotfiles\n" - for DIR in btop cava dunst foot hypr swappy swaylock waybar wofi; do + for DIR in btop cava dunst gtk-3.0 hypr kitty rofi swappy swaylock waybar wlogout; do DIRPATH=~/.config/$DIR if [ -d "$DIRPATH" ]; then echo -e "${NOTE} - Config for $DIR found, attempting to back up." @@ -113,17 +119,16 @@ cp -r wallpapers ~/Pictures/ && { echo "${OK}Copy completed!"; } || { echo "${ER # Initial Symlinks to avoid errors # symlinks for waybar ln -sf "$HOME/.config/waybar/configs/config-default" "$HOME/.config/waybar/config" && \ -ln -sf "$HOME/.config/waybar/style/style-dark.css" "$HOME/.config/waybar/style.css" && \ +ln -sf "$HOME/.config/waybar/style/style-pywal.css" "$HOME/.config/waybar/style.css" && \ # symlinks for dunst ln -sf "$HOME/.config/dunst/styles/dunstrc-dark" "$HOME/.config/dunst/dunstrc" && \ -# symlink for wofi -ln -sf "$HOME/.config/wofi/styles/style-dark.css" "$HOME/.config/wofi/style.css" && \ -ln -sf "$HOME/.config/wofi/configs/config-default" "$HOME/.config/wofi/config" && \ - # Set some files as executable chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG" +# Set executable for initial-boot.sh +chmod +x ~/.config/hypr/initial-boot.sh 2>&1 | tee -a "$LOG" + printf "\n${OK} Copy Completed!\n\n" printf "${NOTE} Highly recommended to logout and re-login\n\n" diff --git a/wallpapers/alfa.png b/wallpapers/alfa.png new file mode 100644 index 0000000..7d9cc01 Binary files /dev/null and b/wallpapers/alfa.png differ diff --git a/wallpapers/pastel-window.png b/wallpapers/pastel-window.png new file mode 100644 index 0000000..da779f5 Binary files /dev/null and b/wallpapers/pastel-window.png differ