Compare commits

...

4 Commits

Author SHA1 Message Date
365a2d6ac3 Added packages, fixed hypr conf 2024-07-13 15:34:04 +02:00
993af4e26c Changed hyprland config 2024-06-22 17:00:49 +02:00
fb76c95d1f Edited nvim 2024-06-05 22:47:26 +02:00
c29c755c14 Added bash editor env var 2024-06-02 18:53:52 +02:00
15 changed files with 42 additions and 422 deletions

View File

@@ -1,6 +1,10 @@
# If not running interactively, don't do anything # If not running interactively, don't do anything
[[ $- != *i* ]] && return [[ $- != *i* ]] && return
# Env vars
export EDITOR=nvim
export VISUAL=nvim
# Load starship prompt if starship is installed # Load starship prompt if starship is installed
if [ -f /usr/bin/starship ]; then if [ -f /usr/bin/starship ]; then
eval "$(starship init bash)" eval "$(starship init bash)"

View File

@@ -18,7 +18,7 @@ source = ~/.config/hypr/devices.conf
# Input # Input
input { input {
kb_layout = de kb_layout = us
numlock_by_default = 1 numlock_by_default = 1
follow_mouse = 1 follow_mouse = 1
@@ -81,11 +81,6 @@ dwindle {
preserve_split = yes preserve_split = yes
} }
# Master
master {
new_is_master = true
}
# Gestures # Gestures
gestures { gestures {
workspace_swipe = on workspace_swipe = on

View File

@@ -1,36 +0,0 @@
#!/bin/bash
rofi_conf="~/.config/rofi/main.rasi"
# Rofi action
case $1 in
d) mode="drun" ;;
w) mode="window" ;;
f) mode="filebrowser" ;;
e) mode="emoji"
action=(-a copy)
;;
c) mode="calc"
action=(-calc-command "wl-copy {result}")
children="\"message\", "
;;
h) echo -e "$0 [action]"
echo "d : drun mode"
echo "w : window mode"
echo "f : filebrowser mode"
exit 0 ;;
*) mode="drun" ;;
esac
# Get font
font=`gsettings get org.gnome.desktop.interface font-name`
fnt_override="configuration {font: \"${font//\'}\";}"
# Get icon theme
icon_override=`gsettings get org.gnome.desktop.interface icon-theme | sed "s/'//g"`
icon_override="configuration {icon-theme: \"${icon_override}\";}"
# Children
children_ovr="mainbox {children: [\"inputbar\", $children \"listbox\"];}"
# Launch rofi
rofi -show $mode ${action[0]} "${action[1]}" -theme-str "$children_ovr" -theme-str "$fnt_override" -theme-str "$icon_override" -config "$rofi_conf"

View File

@@ -1,24 +0,0 @@
#!/bin/bash
roconf="~/.config/rofi/clipboard.rasi"
# Read font
font=`gsettings get org.gnome.desktop.interface font-name`
fnt_override="configuration {font: \"${font//\'}\";}"
# Clipboard action
case $1 in
c) cliphist list | rofi -dmenu -theme-str "entry { placeholder: \"Copy...\";}" -theme-str "$fnt_override" -config $roconf | cliphist decode | wl-copy
;;
d) cliphist list | rofi -dmenu -theme-str "entry { placeholder: \"Delete...\";}" -theme-str "$fnt_override" -config $roconf | cliphist delete
;;
w) if [ `echo -e "Yes\nNo" | rofi -dmenu -theme-str "entry { placeholder: \"Clear Clipboard History?\";}" -theme-str "$fnt_override" -config $roconf` == "Yes" ] ; then
cliphist wipe
fi
;;
*) echo -e "$0 [action]"
echo "c : cliphist list and copy selected"
echo "d : cliphist list and delete selected"
echo "w : cliphist wipe database"
exit 1
;;
esac

View File

@@ -1,5 +0,0 @@
#!/bin/bash
HYPRCMDS=$(hyprctl -j clients | jq -j '.[] | "dispatch closewindow address:\(.address); "')
hyprctl --batch "$HYPRCMDS" >> /tmp/hypr/cexit.log 2>&1

View File

@@ -1,6 +0,0 @@
#!/bin/bash
HYPRCMDS=$(hyprctl -j clients | jq -j '.[] | "dispatch closewindow address:\(.address); "')
hyprctl --batch "$HYPRCMDS" >> /tmp/hypr/cexit.log 2>&1
hyprctl dispatch exit >> /tmp/hypr/cexit.log 2>&1

View File

@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2021 Catppuccin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -1,78 +0,0 @@
$rosewater = rgb(f2d5cf)
$rosewaterAlpha = f2d5cf
$flamingo = rgb(eebebe)
$flamingoAlpha = eebebe
$pink = rgb(f4b8e4)
$pinkAlpha = f4b8e4
$mauve = rgb(ca9ee6)
$mauveAlpha = ca9ee6
$red = rgb(e78284)
$redAlpha = e78284
$maroon = rgb(ea999c)
$maroonAlpha = ea999c
$peach = rgb(ef9f76)
$peachAlpha = ef9f76
$yellow = rgb(e5c890)
$yellowAlpha = e5c890
$green = rgb(a6d189)
$greenAlpha = a6d189
$teal = rgb(81c8be)
$tealAlpha = 81c8be
$sky = rgb(99d1db)
$skyAlpha = 99d1db
$sapphire = rgb(85c1dc)
$sapphireAlpha = 85c1dc
$blue = rgb(8caaee)
$blueAlpha = 8caaee
$lavender = rgb(babbf1)
$lavenderAlpha = babbf1
$text = rgb(c6d0f5)
$textAlpha = c6d0f5
$subtext1 = rgb(b5bfe2)
$subtext1Alpha = b5bfe2
$subtext0 = rgb(a5adce)
$subtext0Alpha = a5adce
$overlay2 = rgb(949cbb)
$overlay2Alpha = 949cbb
$overlay1 = rgb(838ba7)
$overlay1Alpha = 838ba7
$overlay0 = rgb(737994)
$overlay0Alpha = 737994
$surface2 = rgb(626880)
$surface2Alpha = 626880
$surface1 = rgb(51576d)
$surface1Alpha = 51576d
$surface0 = rgb(414559)
$surface0Alpha = 414559
$base = rgb(303446)
$baseAlpha = 303446
$mantle = rgb(292c3c)
$mantleAlpha = 292c3c
$crust = rgb(232634)
$crustAlpha = 232634

View File

@@ -1,78 +0,0 @@
$rosewater = rgb(dc8a78)
$rosewaterAlpha = dc8a78
$flamingo = rgb(dd7878)
$flamingoAlpha = dd7878
$pink = rgb(ea76cb)
$pinkAlpha = ea76cb
$mauve = rgb(8839ef)
$mauveAlpha = 8839ef
$red = rgb(d20f39)
$redAlpha = d20f39
$maroon = rgb(e64553)
$maroonAlpha = e64553
$peach = rgb(fe640b)
$peachAlpha = fe640b
$yellow = rgb(df8e1d)
$yellowAlpha = df8e1d
$green = rgb(40a02b)
$greenAlpha = 40a02b
$teal = rgb(179299)
$tealAlpha = 179299
$sky = rgb(04a5e5)
$skyAlpha = 04a5e5
$sapphire = rgb(209fb5)
$sapphireAlpha = 209fb5
$blue = rgb(1e66f5)
$blueAlpha = 1e66f5
$lavender = rgb(7287fd)
$lavenderAlpha = 7287fd
$text = rgb(4c4f69)
$textAlpha = 4c4f69
$subtext1 = rgb(5c5f77)
$subtext1Alpha = 5c5f77
$subtext0 = rgb(6c6f85)
$subtext0Alpha = 6c6f85
$overlay2 = rgb(7c7f93)
$overlay2Alpha = 7c7f93
$overlay1 = rgb(8c8fa1)
$overlay1Alpha = 8c8fa1
$overlay0 = rgb(9ca0b0)
$overlay0Alpha = 9ca0b0
$surface2 = rgb(acb0be)
$surface2Alpha = acb0be
$surface1 = rgb(bcc0cc)
$surface1Alpha = bcc0cc
$surface0 = rgb(ccd0da)
$surface0Alpha = ccd0da
$base = rgb(eff1f5)
$baseAlpha = eff1f5
$mantle = rgb(e6e9ef)
$mantleAlpha = e6e9ef
$crust = rgb(dce0e8)
$crustAlpha = dce0e8

View File

@@ -1,78 +0,0 @@
$rosewater = rgb(f4dbd6)
$rosewaterAlpha = f4dbd6
$flamingo = rgb(f0c6c6)
$flamingoAlpha = f0c6c6
$pink = rgb(f5bde6)
$pinkAlpha = f5bde6
$mauve = rgb(c6a0f6)
$mauveAlpha = c6a0f6
$red = rgb(ed8796)
$redAlpha = ed8796
$maroon = rgb(ee99a0)
$maroonAlpha = ee99a0
$peach = rgb(f5a97f)
$peachAlpha = f5a97f
$yellow = rgb(eed49f)
$yellowAlpha = eed49f
$green = rgb(a6da95)
$greenAlpha = a6da95
$teal = rgb(8bd5ca)
$tealAlpha = 8bd5ca
$sky = rgb(91d7e3)
$skyAlpha = 91d7e3
$sapphire = rgb(7dc4e4)
$sapphireAlpha = 7dc4e4
$blue = rgb(8aadf4)
$blueAlpha = 8aadf4
$lavender = rgb(b7bdf8)
$lavenderAlpha = b7bdf8
$text = rgb(cad3f5)
$textAlpha = cad3f5
$subtext1 = rgb(b8c0e0)
$subtext1Alpha = b8c0e0
$subtext0 = rgb(a5adcb)
$subtext0Alpha = a5adcb
$overlay2 = rgb(939ab7)
$overlay2Alpha = 939ab7
$overlay1 = rgb(8087a2)
$overlay1Alpha = 8087a2
$overlay0 = rgb(6e738d)
$overlay0Alpha = 6e738d
$surface2 = rgb(5b6078)
$surface2Alpha = 5b6078
$surface1 = rgb(494d64)
$surface1Alpha = 494d64
$surface0 = rgb(363a4f)
$surface0Alpha = 363a4f
$base = rgb(24273a)
$baseAlpha = 24273a
$mantle = rgb(1e2030)
$mantleAlpha = 1e2030
$crust = rgb(181926)
$crustAlpha = 181926

View File

@@ -1,77 +0,0 @@
$rosewater = rgb(f5e0dc)
$rosewaterAlpha = f5e0dc
$flamingo = rgb(f2cdcd)
$flamingoAlpha = f2cdcd
$pink = rgb(f5c2e7)
$pinkAlpha = f5c2e7
$mauve = rgb(cba6f7)
$mauveAlpha = cba6f7
$red = rgb(f38ba8)
$redAlpha = f38ba8
$maroon = rgb(eba0ac)
$maroonAlpha = eba0ac
$peach = rgb(fab387)
$peachAlpha = fab387
$yellow = rgb(f9e2af)
$yellowAlpha = f9e2af
$green = rgb(a6e3a1)
$greenAlpha = a6e3a1
$teal = rgb(94e2d5)
$tealAlpha = 94e2d5
$sky = rgb(89dceb)
$skyAlpha = 89dceb
$sapphire = rgb(74c7ec)
$sapphireAlpha = 74c7ec
$blue = rgb(89b4fa)
$blueAlpha = 89b4fa
$lavender = rgb(b4befe)
$lavenderAlpha = b4befe
$text = rgb(cdd6f4)
$textAlpha = cdd6f4
$subtext1 = rgb(bac2de)
$subtext1Alpha = bac2de
$subtext0 = rgb(a6adc8)
$subtext0Alpha = a6adc8
$overlay2 = rgb(9399b2)
$overlay2Alpha = 9399b2
$overlay1 = rgb(7f849c)
$overlay1Alpha = 7f849c
$overlay0 = rgb(6c7086)
$overlay0Alpha = 6c7086
$surface2 = rgb(585b70)
$surface2Alpha = 585b70
$surface1 = rgb(45475a)
$surface1Alpha = 45475a
$surface0 = rgb(313244)
$surface0Alpha = 313244
$base = rgb(1e1e2e)
$baseAlpha = 1e1e2e
$mantle = rgb(181825)
$mantleAlpha = 181825
$crust = rgb(11111b)
$crustAlpha = 11111b

View File

@@ -12,8 +12,15 @@
path: "{{ ansible_user_dir }}/.config/hypr" path: "{{ ansible_user_dir }}/.config/hypr"
state: directory state: directory
- name: "[Hyprland] Create screenshot folder"
ansible.builtin.file:
mode: 0755
path: "{{ ansible_user_dir }}/Pictures/Screenshots"
state: directory
- name: "[Hyprland] Configure" - name: "[Hyprland] Configure"
ansible.builtin.copy: ansible.builtin.copy:
mode: 0755
src: "./" src: "./"
dest: "{{ ansible_user_dir }}/.config/hypr" dest: "{{ ansible_user_dir }}/.config/hypr"

View File

@@ -5,7 +5,6 @@ exec-once = ags
{% if system == "desktop_full" %} {% if system == "desktop_full" %}
exec-once = armcord exec-once = armcord
exec-once = youtube-music exec-once = youtube-music
exec-once = element-desktop
exec-once = nextcloud exec-once = nextcloud
{% endif %} {% endif %}
exec-once = nm-applet exec-once = nm-applet

24
roles/nvim/files/init.lua Executable file → Normal file
View File

@@ -19,7 +19,7 @@ vim.opt.rtp:prepend(lazypath)
-- Add Plugins -- Add Plugins
require("lazy").setup({ require("lazy").setup({
-- Stats -- Stats
{ 'wakatime/vim-wakatime', lazy = false }, { 'wakatime/vim-wakatime', lazy = false },
-- Theme -- Theme
{ {
@@ -27,20 +27,24 @@ require("lazy").setup({
name = "catppuccin.vim", name = "catppuccin.vim",
priority = 1000, priority = 1000,
config = function() config = function()
vim.cmd.colorscheme("catppuccin") vim.cmd.colorscheme("catppuccin-macchiato")
end, end,
}, },
-- Syntax highlighting support -- Syntax highlighting support
"elkowar/yuck.vim", -- "fladson/vim-kitty",
"fladson/vim-kitty",
-- Use "gc" to comment visual regions/lines
{ "numToStr/Comment.nvim", opts = {} },
-- Detect tabstop and shiftwidth automatically -- Comment visual regions/lines
-- "tpope/vim-sleuth", "numToStr/Comment.nvim",
-- Add indentation guides even on blank lines ??? -- Autoclose brackets
{ "m4xshen/autoclose.nvim", opts = {} },
{ "windwp/nvim-ts-autotag", opts = {}, lazy = false }, -- Doesn't work?
-- Surround selection
"tpope/vim-surround",
-- Add indentation guides
{ {
"lukas-reineke/indent-blankline.nvim", "lukas-reineke/indent-blankline.nvim",
main = "ibl", main = "ibl",
@@ -60,7 +64,7 @@ require("lazy").setup({
}, },
}, },
-- LSP (Configuration under "lspconfig") -- LSP
{ {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
dependencies = { dependencies = {

View File

@@ -22,13 +22,16 @@
name: name:
- networkmanager - networkmanager
- networkmanager-openvpn - networkmanager-openvpn
- network-manager-applet - wireguard-tools
- inotify-tools - inotify-tools
- libqalculate
- cifs-utils - cifs-utils
- reflector - reflector
- os-prober
- ntfs-3g - ntfs-3g
- openssh - openssh
- upower - upower
- expac
- unzip - unzip
- less - less
- curl - curl
@@ -38,6 +41,8 @@
- tar - tar
- eza - eza
- bat - bat
- fzf
- fd
- jq - jq
state: present state: present
tags: tags:
@@ -50,6 +55,7 @@
- maven - maven
- rustup - rustup
- npm - npm
- go
state: present state: present
tags: tags:
- programming_pkgs - programming_pkgs
@@ -78,15 +84,18 @@
- pipewire-jack - pipewire-jack
- pipewire-pulse - pipewire-pulse
- gst-plugin-pipewire - gst-plugin-pipewire
# Network
- network-manager-applet
# Bluetooth # Bluetooth
- bluez - bluez
- bluez-utils - bluez-utils
- blueman - blueman
- gnome-bluetooth-3.0
# Printing # Printing
- cups - cups
- cups-pdf - cups-pdf
# Theming # Theming
#- qt5ct - qt5ct
# Icon Themes # Icon Themes
- papirus-icon-theme - papirus-icon-theme
# Cursor Themes # Cursor Themes
@@ -104,6 +113,7 @@
- mediainfo - mediainfo
- hyprpicker - hyprpicker
- swww - swww
- sddm
- swayidle - swayidle
- grimblast-git - grimblast-git
- cliphist - cliphist
@@ -121,6 +131,8 @@
name: name:
- libreoffice-fresh - libreoffice-fresh
- nextcloud-client - nextcloud-client
- appimagelauncher
- feishin-appimage
- element-desktop - element-desktop
- youtube-music - youtube-music
- vscodium-bin - vscodium-bin
@@ -132,6 +144,8 @@
- yt-dlp - yt-dlp
- nvtop - nvtop
- nemo - nemo
- nemo-fileroller
- gvfs-smb
- mpv - mpv
# Device configuration # Device configuration
#- openrazer-daemon #- openrazer-daemon