diff --git a/.gitignore b/.gitignore index 1bf73a0..b067b55 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,11 @@ +# Per user IDE config .vscode -# need to be removed as it normally created by gtk/nwg-look -gtk/.gtkrc-2.0 +# file for personal packages to install +scripts/**/**personals**.json -gtk/.icons/default/index.theme +# binary build folder +**build/ -scripts/arch/personals-pkg.json \ No newline at end of file +# pycache +**/__pycache__/** \ No newline at end of file diff --git a/CHANGELOG b/CHANGELOG index ad1bb9b..02bda0b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,90 @@ # CHANGELOG -## Each line correspeond to a pull request to the master branch (no date -> not yet merged/created : still in dev branch) +## Feb 22 Update + +- minor update to starhip and add cmake + +## Feb 20 Update + +- backport windows rule from linux +- update the readme + +## Feb 19 Update + +- Backport some changes for polybar from linux to bsd +- fix the sound keybind for freebsd for i3 +- add paximer for freebsd for the fix of the keybind sound +- remove the gtk and qt folders as i will found a better to save the theming that work better with stow and that is more flexible. +- removed obselete installer +- removed obselete tools +- update config for qtile for freebsd and temporaly remove the extras plugins since it is not available on freebsd ports (will look for a alternative or do a path or ports) +- remove tbd part of readme, as it is was not used for the bsd branch +- bsckport changes from linux : + - Modify the the whole scripts folder with new subfolders : + - data (for the packages list) + - assets for file in /usr/share/ + - utils : wheres tools/utils scripts are located +- update the installer with qtile dotfiles +- remove gnome setting and MATE dump text file (will found a better and more modular way later) + +## Backup du jour - 3 feb + +- .profile mis a jour +- ajout du mate +- dump du dconf de gnome + +## 2026/01/20 (bsd-branch) - 17:00 + +- Remove docker file since docker is not native to BSD +- Updated the readme with wip info and remove info about docker +- Move some themes/colors-schemes files to its own folder : themes +- Removed unused Kvantum folder +- Removed unused XSettings folder +- Updated fish_config and remove migration file +- Updated the starship config with more info and better detection +- Added a new script to dotfiles +- Added a new install tools script (WIP) +- Added a new xgui4-os-dotfiles-version tool to get information + +## 2026/01/19 (bsd-branch) - 15:30 + +- Update Fastfetch with information about the dotfiles +- Updated the VERSION file for better display + +## BSD-Patch (bsd-branch) - January 19 - 15:00 + +- Removed others Linux-related file +- Removed Hyprland related file since it is not ready on FreeBSD +- Added the start of Kvantum support +- Update the list for FreeBSD +- Fix BSD support for Fastfetch +- more fix for freebsd +- new fastfetch image +- better bash +- reworked polybar and i3 default for a mate + i3 session +- new i3 + picom config for standalone i3 +- new i3 border + +## BSD-Patch (bsd-branch) - January 13 - 11:05 + +- Other QT patch + i3 patch +- Added KWAllet + kde polkit to i3 + +## BSD-Patch (bsd-branch) - January 13 - 10:30 + +- Removed obselete `bsd.dockerfile` +- Updated the Readme file +- Removed old obselete info in Changelog +- Added more patch for i3 for GhostBSD +- Added important software in the .json file +- Added env variable for BSD in .profile +- Removed libinput-gestures and autiliting for i3 since BSD do not support it +- Removed Arch related files from the installer since this branh is not compatible with GNU/Linux +- Updated the installer to add a placeholder message, i plan to add a mechanism to change the branch + +## BSD-Patch (bsd-branch) - January 12 + +- Modified and fix Polybar and i3 for GhostBSD ## BSD-Tested - January 11 diff --git a/README.md b/README.md index b26f26f..220d7ed 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# Xgui4 OS Dotfiles +# Xgui4 OS Dotfiles For BSD > [!NOTE] -> This branch is my personal config who change often for stability the xgui4-os/.dotfiles is prefered or a other dotfiles made for daily use. +> This branch is my personal config with FreeBSD Patches which might not work correcly on Linux distribution My dotfiles of my GNU/Linux System, including HyprArch (my hyprland setup) and i3wm and qtile config and terminal config and a work in progress installer. @@ -27,12 +27,4 @@ My dotfiles of my GNU/Linux System, including HyprArch (my hyprland setup) and i git pull -``` - -### How to Test/Debug - -1. Install Docker -2. Run `docker buildn -t install.sh .` -3. Run `docker run -it install.sh .` -4. Run `docker commit my-debug-image` -5. Run `docker run -it my-debug-image /bin/bash` +``` \ No newline at end of file diff --git a/VERSION b/VERSION index 304e991..2518897 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -BSD-Tested - January 11 \ No newline at end of file +Xgui4 OS Feb 22 Update (bsd-branch) \ No newline at end of file diff --git a/bash/.bash_profile b/bash/.bash_profile index 45b52a0..11dbba1 100644 --- a/bash/.bash_profile +++ b/bash/.bash_profile @@ -5,15 +5,5 @@ [[ -f ~/.bashrc ]] && . ~/.bashrc if [ "$XDG_SESSION_TYPE" = "x11" ]; then - export MOZ_USE_XINPUT2=1 - export QT_QPA_PLATFORMTHEME=qt5ct - export XDG_MENU_PREFIX=arch - export QT_QPA_PLATFORM=xcb + export env QT_QPA_PLATFORMTHEME=qt6ct fi - -# Install Ruby Gems to ~/gems -export GEM_HOME="$HOME/gems" -export PATH="$HOME/gems/bin:$PATH" -export PATH="$PATH:/usr/local/bin/" -export PATH="$HOME/.local/share/gem/ruby/3.0.0/bin:$PATH" -export PATH="$HOME/.local/bin:$PATH" \ No newline at end of file diff --git a/bash/.bashrc b/bash/.bashrc index b8d5165..84f07d9 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -9,9 +9,13 @@ alias ls='ls --color=auto' alias grep='grep --color=auto' PS1='[\u@\h \W]\$ ' -eval "$(oh-my-posh init bash)" - alias fastfetch-image='fastfetch -c ~/.config/fastfetch/config-image.jsonc' alias i-use-arch-btw='fastfetch -c ~/.config/fastfetch/config-image.jsonc --logo arch' alias wkill='hyprctl kill' alias neofetch='fastfetch -c neofetch' + +current_tty=$(tty) + +if [[ $current_tty == /dev/pts* ]] then + eval "$(starship init bash)" +fi \ No newline at end of file diff --git a/bash/.profile b/bash/.profile index e69de29..d912785 100644 --- a/bash/.profile +++ b/bash/.profile @@ -0,0 +1,42 @@ +# +# .profile - Bourne Shell startup script for login shells +# +# see also sh(1), environ(7). +# + +if [ "$XDG_SESSION_TYPE" = "x11" ]; then + export env QT_QPA_PLATFORMTHEME=qt6ct +fi + +# These are normally set through /etc/login.conf. You may override them here +# if wanted. +# PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$HOME/bin; export PATH + +# Setting TERM is normally done through /etc/ttys. Do only override +# if you're sure that you'll never log in via telnet or xterm or a +# serial line. +# TERM=xterm; export TERM + +VISUAL=code-oss; export VISUAL +EDITOR=nano; export EDITOR +PAGER=less; export PAGER + +# set ENV to a file invoked each time sh is started for interactive use. +ENV=$HOME/.shrc; export ENV + +# Let sh(1) know it's at home, despite /home being a symlink. +if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi + +# Query terminal size; useful for serial lines. +if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi + +# Display a random cookie on each login. +if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune freebsd-tips ; fi + +# Set default locale +CHARSET=UTF-8; export CHARSET +LANG=fr_CA.UTF-8; export LANG + +export WLR_NO_HARDWARE_CURSORS=1 +export GBM_BACKEND=nvidia-drm +export __GLX_VENDOR_LIBRARY_NAME=nvidia diff --git a/bsd.dockerfile b/bsd.dockerfile deleted file mode 100644 index 60b6032..0000000 --- a/bsd.dockerfile +++ /dev/null @@ -1,17 +0,0 @@ -FROM freebsd/freebsd-dynamic:latest - -RUN sudo pkg --install sudo - -RUN useradd /bin/sh developer - -USER developer -WORKDIR /home/developer - -COPY --chown=developer:developer . .dotfiles/ - -RUN chmod +x .dotfiles/install.sh \ - .dotfiles/scripts/freebsd-installer \ - .dotfiles/scripts/arch-installer - -# 7. Use the correct path for CMD -CMD ["usr/home/developer/.dotfiles/install.sh"] \ No newline at end of file diff --git a/dockerfile b/dockerfile deleted file mode 100644 index dafbeaf..0000000 --- a/dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM archlinux:latest - -RUN pacman -Syu --noconfirm sudo - -RUN useradd -m -G wheel -s /bin/sh developer - -RUN echo "developer ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/developer && \ - chmod 0440 /etc/sudoers.d/developer - -USER developer -WORKDIR /home/developer - -COPY --chown=developer:developer . .dotfiles/ - -RUN chmod +x .dotfiles/install.sh \ - .dotfiles/scripts/freebsd-installer \ - .dotfiles/scripts/arch-installer - -# 7. Use the correct path for CMD -CMD ["/home/developer/.dotfiles/install.sh"] diff --git a/fastfetch/.config/fastfetch/config-image.jsonc b/fastfetch/.config/fastfetch/config-image.jsonc index 853b078..501c46a 100644 --- a/fastfetch/.config/fastfetch/config-image.jsonc +++ b/fastfetch/.config/fastfetch/config-image.jsonc @@ -1,9 +1,10 @@ { "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", "logo": { + "type": "kitty-icat", "source" : "~/.config/fastfetch/fastfetch.png", - "width" : 30, - "height" : 20, + "width" : 40, + "height" : 30 }, "display": { @@ -13,7 +14,7 @@ "break", { "type": "title", - "keyWidth": 10, + "keyWidth": 10 }, { "type":"host", @@ -23,62 +24,68 @@ { "type": "os", "key": " OS:", - "keyColor": "magenta", + "keyColor": "magenta" }, { "type": "kernel", "key": " Kernel:", - "keyColor": "blue", + "keyColor": "blue" }, { "type": "packages", "key": " Packages:", - "keyColor": "light_blue", + "keyColor": "light_blue" }, { "type": "shell", "key": " Shell:", - "keyColor": "green", + "keyColor": "green" }, { "type": "terminal", "key": " Terminal:", - "keyColor": "yellow", + "keyColor": "yellow" }, { "type": "wm", "key": " Window Manager:", - "keyColor": "38;2;252;148;3", + "keyColor": "38;2;252;148;3" + }, + { + "type": "command", + "key": "󰟪 Dotfiles", + "text": "cat ~/.dotfiles/VERSION", + "keyColor": "38;2;252;148;3" }, { "type": "Theme", "key":"󱠓Themes:", - "keyColor": "38;2;252;148;3", + "keyColor": "38;2;252;148;3" }, { "type": "de", "key": " Desktop Environnement:", - "keyColor": "38;2;252;148;3", + "keyColor": "38;2;252;148;3" }, { "type": "cursor", "key": "󰇀Cursor:", - "keyColor": "red", + "keyColor": "red" }, { "type": "terminalfont", "key": " Terminal Font:", - "keyColor": "magenta", + "keyColor": "magenta" }, { "type": "uptime", "key": " Uptime:", - "keyColor": "blue", + "keyColor": "blue" }, { "type": "media", "key": "󰝚 Media:", - "keyColor": "light_blue", + "keyColor": "light_blue" }, { "type": "cpu", diff --git a/fastfetch/.config/fastfetch/config.jsonc b/fastfetch/.config/fastfetch/config.jsonc index c01d5f4..3591fae 100644 --- a/fastfetch/.config/fastfetch/config.jsonc +++ b/fastfetch/.config/fastfetch/config.jsonc @@ -2,8 +2,6 @@ "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", "logo": { "source" : "~/.config/fastfetch/fastfetch.txt", - "width" : 30, - "height" : 20, "color" : { "1" : "blue", "2" : "red", @@ -15,7 +13,7 @@ "break", { "type": "title", - "keyWidth": 10, + "keyWidth": 10 }, { "type":"host", @@ -23,51 +21,57 @@ }, { "type": "os", - "keyColor": "magenta", + "keyColor": "magenta" }, { "type": "kernel", - "keyColor": "blue", + "keyColor": "blue" }, { "type": "packages", - "keyColor": "light_blue", + "keyColor": "light_blue" }, { "type": "shell", - "keyColor": "green", + "keyColor": "green" }, { "type": "terminal", - "keyColor": "yellow", + "keyColor": "yellow" }, { "type": "wm", - "keyColor": "38;2;252;148;3", + "keyColor": "38;2;252;148;3" }, { "type": "Theme", - "keyColor": "38;2;252;148;3", + "keyColor": "38;2;252;148;3" }, + { + "type": "command", + "key": "Dotfiles", + "text": "cat ~/.dotfiles/VERSION", + "keyColor": "38;2;252;148;3" + }, { "type": "de", - "keyColor": "38;2;252;148;3", + "keyColor": "38;2;252;148;3" }, { "type": "cursor", - "keyColor": "red", + "keyColor": "red" }, { "type": "terminalfont", - "keyColor": "magenta", + "keyColor": "magenta" }, { "type": "uptime", - "keyColor": "blue", + "keyColor": "blue" }, { "type": "media", - "keyColor": "light_blue", + "keyColor": "light_blue" }, { "type": "cpu", @@ -79,12 +83,12 @@ }, { "type": "memory", - "key": " RAM:", + "key": "RAM:", "keyColor": "38;2;252;148;3" }, { "type": "swap", - "key": " Swap:", + "key": "Swap:", "keyColor": "38;2;252;148;3" }, { diff --git a/fastfetch/.config/fastfetch/fastfetch.txt b/fastfetch/.config/fastfetch/fastfetch.txt index 8d90454..af810d6 100644 --- a/fastfetch/.config/fastfetch/fastfetch.txt +++ b/fastfetch/.config/fastfetch/fastfetch.txt @@ -1,18 +1,12 @@ - $1++++++$4+++++ $3 ++++++$2++++++ - $1++++++++++$4+++++++++ $3 ++++++++++$2+++++++++ - $1+++++++++++$4++++++++++++ $3 +++++++++++++++$2++++++++ -$1++++++++++++++++$4+++++++++++ $3 ++++++++++++++++++$2++++++++++ -$1++++++++++++++++$4++++++++++++++ $3 +++++++++++++++++++$2++++++++++++ -$1++++++++++++ $4+++++++++++++++$3=+ ++++++++++++++++ $2 ++++++++++++ -$1+++++++++ $4 ++++++++==$3==+===+++++++++ $2 ++++++++++ -$1++++++++ $4 +++++===$3+=======++++ $2 ++=+++++= -$1+++++++ $4 ===+=$3========+ $2 +======= -$1+++++++ $4 +===$3======+=== $2 ======= -$1++++++++ $4 ++====$3====+======= $2 ======== -$1++++++++++ $4 +++++++++$3==+=========== $2 ========= -$1++++++++++++* $4 ++++++++++++++$3 ==========------ $2 ----======= -$1*+++++++++++*****$4++++++++++++++ $3 ======---------::--$2--------=== -$1*+++++++++******+$4+++++++++++ $3 ===-----------::-$2---------= - $1++++++++*****$4**++++++++ $3 =----------::$2::-------- - $1+++++********$4+++++ $3 --------::::$2::::-- - $1*+*******$4** $3 ---::::$2:::: +$1 .,cd$2xxxoc,. $3 .:kKMMMN$4WMMMNk:. +$1 cKMMN$20OOOKWMMXo. $3 ;0MWk:' $4 ':OMMk. +$1 ;WMK;' $2 'lKMMNM, $3 :NMK' $4 'OMW; +$1 cMW; $2 WMMMN $3 ,XMK' $4 oMM. +$1.MMc $2 ^*~l x$3MN: $4 KM0 +$1'MM. $2 .N$3MO $4 oMM +$1.MM, $2 .kMM$3lSDF $4 xMN +$1 KM0 $2 .kMM0'$3 .dl>~,. $4 .WMd +$1 'XM0. $2 ,OMMK' $3 OMMM7' $4 .XMK +$1 *WMO:.$2 .;xNMMk' $3 NNNMKl. $4 .xWMx +$1 ^ONM$2MNXMMMKx; $3 V 'xNMWKkx$4llox0NMWk' +$1 $2'''' $3 ':dOOX$4XKOxl' \ No newline at end of file diff --git a/fish/.config/fish/conf.d/fish_frozen_key_bindings.fish b/fish/.config/fish/conf.d/fish_frozen_key_bindings.fish deleted file mode 100644 index 495aee9..0000000 --- a/fish/.config/fish/conf.d/fish_frozen_key_bindings.fish +++ /dev/null @@ -1,14 +0,0 @@ -# This file was created by fish when upgrading to version 4.3, to migrate -# the 'fish_key_bindings' variable from its old default scope (universal) -# to its new default scope (global). We recommend you delete this file -# and configure key bindings in ~/.config/fish/config.fish if needed. - -# set --global fish_key_bindings fish_default_key_bindings - -# Prior to version 4.3, fish shipped an event handler that runs -# `set --universal fish_key_bindings fish_default_key_bindings` -# whenever the fish_key_bindings variable is erased. -# This means that as long as any fish < 4.3 is still running on this system, -# we cannot complete the migration. -# As a workaround, erase the universal variable at every shell startup. -set --erase --universal fish_key_bindings diff --git a/fish/.config/fish/conf.d/fish_frozen_theme.fish b/fish/.config/fish/conf.d/fish_frozen_theme.fish index 02133cb..fc0ae40 100644 --- a/fish/.config/fish/conf.d/fish_frozen_theme.fish +++ b/fish/.config/fish/conf.d/fish_frozen_theme.fish @@ -1,12 +1,9 @@ -# This file was created by fish when upgrading to version 4.3, to migrate -# theme variables from universal to global scope. # Don't edit this file, as it will be written by the web-config tool (`fish_config`). # To customize your theme, delete this file and see # help interactive#syntax-highlighting # or # man fish-interactive | less +/^SYNTAX.HIGHLIGHTING # for appropriate commands to add to ~/.config/fish/config.fish instead. -# See also the release notes for fish 4.3.0 (run `help relnotes`). set --global fish_color_autosuggestion 969896 set --global fish_color_cancel --reverse @@ -32,16 +29,16 @@ set --global fish_color_selection white --bold --background=brblack set --global fish_color_status red set --global fish_color_user brgreen set --global fish_color_valid_path --underline=single -set --global fish_pager_color_background +set --global fish_pager_color_background set --global fish_pager_color_completion normal set --global fish_pager_color_description B3A06D set --global fish_pager_color_prefix normal --bold --underline=single set --global fish_pager_color_progress brwhite --bold --background=cyan -set --global fish_pager_color_secondary_background -set --global fish_pager_color_secondary_completion -set --global fish_pager_color_secondary_description -set --global fish_pager_color_secondary_prefix +set --global fish_pager_color_secondary_background +set --global fish_pager_color_secondary_completion +set --global fish_pager_color_secondary_description +set --global fish_pager_color_secondary_prefix set --global fish_pager_color_selected_background --background=brblack -set --global fish_pager_color_selected_completion -set --global fish_pager_color_selected_description -set --global fish_pager_color_selected_prefix +set --global fish_pager_color_selected_completion +set --global fish_pager_color_selected_description +set --global fish_pager_color_selected_prefix diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index 17cbb5d..5b70105 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -1,14 +1,10 @@ if status is-interactive # Commands to run in interactive sessions can go here starship init fish | source - alias ls="ls --color=auto -A" - alias grep="grep --color=auto" alias fastfetch-image="fastfetch -c ~/.config/fastfetch/config-image.jsonc" alias i-use-arch-btw="fastfetch -c ~/.config/fastfetch/config-image.jsonc --logo arch" - alias wkill="hyprctl kill" alias neofetch="fastfetch -c neofetch" - alias cmatrix-rainbow="cmatrix | lolcat" - alias edit="code" + alias edit="code-oss" end function mkcd --description "Create a directory and cd into it" diff --git a/fish/.config/fish/fish_variables b/fish/.config/fish/fish_variables index ad10b9b..e69de29 100644 --- a/fish/.config/fish/fish_variables +++ b/fish/.config/fish/fish_variables @@ -1,3 +0,0 @@ -# This file contains fish universal variable definitions. -# VERSION: 3.0 -SETUVAR __fish_initialized:4300 diff --git a/gtk/.config/gtk-3.0/settings.ini b/gtk/.config/gtk-3.0/settings.ini deleted file mode 100644 index 79fcb2d..0000000 --- a/gtk/.config/gtk-3.0/settings.ini +++ /dev/null @@ -1,17 +0,0 @@ -[Settings] -gtk-theme-name=Colloid-Purple-Dark-Dracula -gtk-icon-theme-name=breeze-dark -gtk-font-name=Adwaita Sans 11 -gtk-cursor-theme-name=Qogir, 25 -gtk-cursor-theme-size=25 -gtk-toolbar-style=GTK_TOOLBAR_ICONS -gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR -gtk-button-images=1 -gtk-menu-images=1 -gtk-enable-event-sounds=0 -gtk-enable-input-feedback-sounds=0 -gtk-xft-antialias=1 -gtk-xft-hinting=1 -gtk-xft-hintstyle=hintslight -gtk-xft-rgba=rgb -gtk-application-prefer-dark-theme=1 diff --git a/gtk/.config/gtk-4.0/settings.ini b/gtk/.config/gtk-4.0/settings.ini deleted file mode 100644 index 7eaaed0..0000000 --- a/gtk/.config/gtk-4.0/settings.ini +++ /dev/null @@ -1,7 +0,0 @@ -[Settings] -gtk-theme-name=Colloid-Purple-Dark-Dracula -gtk-icon-theme-name=breeze-dark -gtk-font-name=Adwaita Sans 11 -gtk-cursor-theme-name=Qogir-Dark -gtk-cursor-theme-size=25 -gtk-application-prefer-dark-theme=1 diff --git a/gtk/.gtkrc-2.0.mine b/gtk/.gtkrc-2.0.mine deleted file mode 100644 index e69de29..0000000 diff --git a/gtk/.gtkrc-pre-defined b/gtk/.gtkrc-pre-defined deleted file mode 100644 index e928ff6..0000000 --- a/gtk/.gtkrc-pre-defined +++ /dev/null @@ -1,19 +0,0 @@ -# DO NOT EDIT! This file will be overwritten by nwg-look. -# Any customization should be done in ~/.gtkrc-2.0.mine instead. - -include "~/.gtkrc-2.0.mine" -gtk-theme-name="Colloid-Purple-Dark-Dracula" -gtk-icon-theme-name="breeze-dark" -gtk-font-name="Adwaita Sans 11" -gtk-cursor-theme-name="Qogir-Dark" -gtk-cursor-theme-size=25 -gtk-toolbar-style=GTK_TOOLBAR_ICONS -gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR -gtk-button-images=1 -gtk-menu-images=1 -gtk-enable-event-sounds=0 -gtk-enable-input-feedback-sounds=0 -gtk-xft-antialias=1 -gtk-xft-hinting=1 -gtk-xft-hintstyle="hintslight" -gtk-xft-rgba="rgb" \ No newline at end of file diff --git a/gtk/.icons/default/icon.theme b/gtk/.icons/default/icon.theme deleted file mode 100644 index e69de29..0000000 diff --git a/gtk/.icons/default/index.default.theme b/gtk/.icons/default/index.default.theme deleted file mode 100644 index 1fea072..0000000 --- a/gtk/.icons/default/index.default.theme +++ /dev/null @@ -1,4 +0,0 @@ -[Icon Theme] -Name=Default -Comment=Default Cursor Theme -Inherits=Qogir, 25 diff --git a/hyprland/.config/hypr/appearence.conf b/hyprland/.config/hypr/appearence.conf deleted file mode 100644 index 55634bd..0000000 --- a/hyprland/.config/hypr/appearence.conf +++ /dev/null @@ -1,75 +0,0 @@ -# slightly modified look and feel - -general { - # more screen usage than default hyprland - gaps_in = 5 - gaps_out = 5 - - border_size = 2 - - col.active_border = rgb(9A0EE6) rgb(011A6A) rgb(48DB10) rgb(ff5733) # rainbow like constrast - col.inactive_border = rgba(595959aa) # default value - - resize_on_border = true - - allow_tearing = false - - layout = dwindle -} - -decoration { - rounding = 10 - rounding_power = 2 - - active_opacity = 1.0 - inactive_opacity = 0.9 # windows aero like effect - - shadow { - enabled = true - range = 5 - render_power = 3 - color = rgba(1a1a1aee) - } - blur { - enabled = true - size = 1 - passes = 1 - vibrancy = 0.1696 - } -} - -animations { - enabled = yes, - - bezier = easeOutQuint,0.23,1,0.32,1 - bezier = easeInOutCubic,0.65,0.05,0.36,1 - bezier = linear,0,0,1,1 - bezier = almostLinear,0.5,0.5,0.75,1.0 - bezier = quick,0.15,0,0.1,1 - - animation = global, 1, 10, default - animation = border, 1, 5.39, easeOutQuint - animation = windows, 1, 4.79, easeOutQuint - animation = windowsIn, 1, 4.1, easeOutQuint, popin 87% - animation = windowsOut, 1, 1.49, linear, popin 87% - animation = fadeIn, 1, 1.73, almostLinear - animation = fadeOut, 1, 1.46, almostLinear - animation = fade, 1, 3.03, quick - animation = layers, 1, 3.81, easeOutQuint - animation = layersIn, 1, 4, easeOutQuint, fade - animation = layersOut, 1, 1.5, linear, fade - animation = fadeLayersIn, 1, 1.79, almostLinear - animation = fadeLayersOut, 1, 1.39, almostLinear - animation = workspaces, 1, 1.94, almostLinear, fade - animation = workspacesIn, 1, 1.21, almostLinear, fade - animation = workspacesOut, 1, 1.94, almostLinear, fade -} - -dwindle { - pseudotile = true - preserve_split = true -} - -master { - new_status = master -} diff --git a/hyprland/.config/hypr/autostart.conf b/hyprland/.config/hypr/autostart.conf deleted file mode 100644 index cd3a164..0000000 --- a/hyprland/.config/hypr/autostart.conf +++ /dev/null @@ -1,18 +0,0 @@ -# Autostart applications for Hyprland -exec-once = waybar -exec-once = hyprpaper -exec-once = hyprshell run & -exec-once = hypridle -exec-once = copyq -exec-once = hyprpm reload -exec-once = XDG_MENU_PREFIX=arch- kbuildsycoca6 -exec-once = brightnessctl s 100% -exec-once = flameshot -exec-once = swayosd-server - -# hpyrpolkit agent, for the auth agent, you change choose a other one if you want -exec-once = systemctl --user start hyprpolkitagent - -# Network manager applet -exec-once = nm-applet --indicator -exec-once = blueman-applet \ No newline at end of file diff --git a/hyprland/.config/hypr/env.conf b/hyprland/.config/hypr/env.conf deleted file mode 100644 index b60b736..0000000 --- a/hyprland/.config/hypr/env.conf +++ /dev/null @@ -1,14 +0,0 @@ -# Cursor -env = XCURSOR_SIZE,25 -env = XCURSOR_THEME, Qogir, 25 -env = HYPRCURSOR_SIZE,25 - -# Themes -env = GTK_THEME,Dark -env = QT_QPA_PLATFORM, wayland; xcb -env = QT_QPA_PLATFORM,xcb -env = QT_QPA_PLATFORMTHEME,qt6ct # for Qt6 apps -env = GTK_THEME, Colloid-Dark-Compact-Dracula # for GTK apps - -# Fix for dolphin -env = XDG_MENU_PREFIX,arch- diff --git a/hyprland/.config/hypr/hypridle.conf b/hyprland/.config/hypr/hypridle.conf deleted file mode 100644 index 5eaab0b..0000000 --- a/hyprland/.config/hypr/hypridle.conf +++ /dev/null @@ -1,20 +0,0 @@ -general { - lock_cmd = pidof hyprlock || hyprlock - before_sleep_cmd = hyprlock -} - -listener { - timeout = 300 - on-timeout = loginctl lock-session -} - -listener { - timeout = 600 - on-timeout = hyprctl dispatch dpms off - on-resume = hyprctl dispatch dpms on -} - -listener { - timeout = 900 - on-timeout = systemctl suspend -} diff --git a/hyprland/.config/hypr/hyprland.conf b/hyprland/.config/hypr/hyprland.conf deleted file mode 100644 index 8ee02cc..0000000 --- a/hyprland/.config/hypr/hyprland.conf +++ /dev/null @@ -1,76 +0,0 @@ -######################################################################################## -# HyprActive 0.0.1 -# By Xgui4 -######################################################################################## - -################ -### MONITORS ### -################ - -source = ~/.config/hypr/monitors.conf - -################### -### MY PROGRAMS ### -################### - -$terminal = kitty # default terminal -$fileManager = dolphin # default file manager -$menu = rofi -$emoji = emote # default emoji picker - -################# -### AUTOSTART ### -################# - -source = ~/.config/hypr/autostart.conf - -############################# -### ENVIRONMENT VARIABLES ### -############################# - -source = ~/.config/hypr/env.conf - -source = ~/.config/hypr/nvidia.conf - -##################### -### LOOK AND FEEL ### -##################### - -source = ~/.config/hypr/appearence.conf - -############# -### INPUT ### -############# - -source = ~/.config/hypr/input.conf - - -################ -## Permission ## -################ - -source = ~/.config/hypr/permission.conf - -################### -### KEYBINDINGS ### -################### - -source = ~/.config/hypr/keybinding.conf - -############################## -### WINDOWS AND WORKSPACES ### -############################## - -source = ~/.config/hypr/windows-rule.conf - -################## -## Fix for apps ## -################## - -xwayland:force_zero_scaling = true - -#################### -## Plugins config ## -#################### - -source = ~/.config/hypr/plugins.conf diff --git a/hyprland/.config/hypr/hyprlock.conf b/hyprland/.config/hypr/hyprlock.conf deleted file mode 100644 index 850bedd..0000000 --- a/hyprland/.config/hypr/hyprlock.conf +++ /dev/null @@ -1,135 +0,0 @@ -# sample hyprlock.conf -# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock -# -# rendered text in all widgets supports pango markup (e.g. or tags) -# ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#general-remarks -# -# shortcuts to clear password buffer: ESC, Ctrl+U, Ctrl+Backspace -# -# you can get started by copying this config to ~/.config/hypr/hyprlock.conf -# - -$font = Monospace - -general { - hide_cursor = false -} - -# uncomment to enable fingerprint authentication -# auth { -# fingerprint { -# enabled = true -# ready_message = Scan fingerprint to unlock -# present_message = Scanning... -# retry_delay = 250 # in milliseconds -# } -# } - -image { - monitor = - path = ~/avatar.jpg - border_size = 1 - border_color = rgba(255, 255, 255, 0) - size = 160 - rounding = 0 # -1 for perfect circle - rotate = 0 - reload_time = -1 - reload_cmd = - position = 0, 150 - halign = center - valign = center -} - -label { - monitor = - text = $USER - color = rgba(216, 222, 233, 1) - outline_thickness = 2 - dots_size = 0.2 - dots_spacing = 0.2 - dots_center = true - font_size = 18 - font_family = SF Pro Display Bold - position = 0, 50 - halign = center - valign = center -} - -animations { - enabled = true - bezier = linear, 1, 1, 0, 0 - animation = fadeIn, 1, 5, linear - animation = fadeOut, 1, 5, linear - animation = inputFieldDots, 1, 2, linear -} - -background { - monitors = - path = ~/.dotfiles/wallpapers/lockscreen.png -} - -input-field { - monitor = - size = 20%, 5% - outline_thickness = 3 - inner_color = rgba(0, 0, 0, 0.0) # no fill - - outer_color = rgb(9A0EE6) rgb(011A6A) rgb(48DB10) rgb(ff5733) 45deg #modified for rainbow style - check_color = rgba(00ff99ee) rgba(ff6633ee) 120deg - fail_color = rgba(ff6633ee) rgba(ff0066ee) 40deg - - font_color = rgb(143, 143, 143) - fade_on_empty = false - rounding = 15 - - font_family = $font - placeholder_text = Entrez mot de passe... # you can change for you language - fail_text = $PAMFAIL - - # uncomment to use a letter instead of a dot to indicate the typed password - # dots_text_format = * - # dots_size = 0.4 - dots_spacing = 0.3 - - # uncomment to use an input indicator that does not show the password length (similar to swaylock's input indicator) - # hide_input = true - - position = 0, -20 - halign = center - valign = center -} - -# TIME -label { - monitor = - text = $TIME # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#variable-substitution - font_size = 90 - font_family = $font - - position = -30, 0 - halign = right - valign = top -} - -label { - monitor = - text = cmd[update:30000] echo "🔋 $(cat /sys/class/power_supply/BAT0/capacity)%" - color = rgba(255, 255, 255, 0.8) - font_size = 14 - position = -50, 50 - halign = right - valign = bottom -} - -# DATE -label { - monitor = - text = cmd[update:60000] date +"%A, %d %B %Y" # update every 60 seconds - font_size = 25 - font_family = $font - - position = -30, -150 - halign = right - valign = top -} - diff --git a/hyprland/.config/hypr/hyprpaper.conf b/hyprland/.config/hypr/hyprpaper.conf deleted file mode 100644 index e926ee4..0000000 --- a/hyprland/.config/hypr/hyprpaper.conf +++ /dev/null @@ -1,13 +0,0 @@ -# Default wallpaper configuration - -wallpaper { - monitor = eDP-2 - path = ~/.config/wallpapers/HyprArch.png - fit_mode = fill -} - -wallpaper { - monitor = HDMI-A-1 - path = ~/.config/wallpapers/HyprArch.png - fit_mode = fill -} diff --git a/hyprland/.config/hypr/input.conf b/hyprland/.config/hypr/input.conf deleted file mode 100644 index 0d84743..0000000 --- a/hyprland/.config/hypr/input.conf +++ /dev/null @@ -1,26 +0,0 @@ -# my layout : french canadian, change it to your prefered layout if you want -input { - kb_layout = ca - kb_variant = fr - kb_model = - kb_options = - kb_rules = - - follow_mouse = 1 - - sensitivity = 0 - - touchpad { - natural_scroll = false - disable_while_typing = false - } -} - -gesture = 3, horizontal, workspace - -gesture = 3, vertical, dispatcher, hyprexpo:expo, toggle - -device { - name = epic-mouse-v1 - sensitivity = -0.5 -} \ No newline at end of file diff --git a/hyprland/.config/hypr/keybinding.conf b/hyprland/.config/hypr/keybinding.conf deleted file mode 100644 index 39ebc7a..0000000 --- a/hyprland/.config/hypr/keybinding.conf +++ /dev/null @@ -1,87 +0,0 @@ -$mainMod = SUPER - -bind = $mainMod, Q, exec, $terminal -bind = $mainMod, C, killactive, -bind = $mainMod, M, exit -bind = $mainMod, N, exec, zen-browser -bind = $mainMod, X, exec, $menu -show powermenu:~/.config/hypr/rofi-power-menu -bind = $mainMod, Y, exec, ~/.local/bin/ytdl-mpv -bind = $mainMod, E, exec, $fileManager -bind = $mainMod, F, togglefloating, -bind = $mainMod, V, exec, copyq toggle -bind = $mainMod, D , exec, $menu -show drun -bind = $mainMod, R , exec, $menu -show run -bind = $mainMod, P, exec, ~/.config/hypr/rofi-mpris -bind = $mainMod, T, pseudo, # dwindle -bind = $mainMod, J, togglesplit, # dwindle -bind = $mainMod, W , exec, $emoji -bind = $mainMod, L, exec, hyprlock -bind =, PRINT, exec, hyprshot -m region - -bind = $mainMod, 1, workspace, 1 -bind = $mainMod, 2, workspace, 2 -bind = $mainMod, 3, workspace, 3 -bind = $mainMod, 4, workspace, 4 -bind = $mainMod, 5, workspace, 5 -bind = $mainMod, 6, workspace, 6 -bind = $mainMod, 7, workspace, 7 -bind = $mainMod, 8, workspace, 8 -bind = $mainMod, 9, workspace, 9 -bind = $mainMod, 0, workspace, 10 - -bind = $mainMod SHIFT, 1, movetoworkspace, 1 -bind = $mainMod SHIFT, 2, movetoworkspace, 2 -bind = $mainMod SHIFT, 3, movetoworkspace, 3 -bind = $mainMod SHIFT, 4, movetoworkspace, 4 -bind = $mainMod SHIFT, 5, movetoworkspace, 5 -bind = $mainMod SHIFT, 6, movetoworkspace, 6 -bind = $mainMod SHIFT, 7, movetoworkspace, 7 -bind = $mainMod SHIFT, 8, movetoworkspace, 8 -bind = $mainMod SHIFT, 9, movetoworkspace, 9 -bind = $mainMod SHIFT, 0, movetoworkspace, 10 - -bind = $mainMod, S, togglespecialworkspace, magic -bind = $mainMod SHIFT, S, movetoworkspace, special:magic - -bind = $mainMod, mouse_down, workspace, e+1 -bind = $mainMod, mouse_up, workspace, e-1 - -bindm = $mainMod, mouse:272, movewindow -bindm = $mainMod, mouse:273, resizewindow - -# bind = $mainMod, O, overview:toggle - -# media / volume key are some keyboard -bindel = ,XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise -bindel = ,XF86AudioLowerVolume, exec, swayosd-client --output-volume lower -bindel = ,XF86AudioMute, exec, swayosd-client --output-volume mute-toggle -bindel = ,XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle -bindel = ,XF86MonBrightnessUp, exec, swayosd-client --brightness raise -bindel = ,XF86MonBrightnessDown, exec,swayosd-client --brightness lower - -# media button on laptop -bindl = , XF86AudioNext, exec, playerctl next -bindl = , XF86AudioPause, exec, playerctl pause -bindl = , XF86AudioPlay, exec, playerctl play-pause -bindl = , XF86AudioPrev, exec, playerctl previous - -bind = $mainMod, left, movefocus, l -bind = $mainMod, right, movefocus, r -bind = $mainMod, up, movefocus, u -bind = $mainMod, down, movefocus, d - -bind = alt, TAB, hyprexpo:expo, toggle - -bind = shift, f4, exec, asusctl aura -n - -bind = shift, f6, exec, flameshot gui - -bind = CTRL SHIFT, Escape, exec, kitty btop - -# Scroll through existing workspaces with mainMod + scroll -bind = $mainMod, mouse_down, workspace, e+1 -bind = $mainMod, mouse_up, workspace, e-1 - -# Scroll through existing workspaces with mainMod + scroll -bind = $mainMod, mouse_down, workspace, e+1 -bind = $mainMod, mouse_up, workspace, e-1 \ No newline at end of file diff --git a/hyprland/.config/hypr/monitors.conf b/hyprland/.config/hypr/monitors.conf deleted file mode 100644 index 1753625..0000000 --- a/hyprland/.config/hypr/monitors.conf +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by nwg-displays on 2025-12-09 at 18:53:36. Do not edit manually. - -monitor=eDP-2,1920x1080@144.0,0x1080,1.0 -monitor=HDMI-A-1,1920x1080@120.0,0x0,1.0 diff --git a/hyprland/.config/hypr/nvidia.conf b/hyprland/.config/hypr/nvidia.conf deleted file mode 100644 index 8eab360..0000000 --- a/hyprland/.config/hypr/nvidia.conf +++ /dev/null @@ -1,6 +0,0 @@ -# Nvidia related config -# see more info : https://wiki.hypr.land/Nvidia -env = LIBVA_DRIVER_NAME,nvidia # for nvidia support -env = __GLX_VENDOR_LIBRARY_NAME,nvidia # for nvidia support -env = ELECTRON_OZONE_PLATFORM_HINT,auto # Wayland Support Electron App -env = GBM_BACKEND,nvidia-drm \ No newline at end of file diff --git a/hyprland/.config/hypr/permission.conf b/hyprland/.config/hypr/permission.conf deleted file mode 100644 index 8cc95bd..0000000 --- a/hyprland/.config/hypr/permission.conf +++ /dev/null @@ -1,13 +0,0 @@ -# See https://wiki.hypr.land/Configuring/Permissions/ -# Please note permission changes here require a Hyprland restart and are not applied on-the-fly -# for security reasons - -ecosystem { - enforce_permissions = 0 # enforced lockdown mode -} - -## default permission - -permission = /usr/(bin|local/bin)/grim, screencopy, allow -permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow -permission = /usr/(bin|local/bin)/hyprpm, plugin, allow \ No newline at end of file diff --git a/hyprland/.config/hypr/plugins.conf b/hyprland/.config/hypr/plugins.conf deleted file mode 100644 index 5bded16..0000000 --- a/hyprland/.config/hypr/plugins.conf +++ /dev/null @@ -1,26 +0,0 @@ -plugin { - hyprexpo { - columns = 3 - gap_size = 5 - bg_col = rgb(111111) - workspace_method = center current # [center/first] [workspace] e.g. first 1 or center m+1 - - enable_gesture = true # laptop touchpad - gesture_fingers = 3 # 3 or 4 - gesture_distance = 100 # how far is the "max" - gesture_positive = true # positive = swipe down. Negative = swipe up. - skip_empty = true - } - hyprbars { - # example config - bar_height = 20 - - # example buttons (R -> L) - # hyprbars-button = color, size, on-click - hyprbars-button = rgb(ff4040), 10, 󰖭, hyprctl dispatch killactive - hyprbars-button = rgb(eeee11), 10, , hyprctl dispatch fullscreen 1 - - # cmd to run on double click of the bar - on_double_click = hyprctl dispatch fullscreen 1 - } -} \ No newline at end of file diff --git a/hyprland/.config/hypr/rofi-mpris b/hyprland/.config/hypr/rofi-mpris deleted file mode 100755 index dfbb601..0000000 --- a/hyprland/.config/hypr/rofi-mpris +++ /dev/null @@ -1,282 +0,0 @@ -#!/usr/bin/env bash -MPRIS_CTL=0 -PLAYERCTL=1 -DEFAULT_THEME="$HOME/.config/rofi/config.rasi" - -HELP_STR="Usage: rofi-mpris [options] - Control MPRIS applications with rofi - options: - -m, --mpris-ctl Use mpris-ctl as MPRIS controller (DEFAULT) - -p, --playerctl Use playerctl as MPRIS controller - -f, --first-theme /path/to/theme.rasi Set rofi theme for the first level menu - Defaults to \$HOME/.config/rofi/config.rasi - -s, --second-theme /path/to/theme.rasi Set rofi theme for the second level menu - Defaults to the first theme - -h, --help Show this text" - -get_custom_opts() { - # setting up symbols used in the menu. - # these are defined here to be easily changed. - declare -Ag labels=( - ["play"]="󰐊" - ["pause"]="󰏤" - ["play_pause"]="󰐎" - ["stop"]="󰓛" - ["next"]="󰒭" - ["prev"]="󰒮" - ["loop"]="󰑖" - ["shuffle"]="󰒝" - ["active"]="󰝚" - ["inactive"]="󰝛" - ["target_all_players"]="All" - ["target_all_active_players"]="Active" - ["target_all_inactive_players"]="Inactive" - ) - - # can include "play" "pause" "play-pause" "stop" "next" "prev" "loop" "shuffle" in any order - options=( - "stop" - "prev" - "play_pause" - "next" - "loop" - ) - special_targets=( - "target_all_players" - #"target_all_active_players" # mpris-ctl exclusive - #"target_all_inactive_players" # mpris-ctl exclusive - ) - - # used in first level menu - rofi_first_params=( - -window-title "rofi-mpris" - -dmenu # dont change - -p "" - -format i # dont change - -theme "$FIRST_THEME" - ) - - # used in second level menu - rofi_second_params=( - -window-title "rofi-mpris" - -dmenu # dont change - -no-fixed-num-lines - -selected-row 2 # <- row selected by default. useful - -p "" - -format i # dont change - -theme "$SECOND_THEME" - ) - - # used for displaying actions in second level menu - declare -a option_display_array - for option in "${options[@]}"; do - option_display_array+=("${labels["$option"]}") - done - option_display="$(printf "%s\n" "${option_display_array[@]}")" -} - -main() { - parse_args "$@" - get_custom_opts - while true; do - readarray -t players <<<"$(get_players)" - declare -a target_display=( ) - # ^ this holds all target labels and player information - # the array gets converted to a string before being passed to rofi - # we add special targets (all, active, inactive) separate from actual players - for target in "${special_targets[@]}"; do - target_display+=("${labels["$target"]}") - done - for player in "${players[@]}"; do - target_display+=("$(get_player_info "$player")") - done - target_index="$(printf "%s\n" "${target_display[@]}" | rofi "${rofi_first_params[@]}")" - [[ -z $target_index ]] && break - # $target_index is empty if rofi gets passed ESC - if [[ -n "${special_targets[$target_index]}" ]]; then - # if index points to special target, use that - target_label="${labels[${special_targets[$target_index]}]}" - targeting_command="${commands[${special_targets[$target_index]}]}" - else - # otherwise we have to shift by the length of special targets - target_index=$((target_index - ${#special_targets[@]})) - target_label="${players[$target_index]}" - targeting_command="${commands["target_single_player"]} \"$target_label\"" - fi - # second menu level loop - while true; do - option_index="$(echo "$option_display"| rofi "${rofi_second_params[@]}")" - [[ -z $option_index ]] && break - option_command="${commands[${options[$option_index]}]}" - execute_option "$targeting_command" "$option_command" - done - done -} - -parse_args() { - while [[ $# -gt 0 ]]; do - case $1 in - -f|--first-theme) - FIRST_THEME="$2" # Used also for second if second is not given - shift # past argument - shift # past value - ;; - -s|--second-theme) - SECOND_THEME="$2" - shift # past argument - shift # past value - ;; - -p|--playerctl) - MPRIS_CONTROLLER=$PLAYERCTL - shift # past argument - ;; - -m|--mpris-ctl) - MPRIS_CONTROLLER=$MPRIS_CTL - shift # past argument - ;; - -h|--help) - echo -e "$HELP_STR" - exit 0 - ;; - *) - echo -e "$HELP_STR" - echo "Unknown option \"$1\"" - exit 1 - ;; - esac - done - - [[ -z $FIRST_THEME ]] && FIRST_THEME="$DEFAULT_THEME" - [[ -z $SECOND_THEME ]] && SECOND_THEME="$FIRST_THEME" - - # | this whole thing is just to make sure that the user isnt - # V trying to use a controller that doesnt exist - if [[ -z $MPRIS_CONTROLLER ]]; then - if hash mpris-ctl 2>/dev/null; then - MPRIS_CONTROLLER=$MPRIS_CTL - elif hash playerctl 2>/dev/null; then - MPRIS_CONTROLLER=$PLAYERCTL - else - echo "No mpris-ctl or playerctl in \$PATH." - echo -e "$HELP_STR" - exit 1 - fi - else - if [[ "$MPRIS_CONTROLLER" == "$MPRIS_CTL" ]]; then - if ! hash mpris-ctl 2>/dev/null; then - echo "No mpris-ctl in \$PATH." - echo -e "$HELP_STR" - exit 1 - fi - elif [[ "$MPRIS_CONTROLLER" == "$PLAYERCTL" ]]; then - if ! hash playerctl 2>/dev/null; then - echo "No playerctl in \$PATH." - echo -e "$HELP_STR" - exit 1 - fi - else - # should never happen - exit 1 - fi - fi - if [[ "$MPRIS_CONTROLLER" == "$MPRIS_CTL" ]]; then - get_opts_mpris_ctl - elif [[ "$MPRIS_CONTROLLER" == "$PLAYERCTL" ]]; then - get_opts_playerctl - else - # should never happen - exit 1 - fi -} - -# -# mpris-ctl version -# -get_opts_mpris_ctl() { - # note: declare makes associative arrays local if no -g flag is passed - # that was not fun to debug - declare -Ag commands=( - ["play"]="play" - ["pause"]="pause" - ["play_pause"]="pp" - ["stop"]="stop" - ["next"]="next" - ["prev"]="prev" - ["loop"]="repeat --track" - ["shuffle"]="shuffle" - ["target_all_players"]="--player active --player inactive" - ["target_all_active_players"]="--player active" - ["target_all_inactive_players"]="--player inactive" - ["target_single_player"]="--player" - ) - execute_option() { - local targeting_command="$1" - local option_command="$2" - eval "mpris-ctl $targeting_command $option_command" - } - get_players() { - mpris-ctl ${commands["target_all_players"]} list - # mris-ctl exits with 1 if no players are found - if [[ $? == 1 ]]; then - rofi -e "No MPRIS players running." - exit 1 - fi - } - get_player_info() { - local player="$1" - local player_info - if [[ "$(mpris-ctl --player "$player" status)" == "Playing" ]]; then - local status="${labels["active"]}" - else - local status="${labels["inactive"]}" - fi - player_info="$status $(mpris-ctl --player "$player" info "%player_name\t%artist_name - %track_name")" - echo "$player_info" - } -} - -# -# playerctl version -# -get_opts_playerctl() { - declare -Ag commands=( - ["play"]="play" - ["pause"]="pause" - ["play_pause"]="play-pause" - ["stop"]="stop" - ["next"]="next" - ["prev"]="previous" - ["loop"]="loop --track" - ["shuffle"]="shuffle Toggle" - ["target_all_players"]="-a" - ["target_all_active_players"]="" # not that simple in playerctl - ["target_all_inactive_players"]="" - ["target_single_player"]="-p" - ) - execute_option() { - local targeting_command="$1" - local option_command="$2" - eval "playerctl $targeting_command $option_command" - } - get_players() { - local players - players="$(playerctl -l 2>/dev/null)" - if [[ -z $players ]]; then - rofi -e "No MPRIS players running." - exit 1 - fi - echo -e "$players" - } - get_player_info() { - local player="$1" - local player_info - if [[ "$(playerctl -p "$player" status)" == "Playing" ]]; then - local status="${labels["active"]}" - else - local status="${labels["inactive"]}" - fi - player_info="$status $(playerctl -p "$player" metadata --format "{{playerName}}\t{{artist}} - {{title}}")" - echo -e "$player_info" - } -} - -main "$@" diff --git a/hyprland/.config/hypr/rofi-power-menu b/hyprland/.config/hypr/rofi-power-menu deleted file mode 100755 index 47a5fbb..0000000 --- a/hyprland/.config/hypr/rofi-power-menu +++ /dev/null @@ -1,274 +0,0 @@ -#!/usr/bin/env bash - -# This script defines just a mode for rofi instead of being a self-contained -# executable that launches rofi by itself. This makes it more flexible than -# running rofi inside this script as now the user can call rofi as one pleases. -# For instance: -# -# rofi -show powermenu -modi powermenu:./rofi-power-menu -# -# See README.md for more information. - -set -e -set -u - -# All supported choices -all=(shutdown reboot suspend logout lockscreen) - -# By default, show all (i.e., just copy the array) -show=("${all[@]}") - -declare -A texts -texts[lockscreen]="Lock" -texts[logout]="Logout" -texts[suspend]="suspend" -texts[reboot]="Reboot" -texts[shutdown]="Shutdown" - -declare -A icons -icons[lockscreen]="\Uf033e" -icons[logout]="\Uf0343" -icons[suspend]="\Uf04b2" -icons[reboot]="\Uf0709" -icons[shutdown]="\Uf0425" -icons[cancel]="\Uf0156" - -declare -A actions -actions[lockscreen]="loginctl lock-session ${XDG_SESSION_ID-}" -actions[logout]="loginctl terminate-session ${XDG_SESSION_ID-}" -actions[suspend]="systemctl suspend" -actions[reboot]="systemctl reboot" -actions[shutdown]="systemctl poweroff" - -# By default, ask for confirmation for actions that are irreversible -confirmations=(reboot shutdown logout) - -# By default, no dry run -dryrun=false -showsymbols=true -showtext=true - -function check_valid { - option="$1" - shift 1 - for entry in "${@}" - do - if [ -z "${actions[$entry]+x}" ] - then - echo "Invalid choice in $1: $entry" >&2 - exit 1 - fi - done -} - -# Parse command-line options -parsed=$(getopt --options=h --longoptions=help,dry-run,confirm:,choices:,choose:,symbols,no-symbols,text,no-text,symbols-font: --name "$0" -- "$@") -if [ $? -ne 0 ]; then - echo 'Terminating...' >&2 - exit 1 -fi -eval set -- "$parsed" -unset parsed -while true; do - case "$1" in - "-h"|"--help") - echo "rofi-power-menu - a power menu mode for Rofi" - echo - echo "Usage: rofi-power-menu [--choices CHOICES] [--confirm CHOICES]" - echo " [--choose CHOICE] [--dry-run] [--symbols|--no-symbols]" - echo - echo "Use with Rofi in script mode. For instance, to ask for shutdown or reboot:" - echo - echo " rofi -show menu -modi \"menu:rofi-power-menu --choices=shutdown/reboot\"" - echo - echo "Available options:" - echo " --dry-run Don't perform the selected action but print it to stderr." - echo " --choices CHOICES Show only the selected choices in the given order. Use /" - echo " as the separator. Available choices are lockscreen," - echo " logout,suspend, hibernate, reboot and shutdown. By" - echo " default, all available choices are shown." - echo " --confirm CHOICES Require confirmation for the gives choices only. Use / as" - echo " the separator. Available choices are lockscreen, logout," - echo " suspend, hibernate, reboot and shutdown. By default, only" - echo " irreversible actions logout, reboot and shutdown require" - echo " confirmation." - echo " --choose CHOICE Preselect the given choice and only ask for a" - echo " confirmation (if confirmation is set to be requested). It" - echo " is strongly recommended to combine this option with" - echo " --confirm=CHOICE if the choice wouldn't require" - echo " confirmation by default. Available choices are" - echo " lockscreen, logout, suspend, hibernate, reboot and" - echo " shutdown." - echo " --[no-]symbols Show Unicode symbols or not. Requires a font with support" - echo " for the symbols. Use, for instance, fonts from the" - echo " Nerdfonts collection. By default, they are shown" - echo " --[no-]text Show text description or not." - echo " --symbols-font FONT Use the given font for symbols. By default, the symbols" - echo " use the same font as the text. That font is configured" - echo " with rofi." - echo " -h,--help Show this help text." - exit 0 - ;; - "--dry-run") - dryrun=true - shift 1 - ;; - "--confirm") - IFS='/' read -ra confirmations <<< "$2" - check_valid "$1" "${confirmations[@]}" - shift 2 - ;; - "--choices") - IFS='/' read -ra show <<< "$2" - check_valid "$1" "${show[@]}" - shift 2 - ;; - "--choose") - # Check that the choice is valid - check_valid "$1" "$2" - selectionID="$2" - shift 2 - ;; - "--symbols") - showsymbols=true - shift 1 - ;; - "--no-symbols") - showsymbols=false - shift 1 - ;; - "--text") - showtext=true - shift 1 - ;; - "--no-text") - showtext=false - shift 1 - ;; - "--symbols-font") - symbols_font="$2" - shift 2 - ;; - "--") - shift - break - ;; - *) - echo "Internal error" >&2 - exit 1 - ;; - esac -done - -if [ "$showsymbols" = "false" -a "$showtext" = "false" ] -then - echo "Invalid options: cannot have --no-symbols and --no-text enabled at the same time." >&2 - exit 1 -fi - -# Define the messages after parsing the CLI options so that it is possible to -# configure them in the future. - -function write_message { - if [ -z ${symbols_font+x} ]; - then - icon="$1" - else - icon="$1" - fi - text="$2" - if [ "$showsymbols" = "true" ] - then - if [ "$showtext" = "true" ] - then - echo -n "\u200e$icon \u2068$text\u2069" - else - echo -n "\u200e$icon" - fi - else - echo -n "$text" - fi -} - -function print_selection { - echo -e "$1" | $(read -r -d '' entry; echo "echo $entry") -} - -declare -A messages -declare -A confirmationMessages -for entry in "${all[@]}" -do - messages[$entry]=$(write_message "${icons[$entry]}" "${texts[$entry]^}") -done -for entry in "${all[@]}" -do - confirmationMessages[$entry]=$(write_message "${icons[$entry]}" "Yes, ${texts[$entry]}") -done -confirmationMessages[cancel]=$(write_message "${icons[cancel]}" "No, cancel") - -if [ $# -gt 0 ] -then - # If arguments given, use those as the selection - selection="${@}" -else - # Otherwise, use the CLI passed choice if given - if [ -n "${selectionID+x}" ] - then - selection="${messages[$selectionID]}" - fi -fi - -# Don't allow custom entries -echo -e "\0no-custom\x1ftrue" -# Use markup -echo -e "\0markup-rows\x1ftrue" - -if [ -z "${selection+x}" ] -then - echo -e "\0prompt\x1fPower menu" - for entry in "${show[@]}" - do - echo -e "${messages[$entry]}\0icon\x1f${icons[$entry]}" - done -else - for entry in "${show[@]}" - do - if [ "$selection" = "$(print_selection "${messages[$entry]}")" ] - then - # Check if the selected entry is listed in confirmation requirements - for confirmation in "${confirmations[@]}" - do - if [ "$entry" = "$confirmation" ] - then - # Ask for confirmation - echo -e "\0prompt\x1fAre you sure" - echo -e "${confirmationMessages[$entry]}\0icon\x1f${icons[$entry]}" - echo -e "${confirmationMessages[cancel]}\0icon\x1f${icons[cancel]}" - exit 0 - fi - done - # If not, then no confirmation is required, so mark confirmed - selection=$(print_selection "${confirmationMessages[$entry]}") - fi - if [ "$selection" = "$(print_selection "${confirmationMessages[$entry]}")" ] - then - if [ $dryrun = true ] - then - # Tell what would have been done - echo "Selected: $entry" >&2 - else - # Perform the action - ${actions[$entry]} - fi - exit 0 - fi - if [ "$selection" = "$(print_selection "${confirmationMessages[cancel]}")" ] - then - # Do nothing - exit 0 - fi - done - # The selection didn't match anything, so raise an error - echo "Invalid selection: $selection" >&2 - exit 1 -fi diff --git a/hyprland/.config/hypr/windows-rule.conf b/hyprland/.config/hypr/windows-rule.conf deleted file mode 100644 index 877ee2b..0000000 --- a/hyprland/.config/hypr/windows-rule.conf +++ /dev/null @@ -1,30 +0,0 @@ -# windows Rule - -windowrule = match:title Picture-in-Picture, float on, pin on # enable picture in picture mode in firefox - -windowrule = match:class kitty, no_blur on - -windowrule = match:class ^(org.pulseaudio.pavucontrol)$, float on, pin on, center on, size 700 600 - -windowrule = border_color rgb(FF0000) rgb(880808), match:fullscreen 1 # Set border color to red if window is fullscreen - -windowrule { - # Ignore maximize requests from all apps. You'll probably like this. - name = suppress-maximize-events - match:class = .* - - suppress_event = maximize -} - -windowrule { - # Fix some dragging issues with XWayland - name = fix-xwayland-drags - match:class = ^$ - match:title = ^$ - match:xwayland = true - match:float = true - match:fullscreen = false - match:pin = false - - no_focus = true -} \ No newline at end of file diff --git a/hyprland/.config/hypr/workspaces.conf b/hyprland/.config/hypr/workspaces.conf deleted file mode 100644 index e69de29..0000000 diff --git a/hyprshell/.config/hyprshell/config.ron b/hyprshell/.config/hyprshell/config.ron deleted file mode 100644 index 3e15acb..0000000 --- a/hyprshell/.config/hyprshell/config.ron +++ /dev/null @@ -1,107 +0,0 @@ -( - version: 3, - windows: ( - scale: 8.5, - items_per_row: 5, - overview: ( - launcher: ( - default_terminal: "kitty", - launch_modifier: "ctrl", - width: 650, - max_items: 5, - show_when_empty: true, - plugins: ( - applications: ( - run_cache_weeks: 8, - show_execs: true, - show_actions_submenu: true, - ), - terminal: (), - shell: (), - websearch: ( - engines: [ - ( - url: "https://www.google.com/search?q={}", - name: "Google", - key: 'g', - ), - ( - url: "https://www.startpage.com/sp/search?query={}", - name: "Startpage", - key: 's', - ), - ( - url: "https://duckduckgo.com/?q={}", - name: "DuckDuckGo", - key: 'd', - ), - ( - url: "https://www.bing.com/search?q={}", - name: "Bing", - key: 'b', - ), - ( - url: "https://en.wikipedia.org/wiki/Special:Search?search={}", - name: "Wikipedia", - key: 'w', - ), - ( - url: "https://chatgpt.com/?q={}", - name: "ChatGpt", - key: 'c', - ), - ( - url: "https://www.youtube.com/results?search_query={}", - name: "YouTube", - key: 'y', - ), - ( - url: "https://www.reddit.com/search?q={}", - name: "Reddit", - key: 'r', - ), - ], - ), - calc: (), - path: (), - actions: ( - actions: [ - lock_screen, - hibernate, - logout, - reboot, - shutdown, - suspend, - custom( - names: [ - "Kill", - "Stop", - ], - details: "Kill or stop a process by name", - command: "pkill \"{}\" && notify-send hyprshell \"stopped {}\"", - icon: "remove", - ), - custom( - names: [ - "Reload Hyprshell", - ], - details: "Reload Hyprshell", - command: "sleep 1; hyprshell socat \'\"Restart\"\'", - icon: "system-restart", - ), - ], - ), - ), - ), - key: "super_l", - modifier: "super", - filter_by: [], - hide_filtered: false, - ), - switch: ( - modifier: "super", - filter_by: [], - switch_workspaces: true, - ), - ), -) \ No newline at end of file diff --git a/hyprshell/.config/hyprshell/styles.css b/hyprshell/.config/hyprshell/styles.css deleted file mode 100644 index 319b754..0000000 --- a/hyprshell/.config/hyprshell/styles.css +++ /dev/null @@ -1,56 +0,0 @@ -:root { - --border-color: rgba(90, 90, 120, 0.4); - --border-color-active: rgba(239, 9, 239, 0.9); - - --bg-color: rgba(20, 20, 20, 0.8); - --bg-color-hover: rgba(40, 40, 50, 1); - - --border-radius: 12px; - --border-size: 3px; - --border-style: solid; - - --text-color: rgba(245, 245, 245, 1); - - --window-padding: 2px; -} - -.window { -} - - -.monitor { -} - -.workspace { -} - -.client { -} - -.client-image { -} - - -.launcher { -} - -.launcher-input { -} - -.launcher-results { -} - -.launcher-item { -} - -.launcher-exec { -} - -.launcher-key { -} - -.launcher-plugins { -} - -.launcher-plugin { -} \ No newline at end of file diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 3a8d0e9..39546e9 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -10,30 +10,9 @@ font pango:Open sans 11 ### Runnig apps in background ### -# run picom -exec_always --no-startup-id picom & - -# run dunst -exec_always --no-startup-id dunst & - -# set wallpaper with feh -exec_always feh --bg-fill ~/.dotfiles/wallpapers/wallpaper-cirno1.jpeg - # launch polybar exec_always --no-startup-id killall -q -exec_always --no-startup-id $HOME/.config/polybar/launch.sh - -# launch copy -exec copyq - -# launch flameshot -exec flameshot - -# start i3 components -exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork -exec --no-startup-id nm-applet -exec --no-startup-id blueman-applet -exec --no-startup-id autotiling +exec_always --no-startup-id ~/.dotfiles/polybar/.config/polybar/launch-mate.sh ### Shortcuts ### floating_modifier $mod @@ -41,9 +20,6 @@ floating_modifier $mod # start a terminal bindsym $mod+q exec kitty -# Emoji -bindsym $mod+Shift+w exec emote - # kill focused window bindsym $mod+c kill @@ -66,7 +42,7 @@ bindsym $mod+h split h bindsym $mod+v split v # enter fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle +bindsym $mod+Shift+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) bindsym $mod+Shift+q layout stacking @@ -82,7 +58,7 @@ bindsym $mod+ctrl+r exec --no-startup-id i3-resurrect restore bindsym $mod+ctrl+s exec --no-startup-id i3-resurrect save # toggle tiling / floating -bindsym $mod+Shift+space floating toggle +bindsym $mod+f floating toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle @@ -90,26 +66,19 @@ bindsym $mod+space focus mode_toggle # run lockscreen bindsym $mod+l exec i3lock -# move workspaces between monitors +# move workspaces between monitors bindsym $mod+b move workspace to output up # run rofi programs -bindsym $mod+d exec "rofi -show drun" -bindsym $mod+r exec "rofi -show run" -bindsym $mod+w exec "rofi -show window" -bindsym $mod+x exec "rofi -show powermenu" -bindsym $mod+y exec "bash ~/.local/bin/ytdl-mpv" -bindsym $mod+p exec "~/.dotfiles/rofi/.config/rofi/rofi-mpris" -bindsym $mod+dot exec "emote" -bindsym $mod+n exec "zen-browser" - -# windows rule -for_window [class="Microsoft Visual Studio 2022"] floating enable -for_window [class="Microsoft Edge"] floating enable -for_window [class="File Explorer"] floating enable +bindsym $mod+d exec --no-startup-id "rofi -show drun" +bindsym $mod+r exec --no-startup-id "rofi -show run" +bindsym $mod+w exec --no-startup-id "rofi -show window" +bindsym $mod+Shift+w exec --no-startup-id "rofi -show emoji" +bindsym $mod+x exec --no-startup-id mate-session-save --shutdown-dialog +bindsym $mod+n exec "firefox" # dolphin -bindsym $mod+e exec "dolphin" +bindsym $mod+e exec "env -u DESKTOP_AUTOSTART_ID caja --no-desktop --browser" # take a screenshot bindsym Pause exec screenshot -sa @@ -120,8 +89,8 @@ bindsym XF86MonBrightnessUp exec brightnessctl s 2+ bindsym XF86MonBrightnessDown exec brightnessctl s 2- # audio control -bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 5%+ && volume & -bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 5%- && volume & +bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i 5 +bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 5 bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && mute & # turn off screen @@ -167,7 +136,7 @@ bindsym $mod+Shift+0 move container to workspace number $ws10 bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart +bindsym $mod+Shift+r exec --no-startup-id "gsettings set org.mate.background picture-options 'spanned' && sleep 1 && gsettings set org.mate.background picture-options 'zoom' && i3-msg restart" # exit i3 (logs you out of your X session) bindsym $mod+m exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" @@ -178,7 +147,7 @@ bindsym $mod+m exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do default_border pixel 4 #border colors -client.focused #0000FF #00008B #90D5FF #57B9FF #77B1D4 +client.focused #9c0ddaff #070707ff #ffffffff #4c1ecaff #9900ecff client.focused_inactive #343746 #343746 #F8F8F2 #21222C #21222C client.unfocused #343746 #343746 #F8F8F2 #21222C #21222C @@ -187,7 +156,6 @@ client.unfocused #343746 #343746 #F8F8F2 #21222C #21222C # Set inner/outer gaps gaps inner 8 gaps outer 0 - -exec_always --no-startup-id libinput-gestures-setup start -exec_always --no-startup-id xinput set-prop "ASUF1204:00 2808:0104 Touchpad" "libinput Disable While Typing Enabled" 0 +# windows rule +for_window [class="pavucontrol"] floating enable, move position center \ No newline at end of file diff --git a/i3/.config/i3/config-standalone b/i3/.config/i3/config-standalone new file mode 100644 index 0000000..e7792a6 --- /dev/null +++ b/i3/.config/i3/config-standalone @@ -0,0 +1,168 @@ +# Documentation: https://i3wm.org/docs/userguide.html +# Config created by Keyitdev https://www.github.com/keyitdev/dotfiles +# Copyright (C) 2022 Keyitdev + +# set mod +set $mod Mod4 + +# set font +font pango:Open sans 11 + +### Runnig apps in background ### + +# set wallpaper with feh +exec_always feh --bg-fill ~/.dotfiles/wallpapers/wallpaper-cirno1.jpeg + +# launch polybar +exec_always --no-startup-id killall -q +exec_always --no-startup-id ~/.dotfiles/polybar/.config/polybar/launch.sh + +# start i3-lock +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork + +### Shortcuts ### +floating_modifier $mod + +# start a terminal +bindsym $mod+q exec kitty + +# kill focused window +bindsym $mod+c kill + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+Shift+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+Shift+q layout stacking +bindsym $mod+Shift+t layout tabbed +bindsym $mod+Shift+e layout toggle split + +# Hyprland like Special Workspace (Scratchpad) +bindsym $mod+Shifts move scratchpad +bindsym $mod+s scratchpad show + +# save and restore layout with i3-resurrect +bindsym $mod+ctrl+r exec --no-startup-id i3-resurrect restore +bindsym $mod+ctrl+s exec --no-startup-id i3-resurrect save + +# toggle tiling / floating +bindsym $mod+f floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# run lockscreen +bindsym $mod+l exec i3lock + +# move workspaces between monitors +bindsym $mod+b move workspace to output up + +# run rofi programs +bindsym $mod+d exec "rofi -show drun" +bindsym $mod+r exec "rofi -show run" +bindsym $mod+w exec "rofi -show window" +bindsym $mod+Shift+w exec "rofi -show emoji" +bindsym $mod+x exec "rofi -show powermenu" +bindsym $mod+n exec "firefox" + +# dolphin +bindsym $mod+e exec "dolphin" + +# take a screenshot +bindsym Pause exec screenshot -sa +bindsym Print exec screenshot -sf + +# brightness control +bindsym XF86MonBrightnessUp exec brightnessctl s 2+ +bindsym XF86MonBrightnessDown exec brightnessctl s 2- + +# audio control +bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 5%+ && volume & +bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 5%- && volume & +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && mute & + +# turn off screen +bindsym XF86ScreenSaver exec xset dpms force off + +# workspaces names +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# switch to workspace +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload + +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart + +# exit i3 (logs you out of your X session) +bindsym $mod+m exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" + +### BODERS ### + +#border width +default_border pixel 4 + +#border colors +client.focused #0000FF #00008B #90D5FF #57B9FF #77B1D4 +client.focused_inactive #343746 #343746 #F8F8F2 #21222C #21222C +client.unfocused #343746 #343746 #F8F8F2 #21222C #21222C + +### SETTINGS FOR GAPS ### + +# Set inner/outer gaps +gaps inner 8 +gaps outer 0 + +# window rule +for_window [class=Firefox] border 1 +for_window [class="pavucontrol"] floating enable, move position center \ No newline at end of file diff --git a/i3/.config/i3/swipe_desktop.sh b/i3/.config/i3/swipe_desktop.sh deleted file mode 100755 index dee4d9b..0000000 --- a/i3/.config/i3/swipe_desktop.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -DIRECTION=$1 -CURRENT=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).name' | cut -d"\"" -f2) - -MIN=$(i3-msg -t get_workspaces | jq '.[0].num') -if [ $CURRENT -eq $MIN ] && [ $DIRECTION = "prev" ]; then - exit 0 -fi - -MAX=$(i3-msg -t get_workspaces | jq '.[-1].num') -if [ $CURRENT -eq $MAX ] && [ $DIRECTION = "next" ]; then - exit 0 -fi - -i3-msg workspace $DIRECTION diff --git a/install.sh b/install.sh index d59e37d..15b0b04 100755 --- a/install.sh +++ b/install.sh @@ -10,5 +10,5 @@ else # exit 1 #fi - exec $HOME/.dotfiles/scripts/installer.sh + exec $HOME/.dotfiles/scripts/freebsd-installer.sh fi diff --git a/libinput-gestures/.config/libinput-gestures.conf b/libinput-gestures/.config/libinput-gestures.conf deleted file mode 100644 index 166fe9f..0000000 --- a/libinput-gestures/.config/libinput-gestures.conf +++ /dev/null @@ -1,2 +0,0 @@ -gesture swipe left 3 i3-msg workspace prev -gesture swipe right 3 i3-msg workspace next diff --git a/polybar/.config/polybar/colors.ini b/polybar/.config/polybar/colors.ini index ff116ea..ee04aeb 100755 --- a/polybar/.config/polybar/colors.ini +++ b/polybar/.config/polybar/colors.ini @@ -1,16 +1,16 @@ [color] - background = #1b1b25 foreground = #dedede +transparent = #0000003f sep = #F8F8F2 -white = #eeffff -black = #15121c -red = #cb5760 -green = #999f63 -yellow = #d4a067 -blue = #6c90a8 -purple = #776690 -cyan = #528a9b -pink = #ffa8c5 -orange = #c87c3e \ No newline at end of file +white = #b8c0e0 +black = #181926 +red = #ed8796 +green = #a6da95 +yellow = #eed49f +blue = #8aadf4 +purple = #c6a0f6 +cyan = #8bd5ca +pink = #f5bde6 +orange = #f5a97f \ No newline at end of file diff --git a/polybar/.config/polybar/config-x.ini b/polybar/.config/polybar/config-mate.ini similarity index 73% rename from polybar/.config/polybar/config-x.ini rename to polybar/.config/polybar/config-mate.ini index 9048e79..0cf6add 100644 --- a/polybar/.config/polybar/config-x.ini +++ b/polybar/.config/polybar/config-mate.ini @@ -1,16 +1,16 @@ ; Documentation: https://github.com/polybar/polybar/wiki ; Config created by Keyitdev https://www.github.com/keyitdev/dotfiles ; Copyright (C) 2022 Keyitdev +# Modified by Xgui4 https://www.github.com/xgui4/.dotfiles ;; Global WM Settings [global/wm] - margin-bottom = 0 margin-top = 0 fixed-center = true -include-file = $HOME/.config/polybar/colors.ini +include-file = colors.ini ;; Application Settings @@ -31,9 +31,8 @@ compositing-border = over ;; Bar Settings [bar/main] -modules-left = right1 xworkspace left1 sep right1 title left1 -modules-center = right1 sep2 temperature sep2 cpu sep2 memory left1 -modules-right = right1 tray left1 sep right1 date left1 sep right1 pulseaudio left1 sep right1 backlight left1 sep right1 battery left1 sep right1 uptime left1 sep right1 dunst left1 +modules-left = right1 menu left1 sep right1 i3 left1 sep right1 title left1 +modules-right = right1 tray left1 sep right1 date left1 sep right1 pulseaudio left1 sep right1 dunst left1 separator = monitor = @@ -68,7 +67,7 @@ border-right-size = 8 border-right-color = #002d333f font-0 = "Hack Nerd Font:size=12;4" -font-1 = "Arial:style=Medium:size=18;4" +font-1 = "Hack Nerd Font:style=Medium:size=18;4" font-2 = "feather:size=13;5" ; Enable support for inter-process messaging @@ -76,12 +75,11 @@ font-2 = "feather:size=13;5" enable-ipc = true [bar/second] -modules-left = right1 xworkspace left1 sep right1 title left1 -modules-center = right1 sep2 temperature sep2 cpu sep2 memory left1 -modules-right = right1 date left1 sep right1 pulseaudio left1 sep right1 backlight left1 sep right1 battery left1 sep right1 uptime left1 sep right1 dunst left1 +modules-left = right1 menu left1 sep right1 i3 left1 sep right1 title left1 +modules-right = right1 date left1 sep right1 pulseaudio left1 sep right1 dunst left1 separator = -monitor = HDMI-1-0 +monitor = HDMI-0 monitor-fallback = monitor-strict = false override-redirect = false @@ -98,7 +96,7 @@ offset-y = 0% radius-top = 0 radius-bottom = 0 -background = #002d333f +background = ${color.transparent} foreground = ${color.foreground} dim-value = 1.0 @@ -113,7 +111,7 @@ border-right-size = 8 border-right-color = #002d333f font-0 = "Hack Nerd Font:size=12;4" -font-1 = "Arial:style=Medium:size=18;4" +font-1 = "Hack Nerd Font:style=Medium:size=18;4" font-2 = "feather:size=13;5" ; Enable support for inter-process messaging @@ -129,12 +127,16 @@ gright =  [module/tray] type = internal/tray -format-margin = 8px -tray-spacing = 8px -content-foreground = ${color.background} -content-background = ${color.background} + format-background = ${color.background} +tray-foreground = ${color.foreground} +tray-background = ${color.background} + +tray-padding = 5px +tray-spacing = 0 +tray-size = 66% + [module/left1] type = custom/text content-background = #002d333f @@ -162,43 +164,29 @@ content-background = ${color.background} [module/pulseaudio] type = internal/pulseaudio +interval = 5 -; Sink to be used, if it exists (find using `pacmd list-sinks`, name field) -; If not, uses default sink -; sink = alsa_output.pci-0000_12_00.3.analog-stereo - -; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false -; Default: true +; use-ui-max ? 153 : 100 use-ui-max = true -; Interval for volume increase/decrease (in percent points) -; Default: 5 -interval = 5 - -; Reverses the increment/decrement on scroll event. Set this to true if you are -; using natural scrolling option on your touchpad. -; New in version 3.7.0 -; Default: false -reverse-scroll = false -; Available tags: -; (default) -; -; format-volume = -label-muted =  muted -label-muted-foreground = #666 +format-volume-background = ${color.background} +format-muted = muted +format-muted-background = ${color.background} + +label-volume = %percentage%% +label-volume-foreground = ${color.blue} +label-muted = 󰝟 +label-muted-foreground =${color.red} -; Only applies if is used ramp-volume-0 =  ramp-volume-1 =  ramp-volume-2 =  - -; Right and Middle click +ramp-headphones-0 = 󰋎 +ramp-headphones-1 = 󰋎 +ramp-headphones-2 = 󰋎 +ramp-volume-foreground = ${color.blue} click-right = pavucontrol -; click-middle = -content-foreground = ${color.background} -content-background = ${color.background} -format-background = ${color.background} [module/battery] type = internal/battery @@ -210,18 +198,19 @@ full-at = 99 time-format = %H:%M format-charging = -format-charging-prefix = "" +format-charging-prefix = "󱊦" format-charging-prefix-foreground = ${color.green} format-charging-prefix-background = ${color.background} format-discharging = -format-discharging-prefix = "" +format-discharging-prefix = "󱟞" format-discharging-prefix-foreground = ${color.pink} format-discharging-prefix-background = ${color.background} format-full = -format-full-prefix =  -format-full-prefix-foreground = ${color.red} +format-full-foreground = ${color.green} +format-full-prefix = 󱊣 +format-full-prefix-foreground = ${color.green} format-full-prefix-background = ${color.background} label-charging = " %percentage%%" @@ -238,7 +227,7 @@ type = internal/cpu interval = 1 format =