├── INSTALL.txt ├── LICENSE ├── README.md ├── chrome-flags.conf ├── code-flags.conf ├── hypr └── hyprland.conf ├── kitty ├── kitty-theme.conf └── kitty.conf ├── nvim └── init.lua ├── settings.json └── waybar ├── Waybar-3.0 ├── border.css ├── config ├── config.json ├── configs │ └── custom_modules │ │ ├── modules │ │ └── privacy_container ├── kartorias1 Hyprland-dotfiles main waybar.zip ├── scripts │ ├── checkupdates │ ├── custom │ │ └── privacy-test.sh │ ├── pacman-update-icon.sh │ ├── rofi-wifi-menu.sh │ ├── title │ │ └── icon_check.sh │ └── window-name.sh ├── style-og.css ├── style-tokyo.css ├── style.css ├── style.css.map ├── style.css.tokyonight └── style.scss ├── scripts ├── mediaplayer.py ├── play-pause.sh ├── power-menu │ ├── powermenu.sh │ ├── shared │ │ ├── colors.rasi │ │ ├── colors │ │ │ ├── adapta.rasi │ │ │ ├── arc.rasi │ │ │ ├── black.rasi │ │ │ ├── catppuccin.rasi │ │ │ ├── cyberpunk.rasi │ │ │ ├── dracula.rasi │ │ │ ├── everforest.rasi │ │ │ ├── gruvbox.rasi │ │ │ ├── lovelace.rasi │ │ │ ├── navy.rasi │ │ │ ├── nord.rasi │ │ │ ├── onedark.rasi │ │ │ ├── paper.rasi │ │ │ ├── solarized.rasi │ │ │ ├── tokyonight.rasi │ │ │ └── yousai.rasi │ │ └── fonts.rasi │ ├── style-1.rasi │ ├── style-2.rasi │ ├── style-3.rasi │ ├── style-4.rasi │ └── style-5.rasi ├── rofi-bluetooth ├── rofi-wifi-menu.sh ├── sound │ ├── expand │ ├── expand_soundbar │ ├── flick0 hyprland-print 47238bbedc75bee69d03b960933e4b92868b2cb8 dark-waybar_sound.zip │ └── soundbar_state ├── spotify.sh ├── waybar-wttr.py └── weather.py ├── tokyoconfig └── tokyostyle.css /INSTALL.txt: -------------------------------------------------------------------------------- 1 | 今天演示Archlinux的安装与配置 2 | 我打算安装到btrfs文件系统上 3 | 桌面用Hyprland,显卡是N卡 4 | 附加Windows的双系统引导 5 | 6 | 1.先去官网下载最新的ISO镜像文件,刻录到U盘,从U盘启动Arch的安装镜像,网上有很多教程,我就不演示了 7 | 2.连接互联网,如果有网线:输入命令ip link 如果没网线就连wifi 8 | iwctl 9 | station <网卡名> connect 10 | 输入密码 11 | quit 12 | 3.ping baidu.com 测试网络连接 13 | 14 | 我用ssh连接物理机的arch安装镜像,不在虚拟机安装 15 | OK连上物理机了,开始安装Archlinux 16 | 安装教程: 17 | https://wiki.archlinux.org/title/installation_guide 18 | 19 | 1.联网 20 | 21 | 2.检验是否是UEFI64位模式 22 | cat /sys/firmware/efi/fw_platform_size 23 | 24 | 3.设置时区 25 | timedatectl set-timezone Asia/Shanghai 26 | 27 | 4.磁盘分区,注意别把数据格式化了 28 | 前五个分区是Windows的分区,Windows有一个EFI分区,可以和Arch共用 29 | 为Archlinux准备一个512MB的EFI分区,8G的交换分区,其余空间创建为linux filesystem分区 30 | cfdisk /dev/你的硬盘 31 | 32 | 5.格式化分区 33 | 如果你为arch准备了单独的EFI分区 34 | mkfs.fat -F 32 /dev/efi_system_partition 35 | 格式化交换分区 36 | mkswap /dev/swap_partition 37 | 格式化btrfs文件系统 38 | mkfs.btrfs /dev/root_partition -f 39 | mount /dev/root_partition /mnt 40 | btrfs subvolume create /mnt/@ 41 | btrfs subvolume create /mnt/@home 42 | umount /dev/root_partition 43 | 44 | 6.挂载分区 45 | mount /dev/root_partition /mnt -o subvol=@ 46 | mount /dev/root_partition /mnt/home -o subvol=@home --mkdir 47 | mount /dev/efi_system_partition /mnt/boot/efi --mkdir 48 | swapon /dev/swap_partition 49 | 50 | 7.设置镜像源并安装系统 51 | vim /etc/pacman.d/mirrorlist 52 | 在开头加上镜像源 53 | Server = https://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch 54 | Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch 55 | 更新 56 | pacman -Sy 57 | 安装Arch 58 | pacstrap -K /mnt base base-devel linux linux-firmware linux-headers git fish grub efibootmgr os-prober openssl networkmanager dhcpcd neovim 59 | 等待安装完。 60 | 61 | 8.arch的基础配置 62 | 挂载配置 63 | genfstab -U /mnt >> /mnt/etc/fstab 64 | arch-chroot /mnt 65 | 时间设置 66 | ln -sf /usr/share/zoneinfo/Region/City /etc/localtime 67 | hwclock --systohc 68 | 语言设置 69 | nvim /etc/locale.gen 70 | 取消en_US.UTF-8和zh_CN.UTF-8前的注释 71 | locale-gen 72 | nvim /etc/locale.conf 73 | 第一行写入LANG=en_US.UTF-8 74 | 网络配置 75 | nvim /etc/hostname 76 | 第一行写入你的hostname,任意添(别太任意%……#@$@*&……) 77 | systemctl enable dhcpcd 78 | systemctl enable NetworkManager 79 | Initramfs配置 80 | nvim /etc/mkinitcpio.conf 81 | 在HOOKS中加入btrfs 82 | 安装时忘记装btrfs了,现在装上 83 | pacman -S btrfs-progs 84 | 上面这条命令会自动运行mkinitcpio -P 85 | 如果在pacstrap中就安装了btrfs-progs,那么改完/etc/mkinitcpio.conf后需要手动运行mkinitcpio -P 86 | mkinitcpio -P 87 | Pacman配置 88 | 检查/etc/pacman.d/mirrorlist 89 | nvim /etc/pacman.conf 90 | 取消Color和ParallelDownloads前的注释 91 | 加上一行 ILoveCandy 吃豆人彩蛋 92 | pacman -Syy 93 | 用户配置 94 | 设置root的密码 95 | passwd 96 | 添加一个用户 97 | useradd -m -G wheel <用户名> 98 | 设置用户密码 99 | passwd <用户名> 100 | 为wheel组中的用户添加sudo权限 101 | nvim /etc/sudoers 102 | 将108行的注释去掉 103 | 会提醒这是个只读文件,不用管,直接:w!强制写入 104 | 设置用户shell 105 | su <用户名> 106 | 查看shell位置 107 | whereis fish 108 | chsh -s /usr/bin/fish 109 | Ctrl+D 退出用户登陆 110 | su <用户名> 111 | 再次进入到用户,可以看到shell已经变了 112 | 引导配置 113 | sudo grub-install --recheck /dev/你的硬盘 114 | sudo nvim /etc/default/grub 115 | 将最后一行的注释去掉,启用os-prober检测双系统 116 | 如果之前为Arch创建了单独的EFI,那么现在将windows的EFI分区挂载到任意目录 例如(/mnt) 117 | 运行sudo os-prober看看能不能检测到windows 118 | sudo grub-mkconfig -o /boot/grub/grub.cfg 119 | 配置完引导后重启电脑并拔掉U盘 120 | Ctrl+D 退出登陆 121 | umount -R /mnt 取消挂载 122 | reboot 重启 123 | 124 | 9.重启后 125 | 登陆到你的用户 126 | 连接互联网 127 | 如果有网线跳过这一步 128 | nmcli device wifi connect <网络名> <密码> 129 | 安装Nvidia驱动 130 | 查看显卡 131 | lspci -k | grep -A 2 -E "(VGA|3D)" 132 | 安装驱动 133 | 我的台式机装的nvidia-dkms没问题,笔记本有问题,改成装nvidia而不是nvidia-dkms 134 | sudo pacman -S nvidia-dkms nvidia-utils nvidia-settings 135 | sudo pacman -S nvidia nvidia-utils nvidia-settings 136 | 137 | sudo nvim /etc/default/grub 138 | 在GRUB_CMDLINE_LINUX中添加nvidia_drm.modeset=1 139 | sudo grub-mkconfig -o /boot/grub/grub.cfg 140 | sudo nvim /etc/mkinitcpio.conf 141 | 在MODULES中加入nvidia nvidia_modeset nvidia_uvm nvidia_drm 142 | 将kms从HOOKS中去掉 143 | sudo mkinitcpio -P 144 | reboot 重启 145 | nvidia-smi 验证是否安装成功 146 | 在/etc/pacman.d/hooks/nvidia.hook中写入 147 | [Trigger] 148 | Operation=Install 149 | Operation=Upgrade 150 | Operation=Remove 151 | Type=Package 152 | Target=nvidia 153 | Target=linux 154 | # Change the linux part above if a different kernel is used 155 | 156 | [Action] 157 | Description=Update NVIDIA module in initcpio 158 | Depends=mkinitcpio 159 | When=PostTransaction 160 | NeedsTargets 161 | Exec=/bin/sh -c 'while read -r trg; do case $trg in linux*) exit 0; esac; done; /usr/bin/mkinitcpio -P' 162 | 163 | 164 | 10.安装Hyprland桌面 165 | sudo pacman -S hyprland kitty waybar 166 | sudo pacman -S sddm 167 | sudo pacman -S ttf-jetbrains-mono-nerd adobe-source-han-sans-cn-fonts adobe-source-code-pro-fonts 168 | sudo systemctl enable sddm 169 | reboot 重启 170 | 等待重启,然后就能看到一个登陆界面,输入用户密码进入Hyprland 171 | Nvidia还要设置一下 172 | https://wiki.hyprland.org/Nvidia/ 173 | CTRL+ALT+F3进如tty3并登陆用户 174 | nvim ~/.config/hypr/hyprland.conf 175 | 添加NVIDIA环境变量 176 | env = LIBVA_DRIVER_NAME,nvidia 177 | env = XDG_SESSION_TYPE,wayland 178 | env = GBM_BACKEND,nvidia-drm 179 | env = __GLX_VENDOR_LIBRARY_NAME,nvidia 180 | env = WLR_NO_HARDWARE_CURSORS,1 181 | reboot 重启 182 | 等待重启,然后就能看到一个登陆界面,输入用户密码进入Hyprland 183 | Win+Q 开启终端 184 | Win+C 关闭窗口 185 | Win+R 呼出菜单 186 | Win+数字 切换桌面 187 | Win+Shift+数字 将当前窗口移动到对应工作区 188 | Win+鼠标左键 拖动窗口 189 | Win+鼠标右键 调整窗口大小 190 | Win+V 让窗口浮动出来 191 | (安装OBS中。。。。) 192 | 193 | 安装输入法 194 | sudo pacman -S fcitx5 fcitx5-chinese-addons fcitx5-configtool 195 | 配置输入法 196 | fcitx5-configtool 197 | 安装paru 198 | git clone https://aur.archlinux.org/paru.git 199 | cd paru 200 | makepkg -si 201 | 安装rofi 202 | sudo pacman -S rofi 203 | 安装chrome和vscodfe 204 | paru -S google-chrome 205 | sudo pacman -S code 206 | 配置 207 | 获取我的配置文件 208 | git clone https://github.com/HeaoYe/config 209 | cd config 210 | 配置neovim 211 | cp nvim ~/.config/ -r 212 | 配置chrome和vscode 213 | cp *.conf ~/.config/ 214 | code 215 | 安装插件 216 | clangd CMake CmakeTools CodeLLDB GruvboxTheme 217 | cp settings.json ~/.config/Code\ -\ OSS/User/ 218 | 配置kitty 219 | cp kitty ~/.config/ -r 220 | 在~/.config/kitty/kitty.conf 中设置字体大小 221 | 配置hyprland 222 | sudo pacman -S xorg-xrdb 223 | cp hypr ~/.config/ -r 224 | 配置waybar 225 | cp waybar ~/.config/ -r 226 | 手动启动waybar查看效果 227 | waybar -c ~/.config/waybar/Waybar-3.0/config -s ~/.config/waybar/Waybar-3.0/style.css 228 | 除了第一次配置,以后会自动启动waybar 229 | 配置声音 230 | sudo pacman -S pavucontrol-qt 231 | pavucontrol-qt 232 | (可选) 233 | 安装nvtop 234 | sudo pacman -S nvtop 235 | 安装grim,截图软件 236 | sudo pacman -S grim 237 | 安装QQ音乐 238 | (我装过了,不演示了) 239 | paru -S qqmusic-bin 240 | 安装大鹅,我也不知道这个软件能干什么 241 | paru -S daed-git 242 | 没啥要安装的了,arch配置成功 243 | hyprland和waybar和kitty配置文件是clone的别人的 244 | 链接放简介里 245 | 246 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # config 2 | linux config 3 | -------------------------------------------------------------------------------- /chrome-flags.conf: -------------------------------------------------------------------------------- 1 | --enable-features=UseOzonePlatform 2 | --ozone-platform=wayland 3 | --enable-wayland-ime 4 | --force-device-scale-factor 5 | 6 | -------------------------------------------------------------------------------- /code-flags.conf: -------------------------------------------------------------------------------- 1 | --enable-features=WaylandWindowDecorations 2 | --ozone-platform-hint=auto 3 | --enable-wayland-ime 4 | 5 | -------------------------------------------------------------------------------- /hypr/hyprland.conf: -------------------------------------------------------------------------------- 1 | # This is an example Hyprland config file. 2 | # 3 | # Refer to the wiki for more information. 4 | 5 | # 6 | # Please note not all available settings / options are set here. 7 | # For a full list, see the wiki 8 | # 9 | 10 | #autogenerated = 1 # remove this line to remove the warning 11 | 12 | # See https://wiki.hyprland.org/Configuring/Monitors/ 13 | monitor=,2560x1440@144,auto,1 14 | #monitor=,1920x1080@144,auto,1 15 | 16 | # See https://wiki.hyprland.org/Configuring/Keywords/ for more 17 | 18 | # Execute your favorite apps at launch 19 | # exec-once = waybar & hyprpaper & firefox 20 | 21 | # Source a file (multi-file configs) 22 | # source = ~/.config/hypr/myColors.conf 23 | 24 | # Set programs that you use 25 | $terminal = kitty 26 | $fileManager = dolphin 27 | $menu = rofi -show drun 28 | 29 | # Some default env vars. 30 | env = XCURSOR_SIZE,24 31 | env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that 32 | 33 | env = LIBVA_DRIVER_NAME,nvidia 34 | env = XDG_SESSION_TYPE,wayland 35 | env = GBM_BACKEND,nvidia_drm 36 | env = __GLX_VENDOR_LIBRARY_NAME,nvidia 37 | env = WLR_NO_HARDWARE_CURSORS,1 38 | env = XCURSOR_SIZE,32 39 | env = QT_WAYLAND_FORCE_DPI,120 40 | 41 | exec-once = waybar -c ~/.config/waybar/Waybar-3.0/config -s ~/.config/waybar/Waybar-3.0/style.css 42 | exec-once = fcitx5 --replace -d 43 | exec-once = echo 'Xft.dpi:120' | xrdb 44 | 45 | # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ 46 | input { 47 | kb_layout = us 48 | kb_variant = 49 | kb_model = 50 | kb_options = 51 | kb_rules = 52 | 53 | follow_mouse = 1 54 | 55 | touchpad { 56 | natural_scroll = false 57 | } 58 | 59 | sensitivity = 0 # -1.0 - 1.0, 0 means no modification. 60 | } 61 | 62 | general { 63 | # See https://wiki.hyprland.org/Configuring/Variables/ for more 64 | 65 | gaps_in = 5 66 | gaps_out = 20 67 | border_size = 2 68 | col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg 69 | col.inactive_border = rgba(595959aa) 70 | 71 | layout = dwindle 72 | 73 | # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on 74 | allow_tearing = false 75 | } 76 | 77 | decoration { 78 | # See https://wiki.hyprland.org/Configuring/Variables/ for more 79 | 80 | rounding = 10 81 | 82 | blur { 83 | enabled = true 84 | size = 3 85 | passes = 1 86 | 87 | vibrancy = 0.1696 88 | } 89 | 90 | drop_shadow = true 91 | shadow_range = 4 92 | shadow_render_power = 3 93 | col.shadow = rgba(1a1a1aee) 94 | } 95 | 96 | animations { 97 | enabled = true 98 | 99 | # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more 100 | 101 | bezier = myBezier, 0.05, 0.9, 0.1, 1.05 102 | 103 | animation = windows, 1, 7, myBezier 104 | animation = windowsOut, 1, 7, default, popin 80% 105 | animation = border, 1, 10, default 106 | animation = borderangle, 1, 8, default 107 | animation = fade, 1, 7, default 108 | animation = workspaces, 1, 6, default 109 | } 110 | 111 | dwindle { 112 | # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more 113 | pseudotile = true # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below 114 | preserve_split = true # you probably want this 115 | } 116 | 117 | master { 118 | # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more 119 | new_is_master = true 120 | } 121 | 122 | gestures { 123 | # See https://wiki.hyprland.org/Configuring/Variables/ for more 124 | workspace_swipe = false 125 | } 126 | 127 | misc { 128 | # See https://wiki.hyprland.org/Configuring/Variables/ for more 129 | force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers 130 | } 131 | 132 | # Example per-device config 133 | # See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more 134 | device { 135 | name = epic-mouse-v1 136 | sensitivity = -0.5 137 | } 138 | 139 | # Example windowrule v1 140 | # windowrule = float, ^(kitty)$ 141 | # Example windowrule v2 142 | # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ 143 | # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more 144 | windowrulev2 = suppressevent maximize, class:.* # You'll probably like this. 145 | 146 | 147 | # See https://wiki.hyprland.org/Configuring/Keywords/ for more 148 | $mainMod = SUPER 149 | 150 | # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more 151 | bind = $mainMod, Q, exec, $terminal 152 | bind = $mainMod, C, killactive, 153 | bind = $mainMod, M, exit, 154 | bind = $mainMod, E, exec, $fileManager 155 | bind = $mainMod, V, togglefloating, 156 | bind = $mainMod, R, exec, $menu 157 | bind = $mainMod, P, pseudo, # dwindle 158 | bind = $mainMod, J, togglesplit, # dwindle 159 | 160 | # Move focus with mainMod + arrow keys 161 | bind = $mainMod, left, movefocus, l 162 | bind = $mainMod, right, movefocus, r 163 | bind = $mainMod, up, movefocus, u 164 | bind = $mainMod, down, movefocus, d 165 | 166 | # Switch workspaces with mainMod + [0-9] 167 | bind = $mainMod, 1, workspace, 1 168 | bind = $mainMod, 2, workspace, 2 169 | bind = $mainMod, 3, workspace, 3 170 | bind = $mainMod, 4, workspace, 4 171 | bind = $mainMod, 5, workspace, 5 172 | bind = $mainMod, 6, workspace, 6 173 | bind = $mainMod, 7, workspace, 7 174 | bind = $mainMod, 8, workspace, 8 175 | bind = $mainMod, 9, workspace, 9 176 | bind = $mainMod, 0, workspace, 10 177 | 178 | # Move active window to a workspace with mainMod + SHIFT + [0-9] 179 | bind = $mainMod SHIFT, 1, movetoworkspace, 1 180 | bind = $mainMod SHIFT, 2, movetoworkspace, 2 181 | bind = $mainMod SHIFT, 3, movetoworkspace, 3 182 | bind = $mainMod SHIFT, 4, movetoworkspace, 4 183 | bind = $mainMod SHIFT, 5, movetoworkspace, 5 184 | bind = $mainMod SHIFT, 6, movetoworkspace, 6 185 | bind = $mainMod SHIFT, 7, movetoworkspace, 7 186 | bind = $mainMod SHIFT, 8, movetoworkspace, 8 187 | bind = $mainMod SHIFT, 9, movetoworkspace, 9 188 | bind = $mainMod SHIFT, 0, movetoworkspace, 10 189 | 190 | # Example special workspace (scratchpad) 191 | bind = $mainMod, S, togglespecialworkspace, magic 192 | bind = $mainMod SHIFT, S, movetoworkspace, special:magic 193 | 194 | # Scroll through existing workspaces with mainMod + scroll 195 | bind = $mainMod, mouse_down, workspace, e+1 196 | bind = $mainMod, mouse_up, workspace, e-1 197 | 198 | # Move/resize windows with mainMod + LMB/RMB and dragging 199 | bindm = $mainMod, mouse:272, movewindow 200 | bindm = $mainMod, mouse:273, resizewindow 201 | -------------------------------------------------------------------------------- /kitty/kitty-theme.conf: -------------------------------------------------------------------------------- 1 | # vim:ft=kitty 2 | 3 | ## name: Catppuccin 4 | ## author: Pocco81 (https://github.com/Pocco81) 5 | ## license: MIT 6 | ## upstream: https://raw.githubusercontent.com/catppuccin/kitty/main/catppuccin.conf 7 | ## blurb: Soothing pastel theme for the high-spirited! 8 | 9 | # The basic colors 10 | foreground #E2E0EC 11 | #background #27163a 12 | background #191a24 13 | #background #12121a 14 | selection_foreground #D9E0EE 15 | selection_background #575268 16 | 17 | # Transparent Background 18 | background_opacity 1 19 | 20 | # Cursor colors 21 | cursor #F5E0DC 22 | cursor_text_color #1E1E2E 23 | 24 | # URL underline color when hovering with mouse 25 | url_color #F5E0DC 26 | 27 | # kitty window border colors 28 | active_border_color #C9CBFF 29 | inactive_border_color #575268 30 | bell_border_color #FAE3B0 31 | 32 | # OS Window titlebar colors 33 | wayland_titlebar_color system 34 | macos_titlebar_color system 35 | 36 | #: Tab bar colors 37 | active_tab_foreground #F5C2E7 38 | active_tab_background #575268 39 | inactive_tab_foreground #D9E0EE 40 | inactive_tab_background #1E1E2E 41 | tab_bar_background #161320 42 | 43 | # Colors for marks (marked text in the terminal) 44 | 45 | mark1_foreground #1E1E2E 46 | mark1_background #96CDFB 47 | mark2_foreground #1E1E2E 48 | mark2_background #F5C2E7 49 | mark3_foreground #1E1E2E 50 | mark3_background #B5E8E0 51 | 52 | #: The 16 terminal colors 53 | 54 | #: black 55 | color0 #15161e 56 | color8 #414868 57 | 58 | #: red 59 | color1 #e77d8f 60 | color9 #e77d8f 61 | 62 | #: green 63 | color2 #a8cd76 64 | color10 #a8cd76 65 | 66 | #: yellow 67 | color3 #d9b172 68 | color11 #d9b172 69 | 70 | #: blue 71 | color4 #82a1f1 72 | color12 #82a1f1 73 | 74 | #: magenta 75 | color5 #b69bf1 76 | color13 #b69bf1 77 | 78 | #: cyan 79 | color6 #90cdfa 80 | color14 #90cdfa 81 | 82 | #: white 83 | color7 #aab1d3 84 | color15 #aab1d3 85 | 86 | #font_family Symbols only 87 | #font_family Caskaydia Cove 88 | #font_family JetBrainsMono Regular 89 | #bold_font auto 90 | #italic_font auto 91 | 92 | font_size 16 93 | 94 | #font_family Iosevka 95 | font_family JetBrains Mono Regular 96 | bold_font JetBrains Mono Bold 97 | italic_font JetBrains Mono Italic 98 | bold_italic_font JetBrains Mono Bold Italic 99 | #bold_font auto 100 | #italic_font auto 101 | #bold_italic_font auto 102 | 103 | -------------------------------------------------------------------------------- /kitty/kitty.conf: -------------------------------------------------------------------------------- 1 | # BEGIN_KITTY_THEME 2 | # Rosé Pine 3 | include kitty-theme.conf 4 | # END_KITTY_THEME 5 | window_padding_width 7 6 | #font_size 12 7 | confirm_os_window_close 0 8 | -------------------------------------------------------------------------------- /nvim/init.lua: -------------------------------------------------------------------------------- 1 | local opt = vim.opt 2 | opt.number = true 3 | opt.softtabstop = 4 4 | opt.tabstop = 4 5 | opt.shiftwidth = 4 6 | opt.expandtab = true 7 | opt.smartindent = true 8 | opt.wrap = false 9 | opt.mouse:append("a") 10 | opt.clipboard:append("unnamedplus") 11 | opt.splitright = true 12 | opt.splitbelow = true 13 | opt.ignorecase = true 14 | opt.smartcase = true 15 | opt.termguicolors = true 16 | opt.signcolumn = "yes" 17 | opt.whichwrap = '<,>,[,]' 18 | vim.o.list = true 19 | vim.o.listchars = "space:·" 20 | 21 | vim.api.nvim_create_autocmd({ "TextYankPost" }, { 22 | pattern = { "*" }, 23 | callback = function() 24 | vim.highlight.on_yank({ 25 | timeout = 600, 26 | }) 27 | end, 28 | }) 29 | 30 | vim.g.mapleader = " " 31 | vim.keymap.set("n", "", ":w") 32 | vim.keymap.set("n", "", "u") 33 | vim.keymap.set("i", "", ":wa") 34 | vim.keymap.set("i", "", "ua") 35 | vim.keymap.set("n", "v", "v") 36 | vim.keymap.set("n", "s", "s") 37 | vim.keymap.set("n", "", "h") 38 | vim.keymap.set("n", "", "l") 39 | vim.keymap.set("n", "", "j") 40 | vim.keymap.set("n", "", "k") 41 | 42 | local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" 43 | if not vim.loop.fs_stat(lazypath) then 44 | vim.fn.system({ 45 | "git", 46 | "clone", 47 | "--filter=blob:none", 48 | "https://github.com/folke/lazy.nvim.git", 49 | "--branch=stable", -- latest stable release 50 | lazypath, 51 | }) 52 | end 53 | vim.opt.rtp:prepend(lazypath) 54 | 55 | require("lazy").setup({ 56 | --{ 57 | --"RRethy/nvim-base16", 58 | --lazy = true, 59 | --}, 60 | { 61 | "morhetz/gruvbox", 62 | }, 63 | { 64 | "nvim-telescope/telescope.nvim", 65 | tag = "0.1.1", 66 | dependencies = { "nvim-lua/plenary.nvim" }, 67 | lazy = true, 68 | }, 69 | { 70 | "nvim-treesitter/nvim-treesitter", 71 | }, 72 | { 73 | "akinsho/bufferline.nvim", 74 | }, 75 | { 76 | "nvim-lualine/lualine.nvim", 77 | dependencies = { "nvim-tree/nvim-web-devicons" }, 78 | }, 79 | { 80 | "nvim-tree/nvim-tree.lua", 81 | }, 82 | { 83 | "windwp/nvim-autopairs", 84 | event = "InsertEnter", 85 | }, 86 | { 87 | "p00f/nvim-ts-rainbow", 88 | lazy = true, 89 | }, 90 | { 91 | "neovim/nvim-lspconfig", 92 | lazy = true, 93 | }, 94 | { 95 | "williamboman/mason.nvim", 96 | build = ":MasonUpdate", 97 | lazy = true, 98 | }, 99 | { 100 | "hrsh7th/nvim-cmp", 101 | dependencies = { 102 | "neovim/nvim-lspconfig", 103 | "hrsh7th/cmp-nvim-lsp", 104 | "hrsh7th/cmp-buffer", 105 | "hrsh7th/cmp-path", 106 | "hrsh7th/cmp-cmdline", 107 | "L3MON4D3/LuaSnip", 108 | }, 109 | lazy = true, 110 | }, 111 | { 112 | "xiyaowong/transparent.nvim", 113 | lazy = false, 114 | } 115 | }) 116 | 117 | --vim.cmd.colorscheme("base16-gruvbox-dark-soft") 118 | vim.cmd.colorscheme("gruvbox") 119 | 120 | require("nvim-treesitter.configs").setup({ 121 | ensure_installed = { "make", "lua", "c", "cpp" }, 122 | sync_install = true, 123 | auto_install = true, 124 | indent = { 125 | enable = true, 126 | }, 127 | highlight = { 128 | enable = true, 129 | }, 130 | rainbow = { 131 | enable = true, 132 | extended_mode = true, 133 | max_file_lines = nil, 134 | }, 135 | }) 136 | 137 | require("bufferline").setup({ 138 | options = { 139 | -- diagnostics = "nvim_lsp", 140 | offsets = {{ 141 | filetype = "NvimTree", 142 | text = "File Explorer", 143 | highlight = "Directory", 144 | text_align = "left", 145 | }}, 146 | } 147 | }) 148 | 149 | require("lualine").setup({ 150 | options = { 151 | theme = "gruvbox", 152 | } 153 | }) 154 | 155 | vim.g.loaded_netrw = 1 156 | vim.g.loaded_netrwPlugin = 1 157 | 158 | require("nvim-tree").setup({}) 159 | vim.keymap.set("n", "t", ":NvimTreeToggle") 160 | 161 | require("nvim-autopairs").setup({ 162 | disable_filetype = { "TelescopePrompt" , "vim" }, 163 | }) 164 | 165 | require("mason").setup({}) 166 | 167 | local capabilities = require("cmp_nvim_lsp").default_capabilities() 168 | 169 | require("lspconfig").clangd.setup({ 170 | cmd = { 171 | "clangd", 172 | "--background-index", 173 | "--suggest-missing-includes", 174 | "--header-insertion=never", 175 | "--compile-commands-dir=build", 176 | }, 177 | filetypes = { "c", "cpp" }, 178 | capabilities = capabilities, 179 | }) 180 | 181 | require("transparent").setup({ 182 | --groups = { -- table: default groups 183 | -- 'Normal', 'NormalNC', 'Comment', 'Constant', 'Special', 'Identifier', 184 | -- 'Statement', 'PreProc', 'Type', 'Underlined', 'Todo', 'String', 'Function', 185 | -- 'Conditional', 'Repeat', 'Operator', 'Structure', 'LineNr', 'NonText', 186 | -- 'SignColumn', 'CursorLineNr', 'EndOfBuffer', 187 | --}, 188 | groups = {}, 189 | extra_groups = {}, -- table: additional groups that should be cleared 190 | exclude_groups = {}, -- table: groups you don't want to clear 191 | }) 192 | 193 | -- CMPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 194 | local cmp_status_ok, cmp = pcall(require, "cmp") 195 | if not cmp_status_ok then 196 | return 197 | end 198 | 199 | local snip_status_ok, luasnip = pcall(require, "luasnip") 200 | if not snip_status_ok then 201 | return 202 | end 203 | 204 | require("luasnip.loaders.from_vscode").lazy_load() 205 | 206 | -- 下面会用到这个函数 207 | local check_backspace = function() 208 | local col = vim.fn.col "." - 1 209 | return col == 0 or vim.fn.getline("."):sub(col, col):match "%s" 210 | end 211 | 212 | cmp.setup({ 213 | snippet = { 214 | expand = function(args) 215 | require('luasnip').lsp_expand(args.body) 216 | end, 217 | }, 218 | mapping = cmp.mapping.preset.insert({ 219 | [''] = cmp.mapping.scroll_docs(-4), 220 | [''] = cmp.mapping.scroll_docs(4), 221 | [''] = cmp.mapping.abort(), -- 取消补全,esc也可以退出 222 | [''] = cmp.mapping.abort(), 223 | [''] = cmp.mapping.confirm({ select = true }), 224 | 225 | [""] = cmp.mapping(function(fallback) 226 | if cmp.visible() then 227 | cmp.select_next_item() 228 | elseif luasnip.expandable() then 229 | luasnip.expand() 230 | elseif luasnip.expand_or_jumpable() then 231 | luasnip.expand_or_jump() 232 | elseif check_backspace() then 233 | fallback() 234 | else 235 | fallback() 236 | end 237 | end, { 238 | "i", 239 | "s", 240 | }), 241 | 242 | [""] = cmp.mapping(function(fallback) 243 | if cmp.visible() then 244 | cmp.select_prev_item() 245 | elseif luasnip.jumpable(-1) then 246 | luasnip.jump(-1) 247 | else 248 | fallback() 249 | end 250 | end, { 251 | "i", 252 | "s", 253 | }), 254 | }), 255 | 256 | -- 这里重要 257 | sources = cmp.config.sources({ 258 | { name = 'nvim_lsp' }, 259 | { name = 'luasnip' }, 260 | { name = 'path' }, 261 | }, { 262 | { name = 'buffer' }, 263 | }) 264 | }) 265 | 266 | -------------------------------------------------------------------------------- /settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.fontFamily": "JetBrainsMonoNL NFM:style=Bold", 3 | "workbench.tree.indent": 16, 4 | "workbench.colorTheme": "Gruvbox Dark Medium", 5 | "clangd.arguments": [ 6 | "--header-insertion=never", 7 | "--compile-commands-dir=build", 8 | "--clang-tidy" 9 | ], 10 | "editor.codeLensFontFamily": "JetBrainsMonoNL NFM:style=Bold", 11 | "editor.inlayHints.fontFamily": "JetBrainsMonoNL NFM:style=Bold", 12 | "debug.console.fontFamily": "JetBrainsMonoNL NFM:style=Bold", 13 | "scm.inputFontFamily": "JetBrainsMonoNL NFM:style=Bold", 14 | "terminal.integrated.fontFamily": "monospace", 15 | "workbench.hover.delay": 100, 16 | "extensions.experimental.affinity": { 17 | "ms-vscode.cmake-tools": 2, 18 | "llvm-vs-code-extensions.vscode-clangd": 3 19 | }, 20 | "editor.largeFileOptimizations": false, 21 | "editor.fontSize": 20 22 | } -------------------------------------------------------------------------------- /waybar/Waybar-3.0/border.css: -------------------------------------------------------------------------------- 1 | * { 2 | padding: 0; 3 | margin: 0; 4 | font-family: JetBrainsMono Nerd Font; 5 | font-weight: bold; 6 | font-size: 16px; 7 | background-color: rgba(30,32,48,1); /* Reduced opacity background */ 8 | } 9 | 10 | .modules-right { 11 | border-radius: 5px 0px 0px 5px; 12 | } 13 | 14 | window#waybar { 15 | background-color: rgba(0, 0, 0, 0); 16 | border: 1px solid #90cdfa; 17 | } 18 | 19 | #custom-launcher { 20 | font-size: 20px; 21 | color: #00bfff; 22 | padding-right: 10px; 23 | background-color: rgba(30,32,48,1); 24 | } 25 | 26 | #cpu, 27 | #memory, 28 | #temperature { 29 | font-size: 15px; 30 | background: #363a4f; 31 | margin-top: 5px; 32 | margin-bottom: 5px; 33 | } 34 | 35 | #cpu { 36 | color: #eed49f; 37 | padding: 0px 10px 0px 12px; 38 | border-radius: 5px 0px 0px 5px; 39 | } 40 | 41 | #memory { 42 | color: #a6da95; 43 | padding: 0px 10px 0px 0px; 44 | } 45 | 46 | #temperature { 47 | color: #8aadf4; 48 | padding: 0px 12px 0px 0px; 49 | border-radius: 0px 5px 5px 0px; 50 | } 51 | 52 | #custom-window-name { 53 | color: #68b0d6; 54 | margin-right: 10px; 55 | background-color: rgba(30,32,48,1); 56 | } 57 | 58 | #custom-pacman-update-icon { 59 | background-color: #68b0d6; 60 | color: #181926; 61 | padding-left: 5px; 62 | padding-right: 5px; 63 | margin-top: 5px; 64 | margin-bottom: 5px; 65 | border-radius: 5px; 66 | } 67 | 68 | /* ... (other styles) ... */ 69 | 70 | #clock { 71 | padding-left: 10px; 72 | } 73 | 74 | /*# sourceMappingURL=style.css.map */ 75 | 76 | -------------------------------------------------------------------------------- /waybar/Waybar-3.0/config: -------------------------------------------------------------------------------- 1 | { 2 | "layer": "top", 3 | "height": 20, 4 | "margin-top": 5, 5 | "margin-left": 10, 6 | "margin-bottom": -15, 7 | "margin-right": 10, 8 | "spacing": 0, 9 | 10 | "modules-left": [ 11 | "custom/launcher", 12 | "custom/separator", 13 | "cpu", 14 | "memory", 15 | "temperature", 16 | "custom/filler", 17 | "custom/playerctl", 18 | "custom/filler", 19 | "disk", 20 | "custom/filler", 21 | "custom/pacman" 22 | ], 23 | "modules-center": ["hyprland/workspaces"], 24 | "modules-right": [ 25 | "battery", 26 | "custom/dot", 27 | "backlight", 28 | "pulseaudio", 29 | "custom/dot", 30 | "custom/separator", 31 | "network", 32 | "custom/dot", 33 | "clock" 34 | ], 35 | "custom/playerctl": { 36 | "format": "[ {} ]", 37 | "return-type": "json", 38 | "max-length": 55, 39 | "exec": "playerctl -a metadata --format '{\"text\": \"{{playerName}}\"}' -F", 40 | "on-click": "playerctl play-pause", 41 | "on-click-middle": "playerctl previous", 42 | "on-click-right": "playerctl next", 43 | "format-icons": { 44 | "Playing": "", 45 | "Paused": " 󰏥 ", 46 | }, 47 | }, 48 | "custom/uptime": { 49 | "format": " {}", 50 | "interval": 30, 51 | "exec": "$HOME/.local/bin/upt2", 52 | "on-click" : "", 53 | }, 54 | "disk": { 55 | "interval": 1, 56 | "format": " {}%", 57 | "on-click": "filelight /", 58 | "on-click-right": "filelight /home/" 59 | }, 60 | "hyprland/workspaces": { 61 | "all-outputs": true, 62 | "active-only": false, 63 | "on-click": "activate", 64 | "format": "{icon}", 65 | "on-scroll-up": "hyprctl dispatch workspace e+1", 66 | "on-scroll-down": "hyprctl dispatch workspace e-1", 67 | "format-icons": { 68 | "1": "", 69 | "2": "", 70 | "3": "", 71 | "4": "", 72 | "5": "", 73 | "6": "", 74 | "7": "", 75 | "8": "", 76 | "9": "", 77 | "urgent": "", 78 | "active": "", 79 | "default": "" 80 | } 81 | }, 82 | "tray": { 83 | "icon-size": 20, 84 | "spacing": 8 85 | }, 86 | "custom/filler": { 87 | "format": " " 88 | }, 89 | "custom/dot": { 90 | "format": " " 91 | }, 92 | "custom/clock-icon": { 93 | "format": "" 94 | }, 95 | 96 | "clock": { 97 | "format": "{:%I:%M %p }", 98 | "format-alt": "{:%a.%d,%b}", 99 | "tooltip-format": "{:%B %Y}\n{calendar}" 100 | }, 101 | 102 | "cpu": { 103 | "interval": 10, 104 | "format": " {usage}% ", 105 | "max-length": 10, 106 | "on-click": "htop" 107 | }, 108 | "memory": { 109 | "interval": 30, 110 | "format": " {}% ", 111 | "format-alt": " {used:0.1f}G", 112 | "max-length": 10, 113 | "on-click-right": "htop" 114 | }, 115 | "backlight": { 116 | "device": "amdgpu_bl1", 117 | "format": "{icon} {percent} ", 118 | "tooltip": false, 119 | "format-icons": ["", "", "", "", "", "", "", "", ""] 120 | }, 121 | "network": { 122 | "format-wifi": "󰒢 {essid}", 123 | "format-alt" : "󰒢 {bandwidthTotalBits}", 124 | "on-click": "", 125 | "on-click-right": "nm-connection-editor", 126 | "format-ethernet": " wired", 127 | "tooltip-format": "{essid} {signalStrength}%", 128 | "format-disconnected": "" 129 | }, 130 | 131 | "pulseaudio": { 132 | "format": "{icon} {volume}", 133 | "format-bluetooth": " {volume}", 134 | "format-bluetooth-muted": " ", 135 | "tooltip": false, 136 | "format-muted": "", 137 | "format-icons": { 138 | "default": ["󰝟", "", "󰕾" , ""] 139 | }, 140 | "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", 141 | "on-click-right": "pavucontrol" 142 | }, 143 | "battery": { 144 | "bat": "BAT0", 145 | "interval": 10, 146 | "states": { 147 | "warning": 30, 148 | "critical": 15 149 | }, 150 | "format": " {icon} {capacity}%", 151 | "format-charging": "󰂄 {capacity}%", 152 | "format-icons": ["", "", "", "", "", "", "", "", "", ""], 153 | "max-length": 25, 154 | "tooltip": false 155 | }, 156 | "custom/right-arr": { 157 | "format": "  " 158 | }, 159 | "custom/launcher": { 160 | "format": " 󰣇" 161 | }, 162 | "custom/separator": { 163 | "format": " " 164 | }, 165 | "custom/window-name": { 166 | "format": " {}", 167 | "interval": 1, 168 | "exec": "hyprctl activewindow | grep class | awk '{print $2}'" 169 | }, 170 | 171 | "custom/pacman": { 172 | "format": "  ", 173 | "on-click": "blueberry" 174 | }, 175 | "custom-pacman-update-icon-background": { 176 | "format": "" 177 | }, 178 | "custom/pacman-update-icon": { 179 | "format": "" 180 | }, 181 | "custom/pacman-update": { 182 | "format": " {}", 183 | "interval": 3600, 184 | "exec": "checkupdates | wc -l", 185 | "signal": 8 186 | }, 187 | "custom/window-icon": {}, 188 | 189 | "temperature": { 190 | "thermal-zone": 0, 191 | "critical-threshold": 80, 192 | "format-critical": " {temperatureC}°C", 193 | "format": " {temperatureC}°C" 194 | }, 195 | 196 | "custom/wrap-left": { 197 | "format": "[" 198 | }, 199 | 200 | "custom/wrap-right": { 201 | "format": "]" 202 | } 203 | } 204 | -------------------------------------------------------------------------------- /waybar/Waybar-3.0/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "include": "~/.config/waybar/configs/custom_modules/modules", 3 | "layer": "top", 4 | "height": 35, 5 | "margin-top": 10, 6 | "margin-left": 10, 7 | "margin-bottom": 0, 8 | "margin-right": 10, 9 | "spacing": 0, 10 | 11 | "modules-left": [ 12 | "custom/launcher", 13 | "custom/separator", 14 | "cpu", 15 | "memory", 16 | "temperature", 17 | "custom/separator", 18 | "custom/window-name", 19 | "custom/pacman-update-icon", 20 | "custom/pacman-update", 21 | "tray" 22 | ], 23 | 24 | "modules-center": ["wlr/workspaces"], 25 | "modules-right": [ 26 | "battery", 27 | "backlight", 28 | "pulseaudio", 29 | "custom/right-arr", 30 | "network", 31 | "custom/clock-icon", 32 | "clock" 33 | ], 34 | 35 | "wlr/workspaces": { 36 | "all-outputs": true, 37 | "active-only": false, 38 | "on-click": "activate", 39 | "format": "{icon}", 40 | "on-scroll-up": "hyprctl dispatch workspace e+1", 41 | "on-scroll-down": "hyprctl dispatch workspace e-1", 42 | "format-icons": { 43 | "1": "", 44 | "2": "", 45 | "3": "", 46 | "4": "", 47 | "5": "", 48 | "6": "", 49 | "urgent": "", 50 | "active": "", 51 | "default": "" 52 | } 53 | }, 54 | 55 | "tray": { 56 | "icon-size": 20, 57 | "spacing": 8 58 | }, 59 | 60 | "custom/clock-icon": { 61 | "format": "" 62 | }, 63 | 64 | "clock": { 65 | "format": "{:%I:%M %p}", 66 | "format-alt": "{:%a.%d,%b}", 67 | "tooltip-format": "{:%B %Y}\n{calendar}" 68 | }, 69 | 70 | "cpu": { 71 | "interval": 10, 72 | "format": " {usage}%", 73 | "max-length": 10, 74 | "tooltip": false 75 | }, 76 | "memory": { 77 | "interval": 30, 78 | "format": " {used}GiB", 79 | "format-alt": " {used:0.1f}G", 80 | "max-length": 10 81 | }, 82 | "backlight": { 83 | "device": "amdgpu_bl1", 84 | "format": "{icon} {percent}", 85 | "tooltip": false, 86 | "format-icons": ["", "", ""] 87 | }, 88 | "network": { 89 | "format-wifi": " {essid}", 90 | "on-click": "", 91 | "format-ethernet": " wired", 92 | "tooltip": false, 93 | "format-disconnected": "" 94 | }, 95 | 96 | "pulseaudio": { 97 | "format": "{icon} {volume}", 98 | "format-bluetooth": " ", 99 | "format-bluetooth-muted": " ", 100 | "tooltip": false, 101 | "format-muted": "", 102 | "format-icons": { 103 | "default": ["", "", ""] 104 | }, 105 | "on-click": "pavucontrol" 106 | }, 107 | "battery": { 108 | "bat": "BAT1", 109 | "interval": 30, 110 | "states": { 111 | "warning": 30, 112 | "critical": 15 113 | }, 114 | "format": "{icon} {capacity}%", 115 | "format-charging": " {icon} {capacity}%", 116 | "format-icons": [" ", " ", " ", " "], 117 | "max-length": 25, 118 | "tooltip": false 119 | }, 120 | "custom/right-arr": { 121 | "format": "  " 122 | }, 123 | "custom/launcher": { 124 | "format": "" 125 | }, 126 | "custom/separator": { 127 | "format": " " 128 | }, 129 | "custom/window-name": { 130 | "format": "{}", 131 | "interval": 1, 132 | "exec": "hyprctl activewindow | grep class | awk '{print $2}'" 133 | }, 134 | 135 | "custom-pacman-update-icon-background": { 136 | "format": "" 137 | }, 138 | "custom/pacman-update-icon": { 139 | "format": "" 140 | }, 141 | "custom/pacman-update": { 142 | "format": " {}", 143 | "interval": 3600, 144 | "exec": "checkupdates | wc -l", 145 | "signal": 8 146 | }, 147 | "custom/window-icon": {}, 148 | 149 | "temperature": { 150 | "thermal-zone": 0, 151 | "critical-threshold": 80, 152 | "format-critical": " {temperatureC}°C", 153 | "format": " {temperatureC}°C" 154 | }, 155 | 156 | "custom/wrap-left": { 157 | "format": "[" 158 | }, 159 | 160 | "custom/wrap-right": { 161 | "format": "]" 162 | } 163 | } 164 | -------------------------------------------------------------------------------- /waybar/Waybar-3.0/configs/custom_modules/modules: -------------------------------------------------------------------------------- 1 | { 2 | "include": "./configs/custom_modules/privacy_container", 3 | "custom/dot": { 4 | "format": "", 5 | "tooltip": false 6 | }, 7 | "custom/dot-alt": { 8 | "format": "", 9 | "tooltip": false 10 | }, 11 | } 12 | -------------------------------------------------------------------------------- /waybar/Waybar-3.0/configs/custom_modules/privacy_container: -------------------------------------------------------------------------------- 1 | { 2 | "custom/left": { 3 | "format": "{}", 4 | "tooltip": false, 5 | "interval": 1, 6 | "exec": "~/.config/waybar/scripts/custom/privacy-test.sh l" 7 | }, 8 | "custom/right": { 9 | "format": "{}", 10 | "tooltip": false, 11 | "interval": 1, 12 | "exec": "~/.config/waybar/scripts/custom/privacy-test.sh r" 13 | }, 14 | "custom/priv-speaker": { 15 | "format": "{}", 16 | "tooltip": false, 17 | "interval": 1, 18 | "exec": "~/.config/waybar/scripts/custom/privacy-test.sh S" 19 | }, 20 | "custom/priv-mic": { 21 | "format": "{}", 22 | "tooltip": false, 23 | "interval": 1, 24 | "exec": "~/.config/waybar/scripts/custom/privacy-test.sh M" 25 | }, 26 | "custom/priv-cam": { 27 | "format": "{}", 28 | "tooltip": false, 29 | "interval": 1, 30 | "exec": "~/.config/waybar/scripts/custom/privacy-test.sh C" 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /waybar/Waybar-3.0/kartorias1 Hyprland-dotfiles main waybar.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HeaoYe/config/61daba7eff66a6da8ce21fda1c908e2945e3a458/waybar/Waybar-3.0/kartorias1 Hyprland-dotfiles main waybar.zip -------------------------------------------------------------------------------- /waybar/Waybar-3.0/scripts/checkupdates: -------------------------------------------------------------------------------- 1 | #!/usr/bin/bash 2 | # 3 | # checkupdates: Safely print a list of pending updates. 4 | # 5 | # Copyright (c) 2013 Kyle Keen 6 | # 7 | # This program is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 2 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # This program is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | # 20 | 21 | declare -r myname='checkupdates' 22 | declare -r myver='1.0.0' 23 | 24 | plain() { 25 | ((QUIET)) && return 26 | local mesg=$1 27 | shift 28 | printf "${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1 29 | } 30 | 31 | msg() { 32 | ((QUIET)) && return 33 | local mesg=$1 34 | shift 35 | printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1 36 | } 37 | 38 | msg2() { 39 | ((QUIET)) && return 40 | local mesg=$1 41 | shift 42 | printf "${BLUE} ->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1 43 | } 44 | 45 | ask() { 46 | local mesg=$1 47 | shift 48 | printf "${BLUE}::${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&1 49 | } 50 | 51 | warning() { 52 | local mesg=$1 53 | shift 54 | printf "${YELLOW}==> $(gettext "WARNING:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2 55 | } 56 | 57 | error() { 58 | local mesg=$1 59 | shift 60 | printf "${RED}==> $(gettext "ERROR:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2 61 | } 62 | 63 | # check if messages are to be printed using color 64 | unset ALL_OFF BOLD BLUE GREEN RED YELLOW 65 | if [[ -t 2 && ! $USE_COLOR = "n" ]]; then 66 | # prefer terminal safe colored and bold text when tput is supported 67 | if tput setaf 0 &>/dev/null; then 68 | ALL_OFF="$(tput sgr0)" 69 | BOLD="$(tput bold)" 70 | BLUE="${BOLD}$(tput setaf 4)" 71 | GREEN="${BOLD}$(tput setaf 2)" 72 | RED="${BOLD}$(tput setaf 1)" 73 | YELLOW="${BOLD}$(tput setaf 3)" 74 | else 75 | ALL_OFF="\e[1;0m" 76 | BOLD="\e[1;1m" 77 | BLUE="${BOLD}\e[1;34m" 78 | GREEN="${BOLD}\e[1;32m" 79 | RED="${BOLD}\e[1;31m" 80 | YELLOW="${BOLD}\e[1;33m" 81 | fi 82 | fi 83 | readonly ALL_OFF BOLD BLUE GREEN RED YELLOW 84 | 85 | if (($# > 0)); then 86 | echo "${myname} v${myver}" 87 | echo 88 | echo "Safely print a list of pending updates" 89 | echo 90 | echo "Usage: ${myname}" 91 | echo 92 | echo 'Note: Export the "CHECKUPDATES_DB" variable to change the path of the temporary database.' 93 | exit 0 94 | fi 95 | 96 | if ! type -P fakeroot >/dev/null; then 97 | error 'Cannot find the fakeroot binary.' 98 | exit 1 99 | fi 100 | 101 | if [[ -z $CHECKUPDATES_DB ]]; then 102 | CHECKUPDATES_DB="${TMPDIR:-/tmp}/checkup-db-${USER}/" 103 | fi 104 | 105 | trap 'rm -f $CHECKUPDATES_DB/db.lck' INT TERM EXIT 106 | 107 | DBPath="$(pacman-conf DBPath)" 108 | if [[ -z "$DBPath" ]] || [[ ! -d "$DBPath" ]]; then 109 | DBPath="/var/lib/pacman/" 110 | fi 111 | 112 | mkdir -p "$CHECKUPDATES_DB" 113 | ln -s "${DBPath}/local" "$CHECKUPDATES_DB" &>/dev/null 114 | if ! fakeroot -- pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &>/dev/null; then 115 | error 'Cannot fetch updates' 116 | exit 1 117 | fi 118 | pacman -Qu --dbpath "$CHECKUPDATES_DB" 2>/dev/null | grep -v '\[.*\]' 119 | 120 | exit 0 121 | 122 | # vim: set noet: 123 | -------------------------------------------------------------------------------- /waybar/Waybar-3.0/scripts/custom/privacy-test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # pactl is required 3 | # passing arg 4 | 5 | check=$(pactl list short | grep -E "RUNNING.*alsa_output|alsa_output.*RUNNING") 6 | check_mic=$(pactl list short | grep -E "RUNNING.*alsa_input|alsa_input.*RUNNING") 7 | check_webcam=$(lsof /dev/video0 | grep mem) 8 | 9 | speaker_check() { 10 | 11 | if [ -z "$check" ]; then 12 | echo "" 13 | else 14 | echo "󪤁" 15 | fi 16 | 17 | } 18 | 19 | mic_check() { 20 | 21 | if [ -z "$check_mic" ]; then 22 | echo "" 23 | else 24 | echo "󪥀" 25 | fi 26 | } 27 | 28 | cam_check() { 29 | 30 | if [ -z "$check_webcam" ]; then 31 | echo "" 32 | else 33 | echo "󪤧" 34 | fi 35 | 36 | } 37 | 38 | left() { 39 | if [ -n "$check" ] || [ -n "$check_webcam" ] || [ -n "$check_mic" ]; then 40 | echo " " 41 | else 42 | echo "" 43 | fi 44 | } 45 | 46 | right() { 47 | if [ -n "$check" ] || [ -n "$check_webcam" ] || [ -n "$check_mic" ]; then 48 | echo " " 49 | else 50 | echo "" 51 | fi 52 | } 53 | 54 | if [ "$1" == "S" ]; then 55 | speaker_check 56 | elif [ "$1" == "M" ]; then 57 | mic_check 58 | elif [ "$1" == "C" ]; then 59 | cam_check 60 | elif [ "$1" == "l" ]; then 61 | left 62 | elif [ "$1" == "r" ]; then 63 | right 64 | else 65 | exit 66 | fi 67 | -------------------------------------------------------------------------------- /waybar/Waybar-3.0/scripts/pacman-update-icon.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | pkgs=$(checkupdates 2>/dev/null | wc -l) 4 | 5 | if [ "$pkgs" == 0 ]; then 6 | echo "" 7 | else 8 | echo $pkgs 9 | fi 10 | -------------------------------------------------------------------------------- /waybar/Waybar-3.0/scripts/rofi-wifi-menu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | notify-send "Getting list of available Wi-Fi networks..." 4 | # Get a list of available wifi connections and morph it into a nice-looking list 5 | wifi_list=$(nmcli --fields "SECURITY,SSID" device wifi list | sed 1d | sed 's/ */ /g' | sed -E "s/WPA*.?\S/ /g" | sed "s/^--/ /g" | sed "s/ //g" | sed "/--/d") 6 | 7 | connected=$(nmcli -fields WIFI g) 8 | if [[ "$connected" =~ "enabled" ]]; then 9 | toggle="睊 Disable Wi-Fi" 10 | elif [[ "$connected" =~ "disabled" ]]; then 11 | toggle="直 Enable Wi-Fi" 12 | fi 13 | 14 | # Use rofi to select wifi network 15 | chosen_network=$(echo -e "$toggle\n$wifi_list" | uniq -u | rofi -dmenu -i -selected-row 1 -p "Wi-Fi SSID: " ) 16 | # Get name of connection 17 | chosen_id=$(echo "${chosen_network:3}" | xargs) 18 | 19 | if [ "$chosen_network" = "" ]; then 20 | exit 21 | elif [ "$chosen_network" = "直 Enable Wi-Fi" ]; then 22 | nmcli radio wifi on 23 | elif [ "$chosen_network" = "睊 Disable Wi-Fi" ]; then 24 | nmcli radio wifi off 25 | else 26 | # Message to show when connection is activated successfully 27 | success_message="You are now connected to the Wi-Fi network \"$chosen_id\"." 28 | # Get saved connections 29 | saved_connections=$(nmcli -g NAME connection) 30 | if [[ $(echo "$saved_connections" | grep -w "$chosen_id") = "$chosen_id" ]]; then 31 | nmcli connection up id "$chosen_id" | grep "successfully" && notify-send "Connection Established" "$success_message" 32 | else 33 | if [[ "$chosen_network" =~ "" ]]; then 34 | wifi_password=$(rofi -dmenu -p "Password: " ) 35 | fi 36 | nmcli device wifi connect "$chosen_id" password "$wifi_password" | grep "successfully" && notify-send "Connection Established" "$success_message" 37 | fi 38 | fi 39 | -------------------------------------------------------------------------------- /waybar/Waybar-3.0/scripts/title/icon_check.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | 4 | app_name=$(hyprctl activewindow | grep -oP 'class: \K[^\s]+') 5 | 6 | if [ -z "$app_name" ]; then 7 | echo "" 8 | else 9 | echo "󪥒" 10 | fi 11 | -------------------------------------------------------------------------------- /waybar/Waybar-3.0/scripts/window-name.sh: -------------------------------------------------------------------------------- 1 | #!/bin/env bash 2 | 3 | hyprctl activewindow | grep -oP 'class: \K[^\s]+' 4 | -------------------------------------------------------------------------------- /waybar/Waybar-3.0/style-og.css: -------------------------------------------------------------------------------- 1 | * { 2 | padding: 0; 3 | margin: 0; 4 | background-color: rgba(30,32,48,1); 5 | font-family: JetBrainsMono Nerd Font; 6 | font-size: 16px; 7 | } 8 | 9 | window#waybar { 10 | background-color: rgba(0, 0, 0, 0); 11 | } 12 | 13 | .modules-left { 14 | background-color: #1e2030; 15 | border-radius: 8px; 16 | padding-right: 15px; 17 | padding-left: 15px; 18 | } 19 | 20 | .modules-center { 21 | background-color: #1e2030; 22 | border-radius: 8px; 23 | padding-right: 10px; 24 | padding-left: 10px; 25 | } 26 | 27 | .modules-right { 28 | background-color: #1e2030; 29 | border-radius: 8px; 30 | padding-right: 15px; 31 | padding-left: 15px; 32 | } 33 | 34 | #custom-launcher { 35 | font-size: 20px; 36 | color: #00bfff; /* deepskyblue */ 37 | padding-right: 10px; 38 | } 39 | 40 | #cpu, 41 | #memory, 42 | #temperature { 43 | font-size: 14px; 44 | background: #363a4f; 45 | margin-top: 5px; 46 | margin-bottom: 5px; 47 | } 48 | 49 | #cpu { 50 | color: #eed49f; 51 | padding: 0px 10px 0px 12px; 52 | border-radius: 5px 0px 0px 5px; 53 | } 54 | 55 | #memory { 56 | color: #a6da95; 57 | padding: 0px 10px 0px 0px; 58 | } 59 | 60 | #temperature { 61 | color: #8aadf4; 62 | padding: 0px 12px 0px 0px; 63 | border-radius: 0px 5px 5px 0px; 64 | } 65 | 66 | #custom-window-name { 67 | margin-right: 10px; 68 | color: #cad3f5; 69 | } 70 | 71 | #custom-pacman-update-icon { 72 | background-color: #8bd5ca; 73 | color: #181926; 74 | padding-left: 5px; 75 | padding-right: 5px; 76 | margin-top: 5px; 77 | margin-bottom: 5px; 78 | border-radius: 5px; 79 | } 80 | 81 | #custom-pacman-update { 82 | color: #8bd5ca; 83 | margin: 5px 5px 5px 0px; 84 | } 85 | 86 | #workspaces button:nth-child(1) label { 87 | color: #8aadf4; 88 | margin: 0px 8px; 89 | } 90 | 91 | #workspaces button:nth-child(2) label { 92 | color: #ed8796; 93 | margin: 0px 8px; 94 | } 95 | 96 | #workspaces button:nth-child(3) label { 97 | color: #a6da95; 98 | margin: 0px 8px; 99 | } 100 | 101 | #workspaces button:nth-child(4) label { 102 | color: #c6a0f6; 103 | margin: 0px 8px; 104 | } 105 | 106 | #workspaces button:nth-child(5) label { 107 | color: #f4dbd6; 108 | margin: 0px 8px; 109 | } 110 | 111 | #workspaces button:nth-child(6) label { 112 | color: #f5a97f; 113 | margin: 0px 8px; 114 | } 115 | 116 | #battery { 117 | color: #a6da95; 118 | margin: 0px 10px 0px 0px; 119 | } 120 | 121 | #pulseaudio, 122 | #backlight { 123 | font-size: 14px; 124 | background: #363a4f; 125 | margin-top: 5px; 126 | margin-bottom: 5px; 127 | } 128 | 129 | #backlight { 130 | color: #eed49f; 131 | padding: 0px 10px 0px 10px; 132 | border-radius: 5px 0px 0px 5px; 133 | } 134 | 135 | #pulseaudio { 136 | color: #91d7e3; 137 | padding: 0px 10px 0px 0px; 138 | border-radius: 0px 5px 5px 0px; 139 | } 140 | 141 | #custom-right-arr { 142 | color: #8aadf4; 143 | } 144 | 145 | #network { 146 | color: #c6a0f6; 147 | margin-right: 10px; 148 | } 149 | 150 | #custom-dot { 151 | color: #6e738d; 152 | padding-left: 10px; 153 | padding-right: 10px; 154 | } 155 | 156 | #custom-playerctl { 157 | background: #0c0e0f; 158 | padding: 0px 5px 0px 10px; 159 | border-radius: 16px; 160 | margin: 5px 7px; 161 | font-weight: normal; 162 | font-style: normal; 163 | font-size: 16px; 164 | } 165 | 166 | #custom-dot-alt { 167 | color: #a5adcb; 168 | padding-left: 10px; 169 | padding-right: 10px; 170 | } 171 | 172 | #custom-clock-icon { 173 | background-color: #cad3f5; 174 | color: #181926; 175 | padding-left: 10px; 176 | padding-right: 10px; 177 | margin-top: 5px; 178 | margin-bottom: 5px; 179 | border-radius: 5px; 180 | } 181 | 182 | #clock { 183 | padding-left: 10px; 184 | color: #cad3f5; 185 | } 186 | 187 | /*# sourceMappingURL=style.css.map */ 188 | -------------------------------------------------------------------------------- /waybar/Waybar-3.0/style-tokyo.css: -------------------------------------------------------------------------------- 1 | * { 2 | padding: 0; 3 | margin: 0; 4 | font-family: JetBrainsMono Nerd Font; 5 | font-size: 16px; 6 | } 7 | 8 | window#waybar { 9 | background-color: rgba(0, 0, 0, 0); 10 | } 11 | 12 | .modules-left { 13 | background-color: #1e2030; 14 | border-radius: 8px; 15 | padding-right: 15px; 16 | padding-left: 15px; 17 | } 18 | 19 | .modules-center { 20 | background-color: #1e2030; 21 | border-radius: 8px; 22 | padding-right: 15px; 23 | padding-left: 15px; 24 | } 25 | 26 | .modules-right { 27 | background-color: #1e2030; 28 | border-radius: 8px; 29 | padding-right: 15px; 30 | padding-left: 15px; 31 | } 32 | 33 | #custom-launcher { 34 | font-size: 20px; 35 | color: #ff005f; 36 | padding-right: 10px; 37 | } 38 | 39 | #cpu, 40 | #memory{ 41 | font-size: 15px; 42 | background: #363a4f; 43 | margin-top: 5px; 44 | margin-bottom: 5px; 45 | } 46 | 47 | #cpu { 48 | color: #eed49f; 49 | padding: 0px 10px 0px 12px; 50 | border-radius: 5px 0px 0px 5px; 51 | } 52 | 53 | #memory { 54 | color: #a6da95; 55 | padding: 0px 10px 0px 0px; 56 | border-radius: 0px 5px 5px 0px; 57 | } 58 | 59 | #temperature { 60 | color: #8aadf4; 61 | padding: 0px 12px 0px 0px; 62 | border-radius: 0px 5px 5px 0px; 63 | } 64 | 65 | #custom-window-name { 66 | margin-right: 10px; 67 | } 68 | 69 | #custom-pacman-update-icon { 70 | background-color: #8bd5ca; 71 | color: #181926; 72 | padding-left: 5px; 73 | padding-right: 5px; 74 | margin-top: 5px; 75 | margin-bottom: 5px; 76 | border-radius: 5px; 77 | } 78 | 79 | #custom-pacman-update { 80 | color: #8bd5ca; 81 | margin: 5px 10px 5px 0px; 82 | } 83 | 84 | #workspaces button:nth-child(1) label { 85 | color: #8aadf4; 86 | margin: 0px 8px; 87 | } 88 | 89 | #workspaces button:nth-child(2) label { 90 | color: #ed8796; 91 | margin: 0px 8px; 92 | } 93 | 94 | #workspaces button:nth-child(3) label { 95 | color: #a6da95; 96 | margin: 0px 8px; 97 | } 98 | 99 | #workspaces button:nth-child(4) label { 100 | color: #c6a0f6; 101 | margin: 0px 8px; 102 | } 103 | 104 | #workspaces button:nth-child(5) label { 105 | color: #f4dbd6; 106 | margin: 0px 8px; 107 | } 108 | 109 | #workspaces button:nth-child(6) label { 110 | color: #f5a97f; 111 | margin: 0px 8px; 112 | } 113 | 114 | #workspaces button:nth-child(7) label { 115 | color: #f5a97f; 116 | margin: 0px 8px; 117 | } 118 | 119 | #workspaces button:nth-child(8) label { 120 | color: #f5a97f; 121 | margin: 0px 8px; 122 | } 123 | 124 | #workspaces button:nth-child(9) label { 125 | color: #f5a97f; 126 | margin: 0px 8px; 127 | } 128 | 129 | 130 | #battery { 131 | color: #a6da95; 132 | margin: 0px 10px 0px 0px; 133 | } 134 | 135 | #pulseaudio, 136 | #backlight { 137 | font-size: 15px; 138 | background: #363a4f; 139 | margin-top: 5px; 140 | margin-bottom: 5px; 141 | } 142 | 143 | #backlight { 144 | color: #eed49f; 145 | padding: 0px 10px 0px 10px; 146 | border-radius: 5px 0px 0px 5px; 147 | } 148 | 149 | #pulseaudio { 150 | color: #91d7e3; 151 | padding: 0px 10px 0px 0px; 152 | border-radius: 0px 5px 5px 0px; 153 | } 154 | 155 | #custom-right-arr { 156 | color: #8aadf4; 157 | } 158 | 159 | #custom-pacman { 160 | color: #8aadf4; 161 | } 162 | 163 | #network { 164 | color: #c6a0f6; 165 | margin-right: 10px; 166 | } 167 | 168 | #custom-dot { 169 | color: #6e738d; 170 | padding-right: 10px; 171 | } 172 | 173 | #custom-dot-alt { 174 | color: #a5adcb; 175 | padding-left: 10px; 176 | padding-right: 10px; 177 | } 178 | 179 | #custom-clock-icon { 180 | color: #cad3f5; 181 | padding-left: 10px; 182 | padding-right: 10px; 183 | margin-top: 5px; 184 | margin-bottom: 5px; 185 | border-radius: 5px; 186 | } 187 | 188 | #custom-filler { 189 | color: #cad3f5; 190 | padding-left: 0px; 191 | padding-right: 9px; 192 | margin-top: 5px; 193 | margin-bottom: 5px; 194 | border-radius: 5px; 195 | } 196 | 197 | #clock { 198 | padding-left: 10px; 199 | } 200 | 201 | /*# sourceMappingURL=style.css.map */ 202 | 203 | -------------------------------------------------------------------------------- /waybar/Waybar-3.0/style.css: -------------------------------------------------------------------------------- 1 | 2 | * { 3 | padding: 0; 4 | margin: 0; 5 | font-family: JetBrainsMono Nerd Font; 6 | font-weight: bold; 7 | font-size: 20px; 8 | background-color: #1a1c2b; /* Reduced opacity background */ 9 | } 10 | 11 | .modules-right { 12 | /* background-color: #1a1c2b; */ 13 | border-radius: 5px 0px 0px 5px; 14 | } 15 | 16 | window#waybar { 17 | background-color: rgba(0, 0, 0, 0); 18 | } 19 | 20 | #custom-launcher { 21 | font-size: 20px; 22 | color: #00bfff; 23 | padding-right: 10px; 24 | background-color: #1a1c2b; 25 | } 26 | 27 | /* #cpu, */ 28 | /* #memory */ 29 | /* #temperature{ */ 30 | /* font-size: 15px; */ 31 | /* margin-top: 5px; */ 32 | /* margin-bottom: 5px; */ 33 | /* background-color: #2a2d45; */ 34 | /* } */ 35 | /**/ 36 | /* #cpu { */ 37 | /* color: #eed49f; */ 38 | /* padding: 0px 10px 0px 12px; */ 39 | /* border-radius: 5px 0px 0px 5px; */ 40 | /* } */ 41 | /**/ 42 | /* #memory { */ 43 | /* color: #a6da95; */ 44 | /* padding: 0px 10px 0px 0px; */ 45 | /* } */ 46 | /**/ 47 | /* #temperature { */ 48 | /* color: #8aadf4; */ 49 | /* padding: 0px 12px 0px 0px; */ 50 | /* border-radius: 0px 5px 5px 0px; */ 51 | /* } */ 52 | 53 | #cpu, 54 | #memory, 55 | #temperature { 56 | font-size: 15px; 57 | background: #2a2d45; 58 | margin-top: 5px; 59 | margin-bottom: 5px; 60 | } 61 | 62 | #cpu { 63 | color: #eed49f; 64 | padding: 0px 10px 0px 12px; 65 | border-radius: 5px 0px 0px 5px; 66 | } 67 | 68 | #memory { 69 | color: #a6da95; 70 | padding: 0px 10px 0px 0px; 71 | } 72 | 73 | #temperature { 74 | color: #8aadf4; 75 | padding: 0px 12px 0px 0px; 76 | border-radius: 0px 5px 5px 0px; 77 | } 78 | 79 | #custom-window-name { 80 | color: #68b0d6; 81 | margin-right: 10px; 82 | background-color: #1a1c2b; 83 | } 84 | 85 | #custom-pacman-update-icon { 86 | background-color: #68b0d6; 87 | color: #181926; 88 | padding-left: 5px; 89 | padding-right: 5px; 90 | margin-top: 5px; 91 | margin-bottom: 5px; 92 | border-radius: 5px; 93 | } 94 | 95 | #custom-pacman-update { 96 | color: #8bd5ca; 97 | margin: 5px 10px 5px 0px; 98 | } 99 | 100 | #workspaces button:nth-child(1) label { 101 | color: #8aadf4; 102 | margin: 0px 8px; 103 | background-color: #1a1c2b; 104 | } 105 | 106 | #workspaces button:nth-child(2) label { 107 | color: #ed8796; 108 | margin: 0px 8px; 109 | background-color: #1a1c2b; 110 | } 111 | 112 | #workspaces button:nth-child(3) label { 113 | color: #a6da95; 114 | margin: 0px 8px; 115 | background-color: #1a1c2b; 116 | } 117 | 118 | #workspaces button:nth-child(4) label { 119 | color: #c6a0f6; 120 | margin: 0px 8px; 121 | background-color: #1a1c2b; 122 | } 123 | 124 | #workspaces button:nth-child(5) label { 125 | color: #f4dbd6; 126 | margin: 0px 8px; 127 | background-color: #1a1c2b; 128 | } 129 | 130 | #workspaces button:nth-child(6) label { 131 | color: #f5a97f; 132 | margin: 0px 8px; 133 | background-color: #1a1c2b; 134 | } 135 | 136 | #workspaces button:nth-child(7) label { 137 | color: #8bd5ca; 138 | margin: 0px 8px; 139 | background-color: #1a1c2b; 140 | } 141 | 142 | #workspaces button:nth-child(8) label { 143 | color: #68b0d6; 144 | margin: 0px 8px; 145 | background-color: #1a1c2b; 146 | } 147 | 148 | #workspaces button:nth-child(9) label { 149 | color: #aab1d3; 150 | margin: 0px 8px; 151 | background-color: #1a1c2b; 152 | } 153 | 154 | 155 | #battery { 156 | color: #a6da95; 157 | /* margin: 0px 10px 0px 0px; */ 158 | } 159 | 160 | #pulseaudio, 161 | #backlight { 162 | font-size: 15px; 163 | background-color: #2a2d45; 164 | margin-top: 5px; 165 | margin-bottom: 5px; 166 | } 167 | 168 | #backlight { 169 | color: #eed49f; 170 | padding: 0px 10px 0px 10px; 171 | border-radius: 5px 0px 0px 5px; 172 | } 173 | 174 | #pulseaudio { 175 | color: #91d7e3; 176 | padding: 0px 10px 0px 0px; 177 | border-radius: 0px 5px 5px 0px; 178 | } 179 | 180 | #custom-right-arr { 181 | color: #8aadf4; 182 | background-color: #1a1c2b; 183 | } 184 | 185 | #custom-pacman { 186 | color: #68b0d6; 187 | background-color: #1a1c2b; 188 | } 189 | 190 | #network { 191 | color: #c6a0f6; 192 | margin-right: 10px; 193 | background-color: #1a1c2b; 194 | } 195 | 196 | #custom-dot { 197 | color: #6e738d; 198 | padding-right: 10px; 199 | background-color: #1a1c2b; 200 | } 201 | 202 | #custom-dot-alt { 203 | color: #a5adcb; 204 | padding-left: 10px; 205 | padding-right: 10px; 206 | } 207 | 208 | #disk { 209 | color: #68b0d6; 210 | background-color: #1a1c2b; 211 | } 212 | 213 | #custom-clock-icon { 214 | color: #cad3f5; 215 | padding-left: 10px; 216 | padding-right: 10px; 217 | margin-top: 5px; 218 | margin-bottom: 5px; 219 | border-radius: 5px; 220 | } 221 | 222 | #custom-filler { 223 | color: #6e738d; 224 | padding-left: 0px; 225 | padding-right: 9px; 226 | margin-top: 5px; 227 | margin-bottom: 5px; 228 | border-radius: 5px; 229 | } 230 | 231 | #custom-filler2 { 232 | color: #6e738d; 233 | padding-left: 3px; 234 | padding-right: 9px; 235 | margin-top: 5px; 236 | margin-bottom: 5px; 237 | border-radius: 5px; 238 | } 239 | 240 | #clock { 241 | padding-left: 10px; 242 | color: #cad3f5; 243 | } 244 | 245 | #custom-playerctl { 246 | padding: 0px 5px 0px 10px; 247 | border-radius: 16px; 248 | margin: 5px 7px; 249 | font-weight: normal; 250 | font-style: normal; 251 | font-size: 16px; 252 | color: #bac3e5; 253 | } 254 | 255 | /*# sourceMappingURL=style.css.map */ 256 | 257 | -------------------------------------------------------------------------------- /waybar/Waybar-3.0/style.css.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sourceRoot":"","sources":["style.scss"],"names":[],"mappings":"AA+BA;EACE;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE,kBAfO;EAgBP;EACA;EACA;;;AAGF;EACE,kBAtBO;EAuBP;EACA;EACA;;;AAGF;EACE,kBA7BO;EA8BP;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;AAAA;AAAA;EAGE;EACA,YA/CS;EAgDT;EACA;;;AAGF;EACE,OApEO;EAqEP;EACA;;;AAGF;EACE,OAzEM;EA0EN;;;AAGF;EACE,OA1EK;EA2EL;EACA;;;AAGF;EACE;;;AAGF;EACE,kBAvFK;EAwFL,OAxEM;EAyEN;EACA;EACA;EACA;EACA;;;AAGF;EACE,OAjGK;EAkGL;;;AAMA;EACE,OAJe;EAKf;;;AAFF;EACE,OAJe;EAKf;;;AAFF;EACE,OAJe;EAKf;;;AAFF;EACE,OAJe;EAKf;;;AAFF;EACE,OAJe;EAKf;;;AAFF;EACE,OAJe;EAKf;;;AAIJ;EACE,OAhHM;EAiHN;;;AAGF;AAAA;EAEE;EACA,YAzGS;EA0GT;EACA;;;AAGF;EACE,OA9HO;EA+HP;EACA;;;AAGF;EACE,OAjII;EAkIJ;EACA;;;AAEF;EACE,OApIK;;;AAuIP;EACE,OAjJM;EAkJN;;;AAGF;EACE,OAtIS;EAuIT;EACA;;;AAEF;EACE,OA9IS;EA+IT;EACA;;;AAGF;EACE,kBAtJK;EAuJL,OA5IM;EA6IN;EACA;EACA;EACA;EACA;;;AAGF;EACE","file":"style.css"} -------------------------------------------------------------------------------- /waybar/Waybar-3.0/style.css.tokyonight: -------------------------------------------------------------------------------- 1 | 2 | * { 3 | padding: 0; 4 | margin: 0; 5 | font-family: JetBrainsMono Nerd Font; 6 | font-weight: bold; 7 | font-size: 16px; 8 | background-color: rgba(30,32,48,1); /* Reduced opacity background */ 9 | } 10 | 11 | .modules-right { 12 | /* background-color: rgba(30,32,48,1); */ 13 | border-radius: 5px 0px 0px 5px; 14 | } 15 | 16 | window#waybar { 17 | background-color: rgba(0, 0, 0, 0); 18 | } 19 | 20 | #custom-launcher { 21 | font-size: 20px; 22 | color: #00bfff; 23 | padding-right: 10px; 24 | background-color: rgba(30,32,48,1); 25 | } 26 | 27 | /* #cpu, */ 28 | /* #memory */ 29 | /* #temperature{ */ 30 | /* font-size: 15px; */ 31 | /* margin-top: 5px; */ 32 | /* margin-bottom: 5px; */ 33 | /* background-color: #363a4f; */ 34 | /* } */ 35 | /**/ 36 | /* #cpu { */ 37 | /* color: #eed49f; */ 38 | /* padding: 0px 10px 0px 12px; */ 39 | /* border-radius: 5px 0px 0px 5px; */ 40 | /* } */ 41 | /**/ 42 | /* #memory { */ 43 | /* color: #a6da95; */ 44 | /* padding: 0px 10px 0px 0px; */ 45 | /* } */ 46 | /**/ 47 | /* #temperature { */ 48 | /* color: #8aadf4; */ 49 | /* padding: 0px 12px 0px 0px; */ 50 | /* border-radius: 0px 5px 5px 0px; */ 51 | /* } */ 52 | 53 | #cpu, 54 | #memory, 55 | #temperature { 56 | font-size: 15px; 57 | background: #363a4f; 58 | margin-top: 5px; 59 | margin-bottom: 5px; 60 | } 61 | 62 | #cpu { 63 | color: #eed49f; 64 | padding: 0px 10px 0px 12px; 65 | border-radius: 5px 0px 0px 5px; 66 | } 67 | 68 | #memory { 69 | color: #a6da95; 70 | padding: 0px 10px 0px 0px; 71 | } 72 | 73 | #temperature { 74 | color: #8aadf4; 75 | padding: 0px 12px 0px 0px; 76 | border-radius: 0px 5px 5px 0px; 77 | } 78 | 79 | #custom-window-name { 80 | color: #68b0d6; 81 | margin-right: 10px; 82 | background-color: rgba(30,32,48,1); 83 | } 84 | 85 | #custom-pacman-update-icon { 86 | background-color: #68b0d6; 87 | color: #181926; 88 | padding-left: 5px; 89 | padding-right: 5px; 90 | margin-top: 5px; 91 | margin-bottom: 5px; 92 | border-radius: 5px; 93 | } 94 | 95 | #custom-pacman-update { 96 | color: #8bd5ca; 97 | margin: 5px 10px 5px 0px; 98 | } 99 | 100 | #workspaces button:nth-child(1) label { 101 | color: #8aadf4; 102 | margin: 0px 8px; 103 | background-color: rgba(30,32,48,1); 104 | } 105 | 106 | #workspaces button:nth-child(2) label { 107 | color: #ed8796; 108 | margin: 0px 8px; 109 | background-color: rgba(30,32,48,1); 110 | } 111 | 112 | #workspaces button:nth-child(3) label { 113 | color: #a6da95; 114 | margin: 0px 8px; 115 | background-color: rgba(30,32,48,1); 116 | } 117 | 118 | #workspaces button:nth-child(4) label { 119 | color: #c6a0f6; 120 | margin: 0px 8px; 121 | background-color: rgba(30,32,48,1); 122 | } 123 | 124 | #workspaces button:nth-child(5) label { 125 | color: #f4dbd6; 126 | margin: 0px 8px; 127 | background-color: rgba(30,32,48,1); 128 | } 129 | 130 | #workspaces button:nth-child(6) label { 131 | color: #f5a97f; 132 | margin: 0px 8px; 133 | background-color: rgba(30,32,48,1); 134 | } 135 | 136 | #workspaces button:nth-child(7) label { 137 | color: #8bd5ca; 138 | margin: 0px 8px; 139 | background-color: rgba(30,32,48,1); 140 | } 141 | 142 | #workspaces button:nth-child(8) label { 143 | color: #68b0d6; 144 | margin: 0px 8px; 145 | background-color: rgba(30,32,48,1); 146 | } 147 | 148 | #workspaces button:nth-child(9) label { 149 | color: #aab1d3; 150 | margin: 0px 8px; 151 | background-color: rgba(30,32,48,1); 152 | } 153 | 154 | 155 | #battery { 156 | color: #a6da95; 157 | /* margin: 0px 10px 0px 0px; */ 158 | } 159 | 160 | #pulseaudio, 161 | #backlight { 162 | font-size: 15px; 163 | background-color: #363a4f; 164 | margin-top: 5px; 165 | margin-bottom: 5px; 166 | } 167 | 168 | #backlight { 169 | color: #eed49f; 170 | padding: 0px 10px 0px 10px; 171 | border-radius: 5px 0px 0px 5px; 172 | } 173 | 174 | #pulseaudio { 175 | color: #91d7e3; 176 | padding: 0px 10px 0px 0px; 177 | border-radius: 0px 5px 5px 0px; 178 | } 179 | 180 | #custom-right-arr { 181 | color: #8aadf4; 182 | background-color: rgba(30,32,48,1); 183 | } 184 | 185 | #custom-pacman { 186 | color: #68b0d6; 187 | background-color: rgba(30,32,48,1); 188 | } 189 | 190 | #network { 191 | color: #c6a0f6; 192 | margin-right: 10px; 193 | background-color: rgba(30,32,48,1); 194 | } 195 | 196 | #custom-dot { 197 | color: #6e738d; 198 | padding-right: 10px; 199 | background-color: rgba(30,32,48,1); 200 | } 201 | 202 | #custom-dot-alt { 203 | color: #a5adcb; 204 | padding-left: 10px; 205 | padding-right: 10px; 206 | } 207 | 208 | #disk { 209 | color: #68b0d6; 210 | background-color: rgba(30,32,48,1); 211 | } 212 | 213 | #custom-clock-icon { 214 | color: #cad3f5; 215 | padding-left: 10px; 216 | padding-right: 10px; 217 | margin-top: 5px; 218 | margin-bottom: 5px; 219 | border-radius: 5px; 220 | } 221 | 222 | #custom-filler { 223 | color: #6e738d; 224 | padding-left: 0px; 225 | padding-right: 9px; 226 | margin-top: 5px; 227 | margin-bottom: 5px; 228 | border-radius: 5px; 229 | } 230 | 231 | #custom-filler2 { 232 | color: #6e738d; 233 | padding-left: 3px; 234 | padding-right: 9px; 235 | margin-top: 5px; 236 | margin-bottom: 5px; 237 | border-radius: 5px; 238 | } 239 | 240 | #clock { 241 | padding-left: 10px; 242 | } 243 | 244 | /*# sourceMappingURL=style.css.map */ 245 | -------------------------------------------------------------------------------- /waybar/Waybar-3.0/style.scss: -------------------------------------------------------------------------------- 1 | @use "sass:list"; 2 | // This file followed by catppuccin color scheme 3 | 4 | // Color definition 5 | $Rosewater: #f4dbd6; 6 | $Flamingo: #f0c6c6; 7 | $Pink: #f5bde6; 8 | $Mauve: #c6a0f6; 9 | $Red: #ed8796; 10 | $Maroon: #ee99a0; 11 | $Peach: #f5a97f; 12 | $Yellow: #eed49f; 13 | $Green: #a6da95; 14 | $Teal: #8bd5ca; 15 | $Sky: #91d7e3; 16 | $Sapphire: #7dc4e4; 17 | $Blue: #8aadf4; 18 | $Lavender: #b7bdf8; 19 | $Text: #cad3f5; 20 | $Subtext1: #b8c0e0; 21 | $Subtext0: #a5adcb; 22 | $Overlay2: #939ab7; 23 | $Overlay1: #8087a2; 24 | $Overlay0: #6e738d; 25 | $Surface2: #5b6078; 26 | $Surface1: #494d64; 27 | $Surface0: #363a4f; 28 | $Base: #24273a; 29 | $Mantle: #1e2030; 30 | $Crust: #181926; 31 | 32 | * { 33 | padding: 0; 34 | margin: 0; 35 | font-family: JetBrainsMono Nerd Font; 36 | font-size: 16px; 37 | } 38 | 39 | window#waybar { 40 | background-color: #00000000; 41 | } 42 | 43 | .modules-left { 44 | background-color: $Mantle; 45 | border-radius: 8px; 46 | padding-right: 15px; 47 | padding-left: 15px; 48 | } 49 | 50 | .modules-center { 51 | background-color: $Mantle; 52 | border-radius: 8px; 53 | padding-right: 10px; 54 | padding-left: 10px; 55 | } 56 | 57 | .modules-right { 58 | background-color: $Mantle; 59 | border-radius: 8px; 60 | padding-right: 15px; 61 | padding-left: 15px; 62 | } 63 | 64 | #custom-launcher { 65 | font-size: 20px; 66 | color: #00bfff; /* deepskyblue */ 67 | padding-right: 10px; 68 | } 69 | 70 | #cpu, 71 | #memory, 72 | #temperature { 73 | font-size: 14px; 74 | background: $Surface0; 75 | margin-top: 5px; 76 | margin-bottom: 5px; 77 | } 78 | 79 | #cpu { 80 | color: $Yellow; 81 | padding: 0px 10px 0px 12px; 82 | border-radius: 5px 0px 0px 5px; 83 | } 84 | 85 | #memory { 86 | color: $Green; 87 | padding: 0px 10px 0px 0px; 88 | } 89 | 90 | #temperature { 91 | color: $Blue; 92 | padding: 0px 12px 0px 0px; 93 | border-radius: 0px 5px 5px 0px; 94 | } 95 | 96 | #custom-window-name { 97 | margin-right: 10px; 98 | } 99 | 100 | #custom-pacman-update-icon { 101 | background-color: $Teal; 102 | color: $Crust; 103 | padding-left: 5px; 104 | padding-right: 5px; 105 | margin-top: 5px; 106 | margin-bottom: 5px; 107 | border-radius: 5px; 108 | } 109 | 110 | #custom-pacman-update { 111 | color: $Teal; 112 | margin: 5px 10px 5px 0px; 113 | } 114 | 115 | $workspaces-color: $Blue, $Red, $Green, $Mauve, $Rosewater, $Peach; 116 | @each $color in $workspaces-color { 117 | $index: list.index($workspaces-color, $color); 118 | #workspaces button:nth-child(#{$index}) label { 119 | color: $color; 120 | margin: 0px 8px; 121 | } 122 | } 123 | 124 | #battery { 125 | color: $Green; 126 | margin: 0px 10px 0px 0px; 127 | } 128 | 129 | #pulseaudio, 130 | #backlight { 131 | font-size: 14px; 132 | background: $Surface0; 133 | margin-top: 5px; 134 | margin-bottom: 5px; 135 | } 136 | 137 | #backlight { 138 | color: $Yellow; 139 | padding: 0px 10px 0px 10px; 140 | border-radius: 5px 0px 0px 5px; 141 | } 142 | 143 | #pulseaudio { 144 | color: $Sky; 145 | padding: 0px 10px 0px 0px; 146 | border-radius: 0px 5px 5px 0px; 147 | } 148 | #custom-right-arr { 149 | color: $Blue; 150 | } 151 | 152 | #network { 153 | color: $Mauve; 154 | margin-right: 10px; 155 | } 156 | 157 | #custom-dot { 158 | color: $Overlay0; 159 | padding-left: 10px; 160 | padding-right: 10px; 161 | } 162 | #custom-dot-alt { 163 | color: $Subtext0; 164 | padding-left: 10px; 165 | padding-right: 10px; 166 | } 167 | 168 | #custom-clock-icon { 169 | background-color: $Text; 170 | color: $Crust; 171 | padding-left: 10px; 172 | padding-right: 10px; 173 | margin-top: 5px; 174 | margin-bottom: 5px; 175 | border-radius: 5px; 176 | } 177 | 178 | #clock { 179 | padding-left: 10px; 180 | } 181 | -------------------------------------------------------------------------------- /waybar/scripts/mediaplayer.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | import argparse 3 | import logging 4 | import sys 5 | import signal 6 | import gi 7 | import json 8 | gi.require_version('Playerctl', '2.0') 9 | from gi.repository import Playerctl, GLib 10 | 11 | logger = logging.getLogger(__name__) 12 | 13 | 14 | def write_output(text, player): 15 | logger.info('Writing output') 16 | 17 | output = {'text': text, 18 | 'class': 'custom-' + player.props.player_name, 19 | 'alt': player.props.player_name} 20 | 21 | sys.stdout.write(json.dumps(output) + '\n') 22 | sys.stdout.flush() 23 | 24 | 25 | def on_play(player, status, manager): 26 | logger.info('Received new playback status') 27 | on_metadata(player, player.props.metadata, manager) 28 | 29 | 30 | def on_metadata(player, metadata, manager): 31 | logger.info('Received new metadata') 32 | track_info = '' 33 | 34 | if player.props.player_name == 'spotify' and \ 35 | 'mpris:trackid' in metadata.keys() and \ 36 | ':ad:' in player.props.metadata['mpris:trackid']: 37 | track_info = 'AD PLAYING' 38 | elif player.get_artist() != '' and player.get_title() != '': 39 | track_info = '{artist} - {title}'.format(artist=player.get_artist(), 40 | title=player.get_title()) 41 | else: 42 | track_info = player.get_title() 43 | 44 | if player.props.status != 'Playing' and track_info: 45 | track_info = ' ' + track_info 46 | write_output(track_info, player) 47 | 48 | 49 | def on_player_appeared(manager, player, selected_player=None): 50 | if player is not None and (selected_player is None or player.name == selected_player): 51 | init_player(manager, player) 52 | else: 53 | logger.debug("New player appeared, but it's not the selected player, skipping") 54 | 55 | 56 | def on_player_vanished(manager, player): 57 | logger.info('Player has vanished') 58 | sys.stdout.write('\n') 59 | sys.stdout.flush() 60 | 61 | 62 | def init_player(manager, name): 63 | logger.debug('Initialize player: {player}'.format(player=name.name)) 64 | player = Playerctl.Player.new_from_name(name) 65 | player.connect('playback-status', on_play, manager) 66 | player.connect('metadata', on_metadata, manager) 67 | manager.manage_player(player) 68 | on_metadata(player, player.props.metadata, manager) 69 | 70 | 71 | def signal_handler(sig, frame): 72 | logger.debug('Received signal to stop, exiting') 73 | sys.stdout.write('\n') 74 | sys.stdout.flush() 75 | # loop.quit() 76 | sys.exit(0) 77 | 78 | 79 | def parse_arguments(): 80 | parser = argparse.ArgumentParser() 81 | 82 | # Increase verbosity with every occurrence of -v 83 | parser.add_argument('-v', '--verbose', action='count', default=0) 84 | 85 | # Define for which player we're listening 86 | parser.add_argument('--player') 87 | 88 | return parser.parse_args() 89 | 90 | 91 | def main(): 92 | arguments = parse_arguments() 93 | 94 | # Initialize logging 95 | logging.basicConfig(stream=sys.stderr, level=logging.DEBUG, 96 | format='%(name)s %(levelname)s %(message)s') 97 | 98 | # Logging is set by default to WARN and higher. 99 | # With every occurrence of -v it's lowered by one 100 | logger.setLevel(max((3 - arguments.verbose) * 10, 0)) 101 | 102 | # Log the sent command line arguments 103 | logger.debug('Arguments received {}'.format(vars(arguments))) 104 | 105 | manager = Playerctl.PlayerManager() 106 | loop = GLib.MainLoop() 107 | 108 | manager.connect('name-appeared', lambda *args: on_player_appeared(*args, arguments.player)) 109 | manager.connect('player-vanished', on_player_vanished) 110 | 111 | signal.signal(signal.SIGINT, signal_handler) 112 | signal.signal(signal.SIGTERM, signal_handler) 113 | signal.signal(signal.SIGPIPE, signal.SIG_DFL) 114 | 115 | for player in manager.props.player_names: 116 | if arguments.player is not None and arguments.player != player.name: 117 | logger.debug('{player} is not the filtered player, skipping it' 118 | .format(player=player.name) 119 | ) 120 | continue 121 | 122 | init_player(manager, player) 123 | 124 | loop.run() 125 | 126 | 127 | if __name__ == '__main__': 128 | main() 129 | -------------------------------------------------------------------------------- /waybar/scripts/play-pause.sh: -------------------------------------------------------------------------------- 1 | #!/bin/tcsh 2 | 3 | if ($# > 0) then 4 | set SERVER="${1}" 5 | else 6 | set SERVER=localhost 7 | endif 8 | 9 | set MPC= (mpc --host="${SERVER}") 10 | 11 | ${MPC} version >& /dev/null 12 | 13 | if ($? != 0) then 14 | echo "Can't find mpd server at ${SERVER}..." 15 | 16 | exit 1 17 | endif 18 | 19 | ${MPC} toggle 20 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/powermenu.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Rofi : Power Menu 7 | # 8 | ## Available Styles 9 | # 10 | ## style-1 style-2 style-3 style-4 style-5 11 | 12 | # Current Theme 13 | dir="~/.config/waybar/scripts/power-menu/" 14 | theme='style-2' 15 | 16 | # CMDs 17 | uptime="`uptime -p | sed -e 's/up //g'`" 18 | host=`hostname` 19 | 20 | # Options 21 | shutdown=' Shutdown' 22 | reboot=' Reboot' 23 | lock=' Lock' 24 | suspend=' Suspend' 25 | logout=' Logout' 26 | yes=' Yes' 27 | no=' No' 28 | 29 | # Rofi CMD 30 | rofi_cmd() { 31 | rofi -dmenu \ 32 | -p "$host" \ 33 | -mesg "Uptime: $uptime" \ 34 | -theme ${dir}/${theme}.rasi 35 | } 36 | 37 | # Confirmation CMD 38 | confirm_cmd() { 39 | rofi -theme-str 'window {location: center; anchor: center; fullscreen: false; width: 250px;}' \ 40 | -theme-str 'mainbox {children: [ "message", "listview" ];}' \ 41 | -theme-str 'listview {columns: 2; lines: 1;}' \ 42 | -theme-str 'element-text {horizontal-align: 0.5;}' \ 43 | -theme-str 'textbox {horizontal-align: 0.5;}' \ 44 | -dmenu \ 45 | -p 'Confirmation' \ 46 | -mesg 'Are you Sure?' \ 47 | -theme ${dir}/${theme}.rasi 48 | } 49 | 50 | # Ask for confirmation 51 | confirm_exit() { 52 | echo -e "$yes\n$no" | confirm_cmd 53 | } 54 | 55 | # Pass variables to rofi dmenu 56 | run_rofi() { 57 | echo -e "$lock\n$suspend\n$logout\n$reboot\n$shutdown" | rofi_cmd 58 | } 59 | 60 | # Execute Command 61 | run_cmd() { 62 | selected="$(confirm_exit)" 63 | if [[ "$selected" == "$yes" ]]; then 64 | if [[ $1 == '--shutdown' ]]; then 65 | systemctl poweroff 66 | elif [[ $1 == '--reboot' ]]; then 67 | systemctl reboot 68 | elif [[ $1 == '--suspend' ]]; then 69 | mpc -q pause 70 | amixer set Master mute 71 | systemctl suspend 72 | elif [[ $1 == '--logout' ]]; then 73 | hyprctl dispatch exit 1 74 | fi 75 | else 76 | exit 0 77 | fi 78 | } 79 | 80 | # Actions 81 | chosen="$(run_rofi)" 82 | case ${chosen} in 83 | $shutdown) 84 | run_cmd --shutdown 85 | ;; 86 | $reboot) 87 | run_cmd --reboot 88 | ;; 89 | $lock) 90 | if [[ -x '/usr/bin/betterlockscreen' ]]; then 91 | betterlockscreen -l 92 | elif [[ -x '/usr/bin/i3lock' ]]; then 93 | i3lock 94 | elif [[ -x '/usr/bin/Hyprland' ]]; then 95 | swaylock 96 | fi 97 | ;; 98 | $suspend) 99 | run_cmd --suspend 100 | ;; 101 | $logout) 102 | run_cmd --logout 103 | ;; 104 | esac 105 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | * 8 | * Available Colors Schemes 9 | * 10 | * adapta catppuccin everforest navy paper 11 | * arc cyberpunk gruvbox nord solarized 12 | * black dracula lovelace onedark yousai 13 | * 14 | **/ 15 | 16 | /* Import color-scheme from `colors` directory */ 17 | 18 | @import "./colors/onedark.rasi" 19 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors/adapta.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #222D32FF; 11 | background-alt: #29353BFF; 12 | foreground: #B8C2C6FF; 13 | selected: #00BCD4FF; 14 | active: #21FF90FF; 15 | urgent: #FF4B60FF; 16 | } 17 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors/arc.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #2F343FFF; 11 | background-alt: #383C4AFF; 12 | foreground: #BAC5D0FF; 13 | selected: #5294E2FF; 14 | active: #98C379FF; 15 | urgent: #E06B74FF; 16 | } 17 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors/black.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #000000FF; 11 | background-alt: #101010FF; 12 | foreground: #FFFFFFFF; 13 | selected: #62AEEFFF; 14 | active: #98C379FF; 15 | urgent: #E06B74FF; 16 | } 17 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors/catppuccin.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #1E1D2FFF; 11 | background-alt: #282839FF; 12 | foreground: #D9E0EEFF; 13 | selected: #7AA2F7FF; 14 | active: #ABE9B3FF; 15 | urgent: #F28FADFF; 16 | } 17 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors/cyberpunk.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #000B1EFF; 11 | background-alt: #0A1528FF; 12 | foreground: #0ABDC6FF; 13 | selected: #0ABDC6FF; 14 | active: #00FF00FF; 15 | urgent: #FF0000FF; 16 | } 17 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors/dracula.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #1E1F29FF; 11 | background-alt: #282A36FF; 12 | foreground: #FFFFFFFF; 13 | selected: #BD93F9FF; 14 | active: #50FA7BFF; 15 | urgent: #FF5555FF; 16 | } 17 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors/everforest.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #323D43FF; 11 | background-alt: #3C474DFF; 12 | foreground: #DAD1BEFF; 13 | selected: #7FBBB3FF; 14 | active: #A7C080FF; 15 | urgent: #E67E80FF; 16 | } 17 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors/gruvbox.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #282828FF; 11 | background-alt: #353535FF; 12 | foreground: #EBDBB2FF; 13 | selected: #83A598FF; 14 | active: #B8BB26FF; 15 | urgent: #FB4934FF; 16 | } 17 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors/lovelace.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #1D1F28FF; 11 | background-alt: #282A36FF; 12 | foreground: #FDFDFDFF; 13 | selected: #79E6F3FF; 14 | active: #5ADECDFF; 15 | urgent: #F37F97FF; 16 | } 17 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors/navy.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #021B21FF; 11 | background-alt: #0C252BFF; 12 | foreground: #F2F1B9FF; 13 | selected: #44B5B1FF; 14 | active: #7CBF9EFF; 15 | urgent: #C2454EFF; 16 | } 17 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors/nord.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #2E3440FF; 11 | background-alt: #383E4AFF; 12 | foreground: #E5E9F0FF; 13 | selected: #81A1C1FF; 14 | active: #A3BE8CFF; 15 | urgent: #BF616AFF; 16 | } 17 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors/onedark.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #0F171C; 11 | background-alt: #192329; 12 | foreground: #FFFFFFFF; 13 | selected: #61AFEFFF; 14 | active: #98C379FF; 15 | urgent: #E06C75FF; 16 | } 17 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors/paper.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #F1F1F1FF; 11 | background-alt: #E0E0E0FF; 12 | foreground: #252525FF; 13 | selected: #008EC4FF; 14 | active: #10A778FF; 15 | urgent: #C30771FF; 16 | } 17 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors/solarized.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #002B36FF; 11 | background-alt: #073642FF; 12 | foreground: #EEE8D5FF; 13 | selected: #268BD2FF; 14 | active: #859900FF; 15 | urgent: #DC322FFF; 16 | } 17 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors/tokyonight.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Levi Lacoss (fishyfishfish55) 4 | * Github : @fishyfishfish55 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #15161EFF; 11 | background-alt: #1A1B26FF; 12 | foreground: #C0CAF5FF; 13 | selected: #33467CFF; 14 | active: #414868FF; 15 | urgent: #F7768EFF; 16 | } 17 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/colors/yousai.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #F5E7DEFF; 11 | background-alt: #EBDCD2FF; 12 | foreground: #34302DFF; 13 | selected: #D97742FF; 14 | active: #BF8F60FF; 15 | urgent: #B23636FF; 16 | } 17 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/shared/fonts.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Fonts 7 | * 8 | **/ 9 | 10 | * { 11 | font: "JetBrains Mono Nerd Font 10"; 12 | } 13 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/style-1.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | @import "shared/colors.rasi" 17 | @import "shared/fonts.rasi" 18 | 19 | /*****----- Main Window -----*****/ 20 | window { 21 | /* properties for window widget */ 22 | transparency: "real"; 23 | location: center; 24 | anchor: center; 25 | fullscreen: false; 26 | width: 400px; 27 | x-offset: 0px; 28 | y-offset: 0px; 29 | 30 | /* properties for all widgets */ 31 | enabled: true; 32 | margin: 0px; 33 | padding: 0px; 34 | border: 0px solid; 35 | border-radius: 12px; 36 | border-color: @selected; 37 | cursor: "default"; 38 | background-color: @background; 39 | } 40 | 41 | /*****----- Main Box -----*****/ 42 | mainbox { 43 | enabled: true; 44 | spacing: 10px; 45 | margin: 0px; 46 | padding: 20px; 47 | border: 0px solid; 48 | border-radius: 0px; 49 | border-color: @selected; 50 | background-color: transparent; 51 | children: [ "inputbar", "message", "listview" ]; 52 | } 53 | 54 | /*****----- Inputbar -----*****/ 55 | inputbar { 56 | enabled: true; 57 | spacing: 10px; 58 | margin: 0px; 59 | padding: 0px; 60 | border: 0px; 61 | border-radius: 0px; 62 | border-color: @selected; 63 | background-color: transparent; 64 | text-color: @foreground; 65 | children: [ "textbox-prompt-colon", "prompt"]; 66 | } 67 | 68 | textbox-prompt-colon { 69 | enabled: true; 70 | expand: false; 71 | str: ""; 72 | padding: 10px 14px; 73 | border-radius: 10px; 74 | background-color: @urgent; 75 | text-color: @background; 76 | } 77 | prompt { 78 | enabled: true; 79 | padding: 10px; 80 | border-radius: 10px; 81 | background-color: @active; 82 | text-color: @background; 83 | } 84 | 85 | /*****----- Message -----*****/ 86 | message { 87 | enabled: true; 88 | margin: 0px; 89 | padding: 10px; 90 | border: 0px solid; 91 | border-radius: 10px; 92 | border-color: @selected; 93 | background-color: @background-alt; 94 | text-color: @foreground; 95 | } 96 | textbox { 97 | background-color: inherit; 98 | text-color: inherit; 99 | vertical-align: 0.5; 100 | horizontal-align: 0.0; 101 | placeholder-color: @foreground; 102 | blink: true; 103 | markup: true; 104 | } 105 | error-message { 106 | padding: 10px; 107 | border: 0px solid; 108 | border-radius: 0px; 109 | border-color: @selected; 110 | background-color: @background; 111 | text-color: @foreground; 112 | } 113 | 114 | /*****----- Listview -----*****/ 115 | listview { 116 | enabled: true; 117 | columns: 1; 118 | lines: 5; 119 | cycle: true; 120 | dynamic: true; 121 | scrollbar: false; 122 | layout: vertical; 123 | reverse: false; 124 | fixed-height: true; 125 | fixed-columns: true; 126 | 127 | spacing: 5px; 128 | margin: 0px; 129 | padding: 0px; 130 | border: 0px solid; 131 | border-radius: 0px; 132 | border-color: @selected; 133 | background-color: transparent; 134 | text-color: @foreground; 135 | cursor: "default"; 136 | } 137 | 138 | /*****----- Elements -----*****/ 139 | element { 140 | enabled: true; 141 | spacing: 0px; 142 | margin: 0px; 143 | padding: 10px; 144 | border: 0px solid; 145 | border-radius: 10px; 146 | border-color: @selected; 147 | background-color: transparent; 148 | text-color: @foreground; 149 | cursor: pointer; 150 | } 151 | element-text { 152 | background-color: transparent; 153 | text-color: inherit; 154 | cursor: inherit; 155 | vertical-align: 0.5; 156 | horizontal-align: 0.0; 157 | } 158 | element selected.normal { 159 | background-color: var(selected); 160 | text-color: var(background); 161 | } 162 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/style-2.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | @import "shared/colors.rasi" 17 | @import "shared/fonts.rasi" 18 | 19 | /*****----- Main Window -----*****/ 20 | window { 21 | /* properties for window widget */ 22 | transparency: "real"; 23 | location: center; 24 | anchor: center; 25 | fullscreen: false; 26 | width: 500px; 27 | x-offset: 0px; 28 | y-offset: 0px; 29 | 30 | /* properties for all widgets */ 31 | enabled: true; 32 | margin: 0px; 33 | padding: 0px; 34 | border: 2px solid; 35 | border-radius: 20px; 36 | border-color: @selected; 37 | cursor: "default"; 38 | background-color: @background; 39 | } 40 | 41 | /*****----- Main Box -----*****/ 42 | mainbox { 43 | enabled: true; 44 | spacing: 15px; 45 | margin: 0px; 46 | padding: 30px; 47 | border: 0px solid; 48 | border-radius: 0px; 49 | border-color: @selected; 50 | background-color: transparent; 51 | children: [ "inputbar", "message", "listview" ]; 52 | } 53 | 54 | /*****----- Inputbar -----*****/ 55 | inputbar { 56 | enabled: true; 57 | spacing: 15px; 58 | margin: 0px; 59 | padding: 0px; 60 | border: 0px; 61 | border-radius: 0px; 62 | border-color: @selected; 63 | background-color: transparent; 64 | text-color: @foreground; 65 | children: [ "textbox-prompt-colon", "prompt"]; 66 | } 67 | 68 | textbox-prompt-colon { 69 | enabled: true; 70 | expand: false; 71 | str: ""; 72 | padding: 12px 16px; 73 | border-radius: 100%; 74 | background-color: @urgent; 75 | text-color: @background; 76 | } 77 | prompt { 78 | enabled: true; 79 | padding: 12px; 80 | border-radius: 100%; 81 | background-color: @active; 82 | text-color: @background; 83 | } 84 | 85 | /*****----- Message -----*****/ 86 | message { 87 | enabled: true; 88 | margin: 0px; 89 | padding: 12px; 90 | border: 0px solid; 91 | border-radius: 100%; 92 | border-color: @selected; 93 | background-color: @background-alt; 94 | text-color: @foreground; 95 | } 96 | textbox { 97 | background-color: inherit; 98 | text-color: inherit; 99 | vertical-align: 0.5; 100 | horizontal-align: 0.0; 101 | placeholder-color: @foreground; 102 | blink: true; 103 | markup: true; 104 | } 105 | error-message { 106 | padding: 12px; 107 | border: 0px solid; 108 | border-radius: 0px; 109 | border-color: @selected; 110 | background-color: @background; 111 | text-color: @foreground; 112 | } 113 | 114 | /*****----- Listview -----*****/ 115 | listview { 116 | enabled: true; 117 | columns: 1; 118 | lines: 5; 119 | cycle: true; 120 | dynamic: true; 121 | scrollbar: false; 122 | layout: vertical; 123 | reverse: false; 124 | fixed-height: true; 125 | fixed-columns: true; 126 | 127 | spacing: 5px; 128 | margin: 0px; 129 | padding: 0px; 130 | border: 0px solid; 131 | border-radius: 0px; 132 | border-color: @selected; 133 | background-color: transparent; 134 | text-color: @foreground; 135 | cursor: "default"; 136 | } 137 | 138 | /*****----- Elements -----*****/ 139 | element { 140 | enabled: true; 141 | spacing: 0px; 142 | margin: 0px; 143 | padding: 12px; 144 | border: 0px solid; 145 | border-radius: 100%; 146 | border-color: @selected; 147 | background-color: transparent; 148 | text-color: @foreground; 149 | cursor: pointer; 150 | } 151 | element-text { 152 | background-color: transparent; 153 | text-color: inherit; 154 | cursor: inherit; 155 | vertical-align: 0.5; 156 | horizontal-align: 0.0; 157 | } 158 | element selected.normal { 159 | background-color: var(selected); 160 | text-color: var(background); 161 | } 162 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/style-3.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | @import "shared/colors.rasi" 17 | @import "shared/fonts.rasi" 18 | 19 | /*****----- Main Window -----*****/ 20 | window { 21 | /* properties for window widget */ 22 | transparency: "real"; 23 | location: center; 24 | anchor: center; 25 | fullscreen: false; 26 | width: 350px; 27 | x-offset: 0px; 28 | y-offset: 0px; 29 | 30 | /* properties for all widgets */ 31 | enabled: true; 32 | margin: 0px; 33 | padding: 0px; 34 | border: 1px solid; 35 | border-radius: 0px; 36 | border-color: @selected; 37 | cursor: "default"; 38 | background-color: @background; 39 | } 40 | 41 | /*****----- Main Box -----*****/ 42 | mainbox { 43 | enabled: true; 44 | spacing: 8px; 45 | margin: 0px; 46 | padding: 8px; 47 | border: 0px solid; 48 | border-radius: 0px; 49 | border-color: @selected; 50 | background-color: transparent; 51 | children: [ "inputbar", "message", "listview" ]; 52 | } 53 | 54 | /*****----- Inputbar -----*****/ 55 | inputbar { 56 | enabled: true; 57 | spacing: 8px; 58 | margin: 0px; 59 | padding: 0px; 60 | border: 0px; 61 | border-radius: 0px; 62 | border-color: @selected; 63 | background-color: transparent; 64 | text-color: @foreground; 65 | children: [ "textbox-prompt-colon", "prompt"]; 66 | } 67 | 68 | textbox-prompt-colon { 69 | enabled: true; 70 | expand: false; 71 | str: ""; 72 | padding: 8px 12px; 73 | border-radius: 0px; 74 | background-color: @urgent; 75 | text-color: @background; 76 | } 77 | prompt { 78 | enabled: true; 79 | padding: 8px; 80 | border-radius: 0px; 81 | background-color: @active; 82 | text-color: @background; 83 | } 84 | 85 | /*****----- Message -----*****/ 86 | message { 87 | enabled: true; 88 | margin: 0px; 89 | padding: 8px; 90 | border: 0px solid; 91 | border-radius: 0px; 92 | border-color: @selected; 93 | background-color: @background-alt; 94 | text-color: @foreground; 95 | } 96 | textbox { 97 | background-color: inherit; 98 | text-color: inherit; 99 | vertical-align: 0.5; 100 | horizontal-align: 0.0; 101 | placeholder-color: @foreground; 102 | blink: true; 103 | markup: true; 104 | } 105 | error-message { 106 | padding: 8px; 107 | border: 0px solid; 108 | border-radius: 0px; 109 | border-color: @selected; 110 | background-color: @background; 111 | text-color: @foreground; 112 | } 113 | 114 | /*****----- Listview -----*****/ 115 | listview { 116 | enabled: true; 117 | columns: 1; 118 | lines: 5; 119 | cycle: true; 120 | dynamic: true; 121 | scrollbar: false; 122 | layout: vertical; 123 | reverse: false; 124 | fixed-height: true; 125 | fixed-columns: true; 126 | 127 | spacing: 5px; 128 | margin: 0px; 129 | padding: 0px; 130 | border: 0px solid; 131 | border-radius: 0px; 132 | border-color: @selected; 133 | background-color: transparent; 134 | text-color: @foreground; 135 | cursor: "default"; 136 | } 137 | 138 | /*****----- Elements -----*****/ 139 | element { 140 | enabled: true; 141 | spacing: 0px; 142 | margin: 0px; 143 | padding: 8px; 144 | border: 0px solid; 145 | border-radius: 0px; 146 | border-color: @selected; 147 | background-color: transparent; 148 | text-color: @foreground; 149 | cursor: pointer; 150 | } 151 | element-text { 152 | background-color: transparent; 153 | text-color: inherit; 154 | cursor: inherit; 155 | vertical-align: 0.5; 156 | horizontal-align: 0.0; 157 | } 158 | element selected.normal { 159 | background-color: var(selected); 160 | text-color: var(background); 161 | } 162 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/style-4.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | @import "shared/colors.rasi" 17 | @import "shared/fonts.rasi" 18 | 19 | /*****----- Main Window -----*****/ 20 | window { 21 | /* properties for window widget */ 22 | transparency: "real"; 23 | location: center; 24 | anchor: center; 25 | fullscreen: false; 26 | width: 500px; 27 | x-offset: 0px; 28 | y-offset: 0px; 29 | 30 | /* properties for all widgets */ 31 | enabled: true; 32 | margin: 0px; 33 | padding: 0px; 34 | border: 0px solid; 35 | border-radius: 30px 10px 30px 10px; 36 | border-color: @selected; 37 | cursor: "default"; 38 | background-color: @background; 39 | } 40 | 41 | /*****----- Main Box -----*****/ 42 | mainbox { 43 | enabled: true; 44 | spacing: 15px; 45 | margin: 0px; 46 | padding: 30px; 47 | border: 0px solid; 48 | border-radius: 0px; 49 | border-color: @selected; 50 | background-color: transparent; 51 | children: [ "inputbar", "message", "listview" ]; 52 | } 53 | 54 | /*****----- Inputbar -----*****/ 55 | inputbar { 56 | enabled: true; 57 | spacing: 15px; 58 | margin: 0px; 59 | padding: 0px; 60 | border: 0px; 61 | border-radius: 0px; 62 | border-color: @selected; 63 | background-color: transparent; 64 | text-color: @foreground; 65 | children: [ "textbox-prompt-colon", "prompt"]; 66 | } 67 | 68 | textbox-prompt-colon { 69 | enabled: true; 70 | expand: false; 71 | str: ""; 72 | padding: 10px 14px; 73 | border-radius: 15px 10px 15px 10px; 74 | background-color: @urgent; 75 | text-color: @background; 76 | } 77 | prompt { 78 | enabled: true; 79 | padding: 10px; 80 | border-radius: 10px 15px 10px 15px; 81 | background-color: @active; 82 | text-color: @background; 83 | } 84 | 85 | /*****----- Message -----*****/ 86 | message { 87 | enabled: true; 88 | margin: 0px; 89 | padding: 10px; 90 | border: 0px solid; 91 | border-radius: 15px 10px 15px 10px; 92 | border-color: @selected; 93 | background-color: @background-alt; 94 | text-color: @foreground; 95 | } 96 | textbox { 97 | background-color: inherit; 98 | text-color: inherit; 99 | vertical-align: 0.5; 100 | horizontal-align: 0.0; 101 | placeholder-color: @foreground; 102 | blink: true; 103 | markup: true; 104 | } 105 | error-message { 106 | padding: 10px; 107 | border: 0px solid; 108 | border-radius: 0px; 109 | border-color: @selected; 110 | background-color: @background; 111 | text-color: @foreground; 112 | } 113 | 114 | /*****----- Listview -----*****/ 115 | listview { 116 | enabled: true; 117 | columns: 1; 118 | lines: 5; 119 | cycle: true; 120 | dynamic: true; 121 | scrollbar: false; 122 | layout: vertical; 123 | reverse: false; 124 | fixed-height: true; 125 | fixed-columns: true; 126 | 127 | spacing: 5px; 128 | margin: 0px; 129 | padding: 0px; 130 | border: 0px solid; 131 | border-radius: 0px; 132 | border-color: @selected; 133 | background-color: transparent; 134 | text-color: @foreground; 135 | cursor: "default"; 136 | } 137 | 138 | /*****----- Elements -----*****/ 139 | element { 140 | enabled: true; 141 | spacing: 0px; 142 | margin: 0px; 143 | padding: 10px; 144 | border: 0px solid; 145 | border-radius: 15px 10px 15px 10px; 146 | border-color: @selected; 147 | background-color: transparent; 148 | text-color: @foreground; 149 | cursor: pointer; 150 | } 151 | element-text { 152 | background-color: transparent; 153 | text-color: inherit; 154 | cursor: inherit; 155 | vertical-align: 0.5; 156 | horizontal-align: 0.0; 157 | } 158 | element selected.normal { 159 | background-color: var(selected); 160 | text-color: var(background); 161 | } 162 | -------------------------------------------------------------------------------- /waybar/scripts/power-menu/style-5.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | @import "shared/colors.rasi" 17 | @import "shared/fonts.rasi" 18 | 19 | /*****----- Main Window -----*****/ 20 | window { 21 | /* properties for window widget */ 22 | transparency: "real"; 23 | location: center; 24 | anchor: center; 25 | fullscreen: false; 26 | width: 605px; 27 | x-offset: 0px; 28 | y-offset: 0px; 29 | 30 | /* properties for all widgets */ 31 | enabled: true; 32 | margin: 0px; 33 | padding: 0px; 34 | border: 0px solid; 35 | border-radius: 4px; 36 | border-color: @selected; 37 | cursor: "default"; 38 | background-color: @background; 39 | } 40 | 41 | /*****----- Main Box -----*****/ 42 | mainbox { 43 | enabled: true; 44 | spacing: 10px; 45 | margin: 0px; 46 | padding: 20px; 47 | border: 0px solid; 48 | border-radius: 0px; 49 | border-color: @selected; 50 | background-color: transparent; 51 | children: [ "inputbar", "message", "listview" ]; 52 | } 53 | 54 | /*****----- Inputbar -----*****/ 55 | inputbar { 56 | enabled: true; 57 | spacing: 10px; 58 | margin: 0px; 59 | padding: 0px; 60 | border: 0px; 61 | border-radius: 0px; 62 | border-color: @selected; 63 | background-color: transparent; 64 | text-color: @foreground; 65 | children: [ "textbox-prompt-colon", dummy, "prompt"]; 66 | } 67 | 68 | dummy { 69 | background-color: transparent; 70 | } 71 | 72 | textbox-prompt-colon { 73 | enabled: true; 74 | expand: false; 75 | str: ""; 76 | padding: 10px 14px; 77 | border-radius: 4px; 78 | background-color: @urgent; 79 | text-color: @background; 80 | } 81 | prompt { 82 | enabled: true; 83 | padding: 10px; 84 | border-radius: 4px; 85 | background-color: @active; 86 | text-color: @background; 87 | } 88 | 89 | /*****----- Message -----*****/ 90 | message { 91 | enabled: true; 92 | margin: 0px; 93 | padding: 10px; 94 | border: 0px solid; 95 | border-radius: 4px; 96 | border-color: @selected; 97 | background-color: @background-alt; 98 | text-color: @foreground; 99 | } 100 | textbox { 101 | background-color: inherit; 102 | text-color: inherit; 103 | vertical-align: 0.5; 104 | horizontal-align: 0.5; 105 | placeholder-color: @foreground; 106 | blink: true; 107 | markup: true; 108 | } 109 | error-message { 110 | padding: 10px; 111 | border: 0px solid; 112 | border-radius: 0px; 113 | border-color: @selected; 114 | background-color: @background; 115 | text-color: @foreground; 116 | } 117 | 118 | /*****----- Listview -----*****/ 119 | listview { 120 | enabled: true; 121 | columns: 5; 122 | lines: 1; 123 | cycle: true; 124 | dynamic: true; 125 | scrollbar: false; 126 | layout: vertical; 127 | reverse: false; 128 | fixed-height: true; 129 | fixed-columns: true; 130 | 131 | spacing: 10px; 132 | margin: 0px; 133 | padding: 0px; 134 | border: 0px solid; 135 | border-radius: 0px; 136 | border-color: @selected; 137 | background-color: transparent; 138 | text-color: @foreground; 139 | cursor: "default"; 140 | } 141 | 142 | /*****----- Elements -----*****/ 143 | element { 144 | enabled: true; 145 | spacing: 0px; 146 | margin: 0px; 147 | padding: 10px; 148 | border: 0px solid; 149 | border-radius: 4px; 150 | border-color: @selected; 151 | background-color: @background-alt; 152 | text-color: @foreground; 153 | cursor: pointer; 154 | } 155 | element-text { 156 | background-color: transparent; 157 | text-color: inherit; 158 | cursor: inherit; 159 | vertical-align: 0.5; 160 | horizontal-align: 0.5; 161 | } 162 | element selected.normal { 163 | border: 0px 2px 0px 2px; 164 | border-radius: 4px; 165 | background-color: var(selected); 166 | text-color: var(background); 167 | } 168 | -------------------------------------------------------------------------------- /waybar/scripts/rofi-bluetooth: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # __ _ _ _ _ _ _ 3 | # _ __ ___ / _(_) | |__ | |_ _ ___| |_ ___ ___ | |_| |__ 4 | # | '__/ _ \| |_| |_____| '_ \| | | | |/ _ \ __/ _ \ / _ \| __| '_ \ 5 | # | | | (_) | _| |_____| |_) | | |_| | __/ || (_) | (_) | |_| | | | 6 | # |_| \___/|_| |_| |_.__/|_|\__,_|\___|\__\___/ \___/ \__|_| |_| 7 | # 8 | # Author: Nick Clyde (clydedroid) 9 | # 10 | # A script that generates a rofi menu that uses bluetoothctl to 11 | # connect to bluetooth devices and display status info. 12 | # 13 | # Inspired by networkmanager-dmenu (https://github.com/firecat53/networkmanager-dmenu) 14 | # Thanks to x70b1 (https://github.com/polybar/polybar-scripts/tree/master/polybar-scripts/system-bluetooth-bluetoothctl) 15 | # 16 | # Depends on: 17 | # Arch repositories: rofi, bluez-utils (contains bluetoothctl) 18 | 19 | # Constants 20 | divider="---------" 21 | goback="Back" 22 | 23 | # Checks if bluetooth controller is powered on 24 | power_on() { 25 | if bluetoothctl show | grep -q "Powered: yes"; then 26 | return 0 27 | else 28 | return 1 29 | fi 30 | } 31 | 32 | # Toggles power state 33 | toggle_power() { 34 | if power_on; then 35 | bluetoothctl power off 36 | show_menu 37 | else 38 | if rfkill list bluetooth | grep -q 'blocked: yes'; then 39 | rfkill unblock bluetooth && sleep 3 40 | fi 41 | bluetoothctl power on 42 | show_menu 43 | fi 44 | } 45 | 46 | # Checks if controller is scanning for new devices 47 | scan_on() { 48 | if bluetoothctl show | grep -q "Discovering: yes"; then 49 | echo "Scan: on" 50 | return 0 51 | else 52 | echo "Scan: off" 53 | return 1 54 | fi 55 | } 56 | 57 | # Toggles scanning state 58 | toggle_scan() { 59 | if scan_on; then 60 | kill $(pgrep -f "bluetoothctl scan on") 61 | bluetoothctl scan off 62 | show_menu 63 | else 64 | bluetoothctl scan on & 65 | echo "Scanning..." 66 | sleep 5 67 | show_menu 68 | fi 69 | } 70 | 71 | # Checks if controller is able to pair to devices 72 | pairable_on() { 73 | if bluetoothctl show | grep -q "Pairable: yes"; then 74 | echo "Pairable: on" 75 | return 0 76 | else 77 | echo "Pairable: off" 78 | return 1 79 | fi 80 | } 81 | 82 | # Toggles pairable state 83 | toggle_pairable() { 84 | if pairable_on; then 85 | bluetoothctl pairable off 86 | show_menu 87 | else 88 | bluetoothctl pairable on 89 | show_menu 90 | fi 91 | } 92 | 93 | # Checks if controller is discoverable by other devices 94 | discoverable_on() { 95 | if bluetoothctl show | grep -q "Discoverable: yes"; then 96 | echo "Discoverable: on" 97 | return 0 98 | else 99 | echo "Discoverable: off" 100 | return 1 101 | fi 102 | } 103 | 104 | # Toggles discoverable state 105 | toggle_discoverable() { 106 | if discoverable_on; then 107 | bluetoothctl discoverable off 108 | show_menu 109 | else 110 | bluetoothctl discoverable on 111 | show_menu 112 | fi 113 | } 114 | 115 | # Checks if a device is connected 116 | device_connected() { 117 | device_info=$(bluetoothctl info "$1") 118 | if echo "$device_info" | grep -q "Connected: yes"; then 119 | return 0 120 | else 121 | return 1 122 | fi 123 | } 124 | 125 | # Toggles device connection 126 | toggle_connection() { 127 | if device_connected $1; then 128 | bluetoothctl disconnect $1 129 | device_menu "$device" 130 | else 131 | bluetoothctl connect $1 132 | device_menu "$device" 133 | fi 134 | } 135 | 136 | # Checks if a device is paired 137 | device_paired() { 138 | device_info=$(bluetoothctl info "$1") 139 | if echo "$device_info" | grep -q "Paired: yes"; then 140 | echo "Paired: yes" 141 | return 0 142 | else 143 | echo "Paired: no" 144 | return 1 145 | fi 146 | } 147 | 148 | # Toggles device paired state 149 | toggle_paired() { 150 | if device_paired $1; then 151 | bluetoothctl remove $1 152 | device_menu "$device" 153 | else 154 | bluetoothctl pair $1 155 | device_menu "$device" 156 | fi 157 | } 158 | 159 | # Checks if a device is trusted 160 | device_trusted() { 161 | device_info=$(bluetoothctl info "$1") 162 | if echo "$device_info" | grep -q "Trusted: yes"; then 163 | echo "Trusted: yes" 164 | return 0 165 | else 166 | echo "Trusted: no" 167 | return 1 168 | fi 169 | } 170 | 171 | # Toggles device connection 172 | toggle_trust() { 173 | if device_trusted $1; then 174 | bluetoothctl untrust $1 175 | device_menu "$device" 176 | else 177 | bluetoothctl trust $1 178 | device_menu "$device" 179 | fi 180 | } 181 | 182 | # Prints a short string with the current bluetooth status 183 | # Useful for status bars like polybar, etc. 184 | print_status() { 185 | if power_on; then 186 | printf '' 187 | 188 | paired_devices_cmd="devices Paired" 189 | # Check if an outdated version of bluetoothctl is used to preserve backwards compatibility 190 | if (( $(echo "$(bluetoothctl version | cut -d ' ' -f 2) < 5.65" | bc -l) )); then 191 | paired_devices_cmd="paired-devices" 192 | fi 193 | 194 | mapfile -t paired_devices < <(bluetoothctl $paired_devices_cmd | grep Device | cut -d ' ' -f 2) 195 | counter=0 196 | 197 | for device in "${paired_devices[@]}"; do 198 | if device_connected $device; then 199 | device_alias=$(bluetoothctl info $device | grep "Alias" | cut -d ' ' -f 2-) 200 | 201 | if [ $counter -gt 0 ]; then 202 | printf ", %s" "$device_alias" 203 | else 204 | printf " %s" "$device_alias" 205 | fi 206 | 207 | ((counter++)) 208 | fi 209 | done 210 | printf "\n" 211 | else 212 | echo "" 213 | fi 214 | } 215 | 216 | # A submenu for a specific device that allows connecting, pairing, and trusting 217 | device_menu() { 218 | device=$1 219 | 220 | # Get device name and mac address 221 | device_name=$(echo $device | cut -d ' ' -f 3-) 222 | mac=$(echo $device | cut -d ' ' -f 2) 223 | 224 | # Build options 225 | if device_connected $mac; then 226 | connected="Connected: yes" 227 | else 228 | connected="Connected: no" 229 | fi 230 | paired=$(device_paired $mac) 231 | trusted=$(device_trusted $mac) 232 | options="$connected\n$paired\n$trusted\n$divider\n$goback\nExit" 233 | 234 | # Open rofi menu, read chosen option 235 | chosen="$(echo -e "$options" | $rofi_command "$device_name")" 236 | 237 | # Match chosen option to command 238 | case $chosen in 239 | "" | $divider) 240 | echo "No option chosen." 241 | ;; 242 | $connected) 243 | toggle_connection $mac 244 | ;; 245 | $paired) 246 | toggle_paired $mac 247 | ;; 248 | $trusted) 249 | toggle_trust $mac 250 | ;; 251 | $goback) 252 | show_menu 253 | ;; 254 | esac 255 | } 256 | 257 | # Opens a rofi menu with current bluetooth status and options to connect 258 | show_menu() { 259 | # Get menu options 260 | if power_on; then 261 | power="Power: on" 262 | 263 | # Human-readable names of devices, one per line 264 | # If scan is off, will only list paired devices 265 | devices=$(bluetoothctl devices | grep Device | cut -d ' ' -f 3-) 266 | 267 | # Get controller flags 268 | scan=$(scan_on) 269 | pairable=$(pairable_on) 270 | discoverable=$(discoverable_on) 271 | 272 | # Options passed to rofi 273 | options="$devices\n$divider\n$power\n$scan\n$pairable\n$discoverable\nExit" 274 | else 275 | power="Power: off" 276 | options="$power\nExit" 277 | fi 278 | 279 | # Open rofi menu, read chosen option 280 | chosen="$(echo -e "$options" | $rofi_command "Bluetooth")" 281 | 282 | # Match chosen option to command 283 | case $chosen in 284 | "" | $divider) 285 | echo "No option chosen." 286 | ;; 287 | $power) 288 | toggle_power 289 | ;; 290 | $scan) 291 | toggle_scan 292 | ;; 293 | $discoverable) 294 | toggle_discoverable 295 | ;; 296 | $pairable) 297 | toggle_pairable 298 | ;; 299 | *) 300 | device=$(bluetoothctl devices | grep "$chosen") 301 | # Open a submenu if a device is selected 302 | if [[ $device ]]; then device_menu "$device"; fi 303 | ;; 304 | esac 305 | } 306 | 307 | # Rofi command to pipe into, can add any options here 308 | rofi_command="rofi -dmenu -no-fixed-num-lines -yoffset -100 -i -p" 309 | 310 | case "$1" in 311 | --status) 312 | print_status 313 | ;; 314 | *) 315 | show_menu 316 | ;; 317 | esac 318 | -------------------------------------------------------------------------------- /waybar/scripts/rofi-wifi-menu.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | notify-send "Getting list of available Wi-Fi networks..." 4 | # Get a list of available wifi connections and morph it into a nice-looking list 5 | wifi_list=$(nmcli --fields "SECURITY,SSID" device wifi list | sed 1d | sed 's/ */ /g' | sed -E "s/WPA*.?\S/ /g" | sed "s/^--/ /g" | sed "s/ //g" | sed "/--/d") 6 | 7 | connected=$(nmcli -fields WIFI g) 8 | if [[ "$connected" =~ "enabled" ]]; then 9 | toggle="睊 Disable Wi-Fi" 10 | elif [[ "$connected" =~ "disabled" ]]; then 11 | toggle="直 Enable Wi-Fi" 12 | fi 13 | 14 | # Use rofi to select wifi network 15 | chosen_network=$(echo -e "$toggle\n$wifi_list" | uniq -u | rofi -dmenu -i -selected-row 1 -p "Wi-Fi SSID: " ) 16 | # Get name of connection 17 | chosen_id=$(echo "${chosen_network:3}" | xargs) 18 | 19 | if [ "$chosen_network" = "" ]; then 20 | exit 21 | elif [ "$chosen_network" = "直 Enable Wi-Fi" ]; then 22 | nmcli radio wifi on 23 | elif [ "$chosen_network" = "睊 Disable Wi-Fi" ]; then 24 | nmcli radio wifi off 25 | else 26 | # Message to show when connection is activated successfully 27 | success_message="You are now connected to the Wi-Fi network \"$chosen_id\"." 28 | # Get saved connections 29 | saved_connections=$(nmcli -g NAME connection) 30 | if [[ $(echo "$saved_connections" | grep -w "$chosen_id") = "$chosen_id" ]]; then 31 | nmcli connection up id "$chosen_id" | grep "successfully" && notify-send "Connection Established" "$success_message" 32 | else 33 | if [[ "$chosen_network" =~ "" ]]; then 34 | wifi_password=$(rofi -dmenu -p "Password: " ) 35 | fi 36 | nmcli device wifi connect "$chosen_id" password "$wifi_password" | grep "successfully" && notify-send "Connection Established" "$success_message" 37 | fi 38 | fi 39 | -------------------------------------------------------------------------------- /waybar/scripts/sound/expand: -------------------------------------------------------------------------------- 1 | #!/usr/bin/bash 2 | waybar=~/.config/waybar 3 | scripts=$waybar/sound 4 | 5 | cooldown=0.1 6 | 7 | pid="$(pgrep cava)" 8 | while : 9 | do 10 | case "$1" in 11 | "arrow-icon") 12 | if [ $($scripts/soundbar_state) = 0 ]; then 13 | echo "■" 14 | else 15 | echo "■" 16 | fi 17 | ;; 18 | "cava-icon") 19 | if [ $($scripts/soundbar_state) = 0 ]; then 20 | if [ "$pid" == "$(pgrep cava)" ]; then 21 | printf "[general]\nframerate=160\nbars = 7\n[output]\nmethod = raw\nraw_target = /dev/stdout\ndata_format = ascii\nascii_max_range = 7\n" | cava -p /dev/stdin | sed -u 's/;//g;s/0/▁/g;s/1/▂/g;s/2/▃/g;s/3/▄/g;s/4/▅/g;s/5/▆/g;s/6/▇/g;s/7/█/g;' & 22 | temp_pid="$(expr $! - 1)" 23 | fi 24 | else 25 | cava_pids=("$(pgrep cava)") 26 | if [[ " ${cava_pids[*]} " =~ ${temp_pid} ]] ; then 27 | echo $temp_pid > /tmp/accr 28 | if [ ! -z $temp_pid ]; then 29 | kill $temp_pid 30 | fi 31 | fi 32 | echo "" 33 | fi 34 | ;; 35 | # "media") 36 | "pipewire-icon") 37 | if [ $($scripts/soundbar_state) = 0 ]; then 38 | wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{print $2*100}' 39 | else 40 | echo "" 41 | fi 42 | ;; 43 | *) 44 | if [ $($scripts/soundbar_state) = 0 ]; then 45 | echo " " 46 | else 47 | echo "" 48 | fi 49 | ;; 50 | esac 51 | sleep $cooldown 52 | done -------------------------------------------------------------------------------- /waybar/scripts/sound/expand_soundbar: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | LOCK=/tmp/expand_soundbar.lock 4 | 5 | if [ -f "$LOCK" ]; then 6 | echo expand 7 | rm -f "$LOCK" 8 | else 9 | echo collapse 10 | touch "$LOCK" 11 | fi 12 | -------------------------------------------------------------------------------- /waybar/scripts/sound/flick0 hyprland-print 47238bbedc75bee69d03b960933e4b92868b2cb8 dark-waybar_sound.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HeaoYe/config/61daba7eff66a6da8ce21fda1c908e2945e3a458/waybar/scripts/sound/flick0 hyprland-print 47238bbedc75bee69d03b960933e4b92868b2cb8 dark-waybar_sound.zip -------------------------------------------------------------------------------- /waybar/scripts/sound/soundbar_state: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | LOCK=/tmp/expand_soundbar.lock 4 | 5 | if [ -f "$LOCK" ]; then 6 | echo 0 7 | else 8 | echo 1 9 | fi 10 | -------------------------------------------------------------------------------- /waybar/scripts/spotify.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # install playerctl 3 | 4 | # player_status=$(playerctl status 2> /dev/null) 5 | # if [ "$player_status" = "Playing" ]; then 6 | # echo "$(playerctl metadata artist) - $(playerctl metadata title)" 7 | # elif [ "$player_status" = "Paused" ]; then 8 | # echo " $(playerctl metadata artist) - $(playerctl metadata title)" 9 | # fi 10 | 11 | #!/usr/bin/env bash 12 | # exec 2>"$XDG_RUNTIME_DIR/waybar-playerctl.log" 13 | # IFS=$'\n\t' 14 | # 15 | # while true; do 16 | # 17 | # while read -r playing position length name artist title arturl hpos hlen; do 18 | # # remove leaders 19 | # playng=${playing:1} position=${position:1} length=${length:1} name=${name:1} 20 | # artist=${artist:1} title=${title:1} arturl=${arturl:1} hpos=${hpos:1} hlen=${hlen:1} 21 | # 22 | # # build line 23 | # line="${artist:+$artist ${title:+- }}${title:+$title }${hpos:+$hpos${hlen:+|}}$hlen" 24 | # 25 | # # json escaping 26 | # line="${line//\"/\\\"}" 27 | # ((percentage = length ? (100 * (position % length)) / length : 0)) 28 | # 29 | # if [ -z "$line" ] 30 | # then 31 | # text="" 32 | # else 33 | # text=" $line" 34 | # fi 35 | # # 36 | # # integrations for other services (nwg-wrapper) 37 | # if [[ $title != "$ptitle" || $artist != "$partist" || $parturl != "$arturl" ]]; then 38 | # typeset -p playing length name artist title arturl >"$XDG_RUNTIME_DIR/waybar-playerctl.info" 39 | # pkill -8 nwg-wrapper 40 | # ptitle=$title partist=$artist parturl=$arturl 41 | # fi 42 | # 43 | # # exit if print fails 44 | # printf '{"text":"%s","tooltip":"%s","class":"%s","percentage":%s}\n' \ 45 | # "$text" "$playing $name | $line" "$percentage" "$percentage" || break 2 46 | # 47 | # done < <( 48 | # # requires playerctl>=2.0 49 | # # Add non-space character ":" before each parameter to prevent 'read' from skipping over them 50 | # playerctl --follow metadata --player playerctld --format \ 51 | # $':{{emoji(status)}}\t:{{position}}\t:{{mpris:length}}\t:{{playerName}}\t:{{markup_escape(artist)}}\t:{{markup_escape(title)}}\t:{{mpris:artUrl}}\t:{{duration(position)}}\t:{{duration(mpris:length)}}' & 52 | # echo $! >"$XDG_RUNTIME_DIR/waybar-playerctl.pid" 53 | # ) 54 | # 55 | # # no current players 56 | # # exit if print fails 57 | # echo '' || break 58 | # sleep 15 59 | # 60 | # done 61 | # 62 | # kill "$(<"$XDG_RUNTIME_DIR/waybar-playerctl.pid")" 63 | 64 | #!/usr/bin/env bash 65 | # exec 2>"$XDG_RUNTIME_DIR/waybar-playerctl.log" 66 | # IFS=$'\n\t' 67 | # 68 | # while true; do 69 | # 70 | # while read -r playing position length name artist title arturl hpos hlen; do 71 | 72 | while true; do 73 | 74 | player_status=$(playerctl status 2>/dev/null) 75 | 76 | if [ -z "$(playerctl metadata album)" ]; then 77 | if [ "$player_status" = "Playing" ]; then 78 | echo "$(playerctl metadata artist) - $(playerctl metadata title)" 79 | elif [ "$player_status" = "Paused" ]; then 80 | echo " $(playerctl metadata artist) - $(playerctl metadata title)" 81 | else 82 | echo "" 83 | fi 84 | else 85 | if [ "$player_status" = "Playing" ]; then 86 | echo " $(playerctl metadata artist) - $(playerctl metadata title)" 87 | elif [ "$player_status" = "Paused" ]; then 88 | echo "  $(playerctl metadata artist) - $(playerctl metadata title)" 89 | else 90 | echo "" 91 | fi 92 | fi 93 | 94 | sleep 1 95 | 96 | done 97 | 98 | # done 99 | # 100 | # kill "$(<"$XDG_RUNTIME_DIR/waybar-playerctl.pid")" 101 | -------------------------------------------------------------------------------- /waybar/scripts/waybar-wttr.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import json 4 | import requests 5 | from datetime import datetime 6 | 7 | WEATHER_CODES = { 8 | '113': '🌈', 9 | '116': '⛅️', 10 | '119': '☁️', 11 | '122': '☁️', 12 | '143': '🌫', 13 | '176': '🌦', 14 | '179': '🌧', 15 | '182': '🌧', 16 | '185': '🌧', 17 | '200': '⛈', 18 | '227': '🌨', 19 | '230': '❄️', 20 | '248': '🌫', 21 | '260': '🌫', 22 | '263': '🌦', 23 | '266': '🌦', 24 | '281': '🌧', 25 | '284': '🌧', 26 | '293': '🌦', 27 | '296': '🌦', 28 | '299': '🌧', 29 | '302': '🌧', 30 | '305': '🌧', 31 | '308': '🌧', 32 | '311': '🌧', 33 | '314': '🌧', 34 | '317': '🌧', 35 | '320': '🌨', 36 | '323': '🌨', 37 | '326': '🌨', 38 | '329': '❄️', 39 | '332': '❄️', 40 | '335': '❄️', 41 | '338': '❄️', 42 | '350': '🌧', 43 | '353': '🌦', 44 | '356': '🌧', 45 | '359': '🌧', 46 | '362': '🌧', 47 | '365': '🌧', 48 | '368': '🌨', 49 | '371': '❄️', 50 | '374': '🌧', 51 | '377': '🌧', 52 | '386': '⛈', 53 | '389': '🌩', 54 | '392': '⛈', 55 | '395': '❄️' 56 | } 57 | 58 | data = {} 59 | 60 | 61 | weather = requests.get("https://wttr.in/?format=j1").json() 62 | 63 | 64 | def format_time(time): 65 | return time.replace("00", "").zfill(2) 66 | 67 | 68 | def format_temp(temp): 69 | return (hour['FeelsLikeC']+"°").ljust(3) 70 | 71 | 72 | def format_chances(hour): 73 | chances = { 74 | "chanceoffog": "Fog", 75 | "chanceoffrost": "Frost", 76 | "chanceofovercast": "Overcast", 77 | "chanceofrain": "Rain", 78 | "chanceofsnow": "Snow", 79 | "chanceofsunshine": "Sunshine", 80 | "chanceofthunder": "Thunder", 81 | "chanceofwindy": "Wind" 82 | } 83 | 84 | conditions = [] 85 | for event in chances.keys(): 86 | if int(hour[event]) > 0: 87 | conditions.append(chances[event]+" "+hour[event]+"%") 88 | return ", ".join(conditions) 89 | 90 | 91 | data['text'] = WEATHER_CODES[weather['current_condition'][0]['weatherCode']] + \ 92 | " "+weather['current_condition'][0]['FeelsLikeC']+"°C" 93 | 94 | data['tooltip'] = f"{weather['current_condition'][0]['weatherDesc'][0]['value']} {weather['current_condition'][0]['temp_C']}°C\n" 95 | data['tooltip'] += f"Feels like: {weather['current_condition'][0]['FeelsLikeC']}°C\n" 96 | data['tooltip'] += f"Wind: {weather['current_condition'][0]['windspeedKmph']}Km/h\n" 97 | data['tooltip'] += f"Humidity: {weather['current_condition'][0]['humidity']}%\n" 98 | for i, day in enumerate(weather['weather']): 99 | data['tooltip'] += f"\n" 100 | if i == 0: 101 | data['tooltip'] += "Today, " 102 | if i == 1: 103 | data['tooltip'] += "Tomorrow, " 104 | data['tooltip'] += f"{day['date']}\n" 105 | data['tooltip'] += f"⬆️ {day['maxtempC']}° ⬇️ {day['mintempC']}° " 106 | data['tooltip'] += f"🌅 {day['astronomy'][0]['sunrise']} 🌇 {day['astronomy'][0]['sunset']}\n" 107 | for hour in day['hourly']: 108 | if i == 0: 109 | if int(format_time(hour['time'])) < datetime.now().hour-2: 110 | continue 111 | data['tooltip'] += f"{format_time(hour['time'])} {WEATHER_CODES[hour['weatherCode']]} {format_temp(hour['FeelsLikeC'])} {hour['weatherDesc'][0]['value']}, {format_chances(hour)}\n" 112 | 113 | 114 | print(json.dumps(data)) 115 | -------------------------------------------------------------------------------- /waybar/scripts/weather.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import subprocess 4 | from pyquery import PyQuery # install using `pip install pyquery` 5 | import json 6 | 7 | # weather icons 8 | weather_icons = { 9 | "sunnyDay": "滛", 10 | "clearNight": "望", 11 | "cloudyFoggyDay": "", 12 | "cloudyFoggyNight": "", 13 | "rainyDay": "", 14 | "rainyNight": "", 15 | "snowyIcyDay": "", 16 | "snowyIcyNight": "", 17 | "severe": "", 18 | "default": "", 19 | } 20 | 21 | # get location_id 22 | # to get your own location_id, go to https://weather.com & search your location. 23 | # once you choose your location, you can see the location_id in the URL(64 chars long hex string) 24 | # like this: https://weather.com/en-IN/weather/today/l/c3e96d6cc4965fc54f88296b54449571c4107c73b9638c16aafc83575b4ddf2e 25 | location_id = "a319796a4173829988d68c4e3a5f90c1b6832667ea7aaa201757a1c887ec667a" 26 | # TODO 27 | # location_id = "8139363e05edb302e2d8be35101e400084eadcecdfce5507e77d832ac0fa57ae" 28 | 29 | # priv_env_cmd = 'cat $PRIV_ENV_FILE | grep weather_location | cut -d "=" -f 2' 30 | # location_id = subprocess.run( 31 | # priv_env_cmd, shell=True, capture_output=True).stdout.decode('utf8').strip() 32 | 33 | # get html page 34 | url = "https://weather.com/en-IN/weather/today/l/" + location_id 35 | html_data = PyQuery(url) 36 | 37 | # current temperature 38 | temp = html_data("span[data-testid='TemperatureValue']").eq(0).text() 39 | # print(temp) 40 | 41 | # current status phrase 42 | status = html_data("div[data-testid='wxPhrase']").text() 43 | status = f"{status[:16]}.." if len(status) > 17 else status 44 | # print(status) 45 | 46 | # status code 47 | status_code = html_data("#regionHeader").attr("class").split(" ")[2].split("-")[2] 48 | # print(status_code) 49 | 50 | # status icon 51 | icon = ( 52 | weather_icons[status_code] 53 | if status_code in weather_icons 54 | else weather_icons["default"] 55 | ) 56 | # print(icon) 57 | 58 | # temperature feels like 59 | temp_feel = html_data( 60 | "div[data-testid='FeelsLikeSection'] > span[data-testid='TemperatureValue']" 61 | ).text() 62 | temp_feel_text = f"Feels like {temp_feel}c" 63 | # print(temp_feel_text) 64 | 65 | # min-max temperature 66 | temp_min = ( 67 | html_data("div[data-testid='wxData'] > span[data-testid='TemperatureValue']") 68 | .eq(0) 69 | .text() 70 | ) 71 | temp_max = ( 72 | html_data("div[data-testid='wxData'] > span[data-testid='TemperatureValue']") 73 | .eq(1) 74 | .text() 75 | ) 76 | temp_min_max = f" {temp_min}\t\t {temp_max}" 77 | # print(temp_min_max) 78 | 79 | # wind speed 80 | wind_speed = html_data("span[data-testid='Wind']").text().split("\n")[1] 81 | wind_text = f"煮 {wind_speed}" 82 | # print(wind_text) 83 | 84 | # humidity 85 | humidity = html_data("span[data-testid='PercentageValue']").text() 86 | humidity_text = f" {humidity}" 87 | # print(humidity_text) 88 | 89 | # visibility 90 | visbility = html_data("span[data-testid='VisibilityValue']").text() 91 | visbility_text = f" {visbility}" 92 | # print(visbility_text) 93 | 94 | # air quality index 95 | air_quality_index = html_data("text[data-testid='DonutChartValue']").text() 96 | # print(air_quality_index) 97 | 98 | # hourly rain prediction 99 | prediction = html_data("section[aria-label='Hourly Forecast']")( 100 | "div[data-testid='SegmentPrecipPercentage'] > span" 101 | ).text() 102 | prediction = prediction.replace("Chance of Rain", "") 103 | prediction = f"\n\n  (hourly) {prediction}" if len(prediction) > 0 else prediction 104 | # print(prediction) 105 | 106 | # tooltip text 107 | tooltip_text = str.format( 108 | "\t\t{}\t\t\n{}\n{}\n{}\n\n{}\n{}\n{}{}", 109 | f'{temp}', 110 | f"{icon}", 111 | f"{status}", 112 | f"{temp_feel_text}", 113 | f"{temp_min_max}", 114 | f"{wind_text}\t{humidity_text}", 115 | f"{visbility_text}\tAQI {air_quality_index}", 116 | f"{prediction}", 117 | ) 118 | 119 | # print waybar module data 120 | out_data = { 121 | "text": f"{icon} {temp}", 122 | "alt": status, 123 | "tooltip": tooltip_text, 124 | "class": status_code, 125 | } 126 | print(json.dumps(out_data)) 127 | -------------------------------------------------------------------------------- /waybar/tokyoconfig: -------------------------------------------------------------------------------- 1 | { 2 | "layer": "top", 3 | "height": 10, 4 | "modules-left": ["custom/arch", "hyprland/workspaces" , "memory"], 5 | "modules-center": ["custom/playerctl"], 6 | "modules-right": ["backlight","pulseaudio", "battery", "network","clock"], 7 | "custom/arch": { 8 | "format": "  ", 9 | "on-click": "sh /home/knightfall/.config/hypr/scripts/exec_wofi application_launcher" 10 | }, 11 | "custom/cava_test": { 12 | "format": "{}", 13 | "exec": "~/.config/waybar/scripts/sound/expand cava-icon" 14 | }, 15 | "hyprland/workspaces": { 16 | "format": "{icon}", 17 | "on-click": "activate", 18 | "all-outputs": true, 19 | "persistent_workspaces" :{ 20 | "1": [], 21 | "2": [], 22 | "3": [], 23 | "4": [], 24 | "5": [], 25 | "6": [], 26 | "7": [], 27 | "8": [], 28 | "9": [], 29 | "10": [] 30 | }, 31 | "format-icons": { 32 | "1": "1", 33 | "2": "2", 34 | "3": "3", 35 | "4": "4", 36 | "5": "5", 37 | "6": "6", 38 | "7": "7", 39 | "8": "8", 40 | "9": "9", 41 | "10": "1〇" 42 | } 43 | }, 44 | "clock": { 45 | "format": "{:%H:%M}", 46 | "format-alt": "{:%I:%M %p %a %d}", 47 | "tooltip-format": "{:%Y %B}\n{calendar}" 48 | }, 49 | "custom/cava": { 50 | "format": " {volume}%", 51 | "exec": "sh ~/.config/polybar/scripts/cava.sh" , 52 | "label": "%output%" 53 | }, 54 | "backlight": { 55 | "device": "amdgpu_b10", 56 | "format": "{icon} {percent}%", 57 | "format-icons": ["", "", "", "", "", "", "", "", ""] 58 | }, 59 | "custom/sound": { 60 | "format": "{}", 61 | "exec": "custom-alsa.sh", 62 | }, 63 | "network": { 64 | "interface": "wlo1", 65 | "format": "{ifname}", 66 | "format-wifi": "{essid}({signalStrength}%)", 67 | "format-ethernet": "{ipaddr}/{cidr} ", 68 | "format-disconnected": "󰖪 No Network", 69 | "on-click": "kitty nmtui" 70 | }, 71 | "battery": { 72 | "format": "{icon} {capacity}%", 73 | //"format-alt": "{time} {icon}", 74 | "format-icons": ["", "", "", "", "", "", "", "", "", "", ""], 75 | "format-charging": " {capacity}%" 76 | }, 77 | "pulseaudio": { 78 | "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", 79 | "format": " {volume}%", 80 | "format-muted": "", 81 | "format-icons": { 82 | "headphone": "", 83 | "hands-free": "", 84 | "headset": "", 85 | "phone": "", 86 | "portable": "", 87 | "car": "", 88 | "default": ["奔", "墳"] 89 | }, 90 | "on-click-right" : "pavucontrol" 91 | }, 92 | "memory": { 93 | "format": " {}%", 94 | "on-click": "kitty htop" 95 | }, 96 | "tray": { 97 | "icon-size": 20, 98 | "reverse-direction": true, 99 | "spacing": 6 100 | }, 101 | "cpu": { 102 | "format": " {usage}%" 103 | }, 104 | "temperature": { 105 | "critical-threshold": 80, 106 | "format": " {temperatureC}°C" 107 | }, 108 | "custom/playerctl": { 109 | "format": "{icon} {}", 110 | "return-type": "json", 111 | "max-length": 55, 112 | "exec": "playerctl -a metadata --format '{\"text\": \" {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F", 113 | "on-click-middle": "playerctl previous", 114 | "on-click": "playerctl play-pause", 115 | "on-click-right": "playerctl next", 116 | "format-icons": { 117 | "Paused": "", 118 | "Playing": "" 119 | } 120 | } 121 | 122 | } 123 | 124 | -------------------------------------------------------------------------------- /waybar/tokyostyle.css: -------------------------------------------------------------------------------- 1 | /* # By knightfall01 on Github as a part of https://github.com/Knightfall01/Hyprland-config */ 2 | 3 | 4 | * { 5 | border: none; 6 | font-family: 'JetBrainsMono Nerd Font' , 'Symbols Only'; 7 | font-size: 16px; 8 | font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"'; 9 | min-height: 30px; 10 | /* height: 30px; */ 11 | } 12 | 13 | window#waybar { 14 | background: transparent; 15 | } 16 | 17 | #custom-arch, #workspaces { 18 | border-radius: 10px; 19 | background-color: #191a24; 20 | color: #c0caf5; 21 | margin-top: 15px; 22 | margin-right: 15px; 23 | padding-top: 1px; 24 | padding-left: 10px; 25 | padding-right: 10px; 26 | } 27 | 28 | #custom-arch { 29 | font-size: 20px; 30 | margin-left: 15px; 31 | } 32 | 33 | #workspaces button { 34 | background: #191a24; 35 | color: #c0caf5; 36 | } 37 | 38 | #workspaces button.active { 39 | color: #2ac3de; 40 | } 41 | 42 | #clock, #backlight, #custom-cava,#temperature, #cpu, #pulseaudio, #network, #battery , #tray, #memory ,#custom-playerctl{ 43 | border-radius: 10px; 44 | background-color: #191a24; 45 | color: #c0caf5; 46 | margin-top: 15px; 47 | padding-left: 9px; 48 | padding-right: 9px; 49 | margin-right: 15px; 50 | } 51 | 52 | @keyframes blink { 53 | to { 54 | background-color: #ffffff; 55 | color: black; 56 | } 57 | } 58 | 59 | #battery.warning:not(.charging) { 60 | background: #f38ba8; 61 | color: white; 62 | animation-name: blink; 63 | animation-duration: 0.5s; 64 | animation-timing-function: linear; 65 | animation-iteration-count: infinite; 66 | animation-direction: alternate; 67 | } 68 | 69 | /* #pulseaudio { */ 70 | /* font-size: 20px; */ 71 | /* margin-left: 15px; */ 72 | /* } */ 73 | 74 | #tray{ 75 | padding-right: 8px; 76 | padding-left: 10px; 77 | } 78 | 79 | /* #pulseaudio { */ 80 | /* border-radius: 10px; */ 81 | /* background-color: #11111b; */ 82 | /* color: #cba6f7; */ 83 | /* margin-top: 15px; */ 84 | /* margin-right: 15px; */ 85 | /* padding-top: 1px; */ 86 | /* padding-left: 10px; */ 87 | /* padding-right: 10px; */ 88 | /* } */ 89 | 90 | --------------------------------------------------------------------------------