Compare commits

...

10 commits

57 changed files with 1305 additions and 1329 deletions

15
.gitignore vendored
View file

@ -1,3 +1,18 @@
okularrc
user-dirs.dirs
.gsd-keyboard.settings-ported
arkrc
evolution/
fontconfig/
gnome-initial-setup-done
kcharselectrc
user-dirs.locale
GalaxyBudsClient/
baloofilerc
Zeal/
environment.d/
gtk-3.0/bookmarks
Kvantum/**/
chromium/ chromium/
Electron/ Electron/
GIMP/ GIMP/

View file

@ -1,3 +1,3 @@
Kvantum, qt5ct and my environment are for theming QT apps the same way I do with GTK apps with nwg-look Kvantum, qt5ct and my environment are for theming QT apps the same way I do with GTK apps with lxappearance (i have to run it with the X11 backend)
I use lisgd and some scripts to make my own tablet mode since my laptop's switch is not yet in the kernel I use some scripts to make my own tablet mode since my laptop's switch is not yet in the kernel

View file

@ -1 +1,3 @@
find credits for wofi change tray icons
decide on layers for eww and waybar
double tap to right click

View file

@ -1,4 +0,0 @@
--ozone-platform-hint=auto
--enable-webrtc-pipewire-capturer
--enable-features=UseOzonePlatform
--ozone-platform=wayland

View file

@ -1,7 +1,10 @@
MenuBar=Disabled
[$Version] [$Version]
update_info=dolphin_detailsmodesettings.upd:rename-leading-padding update_info=dolphin_detailsmodesettings.upd:rename-leading-padding
[General] [General]
ShowFullPath=true
Version=202 Version=202
ViewPropsTimestamp=2023,5,12,19,59,9.33 ViewPropsTimestamp=2023,5,12,19,59,9.33
@ -20,3 +23,9 @@ Places Icons Static Size=22
[MainWindow] [MainWindow]
MenuBar=Disabled MenuBar=Disabled
ToolBarsMovable=Disabled ToolBarsMovable=Disabled
[PreviewSettings]
Plugins=,ffmpegthumbs
[ViewPropertiesDialog]
1920x1200 screen: Window-Maximized=true

View file

@ -1,11 +0,0 @@
#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
EDITOR=nano
#GTK_THEME=Adwaita:dark
#GTK_THEME=Lavanda-Dark
QT_QPA_PLATFORMTHEME=qt5ct
QT_STYLE_OVERRIDE=kvantum
QT_FONT_DPI=125

View file

@ -115,7 +115,7 @@
} }
} }
.iconbox .icon { .iconbox .icon {
font-family: Iosevka Nerd Font; font-family: MesloLGS NF;
padding: 7px 14px 7px 14px; padding: 7px 14px 7px 14px;
font-size: 20px; font-size: 20px;
min-width: 20px; min-width: 20px;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

View file

@ -1,305 +0,0 @@
.dashboardbox {
background-color: $black;
color: $fg;
}
.headerbox {
padding: 8px 10px 6px;
.userbox {
.pfp {
background-position: center;
background-repeat: no-repeat;
background-size: cover;
min-height: 32px;
min-width: 32px;
border-radius: 50px;
}
.pcname {
font-family: Product Sans;
.sep {
color: $blue;
}
}
}
.searchbox {
.searchinput {
background-color: $bg;
padding: 5px 0px;
border-radius: 50px;
transition: all ease .2s;
&:hover { background-color: $bgSecondary; }
&:active { background-color: $contrastbg; }
.searchinput-content {
padding: 0px 200px 0px 10px;
font-family: Product Sans;
.icon {
font-family: Iosevka Nerd Font;
color: $blue;
margin-right: 12px;
}
.placeholder {
color: $lightblack;
}
}
}
}
}
.content-container {
.contentbox {
background-color: $bg;
border-top-left-radius: 12px;
border-top-right-radius: 12px;
padding: 25px;
.firstcol {
.usercard {
background-color: $black;
border-radius: 12px;
padding: 10px;
.user-content {
font-family: Product Sans;
.pfp {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
min-height: 64px;
min-width: 64px;
border-radius: 50px;
}
.username {
font-weight: bolder;
font-size: 20px;
}
.uptime {
font-size: 12px;
}
}
.user-powerbuttons {
button {
background-color: $dimblack;
border-radius: 7px;
padding: 2px 10px 2px 7px;
font-family: Iosevka Nerd Font;
font-size: 16px;
transition: all ease .2s;
&:hover { background-color: $lightblack; }
&:active { background-color: $dimblack; }
}
.poweroff { color: $red; }
.reboot { color: $magenta; }
}
}
.controlscard {
background-color: $black;
padding: 10px;
border-radius: 12px;
.control-container {
.control-item {
transition: all ease .2s;
border-radius: 50px;
background-color: $dimblack;
color: $blue;
&:hover { background-color: $lightblack; }
&:active { background-color: $dimblack; }
&.active {
background: $blue;
color: $bg;
}
.control-icon {
font-family: Iosevka Nerd Font;
font-size: 14px;
}
// solving nerd fonts alignment issues
&.network { padding: 9px 19px 9px 10px; }
&.network-disconnected { padding: 9px 18px 9px 11px; }
&.airplane { padding: 9px 17px 9px 12px; }
&.volume { padding: 9px 18px 9px 11px; }
&.volume-muted { padding: 9px 17px 9px 12px; }
&.mic { padding: 9px 16px 9px 13px; }
&.mic-on { padding: 9px 15px 9px 14px; }
&.redshift { padding: 9px 18px 9px 11px; }
&.redshift-on { padding: 9px 17px 9px 12px; }
&.bluetooth { padding: 9px 16px 9px 13px; }
&.bluetooth-on { padding: 9px 15px 9px 14px; }
&.fullscreensht { padding: 9px 17px 9px 12px; }
&.areascreensht { padding: 9px 17px 9px 12px; }
}
}
}
.slidersbox {
.vol-slider {
.vol-label {
font-size: 16px;
font-family: Iosevka Nerd Font;
color: $bg;
margin-left: 10px;
}
& scale trough {
all: unset;
border-radius: 10px;
background-color: $black;
border: none;
min-height: 25px;
min-width: 245px;
margin-left: 3px;
& highlight {
all: unset;
background: $blue;
color: #000000;
border-radius: 10px;
}
}
}
.br-slider {
.br-label {
font-size: 16px;
font-family: Iosevka Nerd Font;
color: $bg;
margin-left: 10px;
}
& scale trough {
all: unset;
border-radius: 100px;
background-color: $black;
border: none;
min-height: 25px;
min-width: 245px;
margin-left: 3px;
& highlight {
all: unset;
background: $blue;
color: #000000;
border-radius: 10px;
}
}
}
.mic-slider {
.mic-label {
font-size: 16px;
font-family: Iosevka Nerd Font;
color: $bg;
margin-left: 10px;
}
& scale trough {
all: unset;
border-radius: 100px;
background-color: $black;
border: none;
min-height: 25px;
min-width: 245px;
margin-left: 3px;
& highlight {
all: unset;
background: $blue;
color: #000000;
border-radius: 10px;
}
}
}
}
}
.lastcol {
.musicbox {
background-color: $black;
border-radius: 12px;
.firstrow {
padding: 10px;
.picbox {
background-size: cover;
background-repeat: no-repeat;
background-position: center;
min-width: 64px;
min-height: 64px;
border-radius: 10px;
}
.info {
font-family: Product Sans;
.music-title {
font-weight: bolder;
}
.music-artist {
color: $lightblack;
}
}
}
.lastrow {
padding: 10px 0px;
background-color: $dimblack;
border-bottom-right-radius: 12px;
border-bottom-left-radius: 12px;
.controls-container {
font-size: 16px;
font-family: Iosevka Nerd Font;
button {
transition: all ease .2s;
border-radius: 7px;
&:hover { background-color: $lightblack; }
&:active { background-color: transparent; }
&.previousbutton, &.nextbutton { padding: 1px 11px 1px 10px; }
&.pausebutton {
font-size: 20px;
padding: 1px 12px 1px 9px;
&.playing {
padding: 1px 14px 1px 7px;
}
}
}
}
}
}
.chart-container {
background-color: $black;
border-radius: 12px;
.header {
padding: 5px 10px;
font-family: Product Sans;
font-size: 14px;
color: $lightblack;
}
.body .container {
padding: 10px;
.chart-container {
background-color: $lightblack;
border-radius: 3em;
.chart {
color: $blue;
label {
padding: 1em;
font-size: 23px;
}
}
.chart-icon {
background-color: $black;
border-radius: 3em;
padding: 12px 5px;
margin: 0.5em;
font-family: Iosevka Nerd Font;
// nf alignment issues (again).
&.cpu { padding: 12px 9px 12px 4px; }
&.ram { padding: 12px 8px 12px 5px; }
&.temp { padding: 13px 9px 12px 3px; }
&.disk { padding: 13px 8px 12px 4px; }
}
}
}
}
}
}
.footer {
background-color: $bg;
padding: 10px 0px;
font-family: Product Sans;
.protipbox {
.icon {
font-family: Iosevka Nerd Font;
color: $yellow;
}
}
}
}

View file

@ -1,385 +0,0 @@
(defwidget header []
(box :class "headerbox"
:orientation "h"
:space-evenly false
(box :class "userbox"
:orientation "h"
:space-evenly false
:halign "start"
:valign "center"
:spacing 10
(box :class "pfp"
:style "background-image: url('${pfp}');")
(box :class "pcname"
:orientation "h"
:space-evenly false
(label :text "${rawuser}" :class "username")
(label :text "@" :class "sep")
(label :text "${hostname}" :class "hostname")
)
)
(box :class "searchbox"
:orientation "h"
:space-evenly true
:halign "end"
:hexpand true
:valign "center"
(button :class "searchinput"
:onclick "~/.config/eww/scripts/exec rofi -show drun"
(box :class "searchinput-content"
:orientation "h"
:space-evenly false
:hexpand true
:halign "start"
:valign "center"
:vexpand true
(label :text "" :class "icon")
(label :text "Search Applications" :class "placeholder")
)
)
)
)
)
(defwidget usercard []
(box :class "usercard"
:orientation "v"
:space-evenly false
(box :class "user-content"
:orientation "h"
:space-evenly false
:vexpand true
:spacing 15
(box :class "pfp"
:style "background-image: url('${pfp}');")
(box :class "info"
:hexpand true
:vexpand true
:valign "center"
:halign "start"
:orientation "v"
:space-evenly false
:spacing 3
(label :text "${username}" :class "username" :halign "start")
(label :text "${uptime}" :class "uptime" :halign "start")
)
)
(box :class "user-powerbuttons"
:orientation "h"
:space-evenly false
:hexpand true
:halign "end"
:valign "end"
:spacing 5
(button :class "reboot"
:onclick "doas poweroff"
"勒"
)
(button :class "poweroff"
:onclick "doas poweroff"
"襤"
)
)
)
)
(defwidget control [name icon tooltip onclick active]
(box :class "control-container"
:orientation "h"
:hexpand true
:valign "center"
:space-evenly true
(button :class "control-item ${name} ${active ? 'active' : ''}"
:orientation "h"
:space-evenly true
:halign "center"
:hexpand false
:valign "center"
:onclick "${onclick}"
:tooltip "${tooltip}"
(label :text "${icon}" :class "control-icon")
)
)
)
(defwidget quicksettings []
(box :class "controlscard"
:orientation "v"
:space-evenly false
:spacing 20
(box :class "firstrow"
:orientation "h"
:space-evenly true
(control :name "network${network_status == 'Connected' ? '' : '-disconnected'}"
:icon "${network_icon}"
:tooltip "Toggle network"
:active "${network_status == 'Connected' ? 'true' : 'false'}"
:onclick "~/.config/eww/scripts/network.sh toggle")
(control :name "airplane"
:icon "${network_radio == 'on' ? '' : ''}"
:tooltip "Airplane Mode"
:active "${network_radio == 'on' ? false : true}"
:onclick "~/.config/eww/scripts/network.sh toggle-radio")
(control :name "volume${is_muted == 'yes' ? '-muted' : ''}"
:icon "${volume_icon}"
:tooltip "Toggle muted"
:active "${is_muted == 'yes' ? false : true}"
:onclick "~/.config/eww/scripts/volume.sh toggle-muted")
(control :name "mic${mic_status == 'yes' ? '-on' : ''}"
:icon "${mic_status == 'yes' ? '' : ''}"
:tooltip "Toggle microphone"
:active "${mic_status == 'yes' ? true : false}"
:onclick "~/.config/eww/scripts/mic toggle")
)
(box :class "lastrow"
:orientation "h"
:space-evenly true
(control :name "redshift${redshift_state == 'on' ? '-on' : ''}"
:icon "${redshift_state == 'on' ? '' : ''}"
:tooltip "Toggle night light"
:active "${redshift_state == 'on' ? true : false}"
:onclick "~/.config/eww/scripts/redshift toggle")
(control :name "bluetooth${bluetooth_state == 'on' ? '-on' : ''}"
:icon "${bluetooth_state == 'on' ? '' : ''}"
:tooltip "Toggle bluetooth"
:active "${bluetooth_state == 'on' ? true : false}"
:onclick "~/.config/eww/scripts/bluetooth toggle")
(control :name "fullscreensht"
:icon ""
:tooltip "Take a full screenshot"
:active false
:onclick "~/.config/eww/scripts/screensht full")
(control :name "areascreensht"
:icon ""
:tooltip "Take a screenshot of a selected area"
:active false
:onclick "~/.config/eww/scripts/screensht area")
)
)
)
(defwidget sliders []
(box :class "slidersbox"
:orientation "v"
:space-evenly false
:spacing 25
(box :orientation "h"
:space-evenly "false"
:class "vol-slider"
(overlay
(scale :value volume_value
:onchange "~/.config/eww/scripts/volume.sh set {}"
:min 0
:max 101)
(label :class "vol-label"
:text "${volume_icon} "
:valign "top"
:halign "start")
)
)
(box :orientation "h"
:space-evenly "false"
:class "br-slider"
(overlay
(scale :value br
:onchange "~/.config/eww/scripts/brightness.sh set {}"
:min 0
:max 101)
(label :class "br-label"
:text "${br_icon} "
:valign "top"
:halign "start")
)
)
(box :orientation "h"
:space-evenly "false"
:class "mic-slider"
(overlay
(scale :value mic
:onchange "~/.config/eww/scripts/mic set {}"
:min 0
:max 101)
(label :class "mic-label"
:text "${mic_status == 'yes' ? '' : ''} "
:valign "top"
:halign "start")
)
)
)
)
(defwidget music []
(box :class "musicbox"
:orientation "v"
:space-evenly false
(box :class "firstrow"
:orientation "h"
:space-evenly false
:vexpand true
(box :class "picbox"
:orientation "v"
:space-evenly true
:style "background-image: url('${music_url}');"
music_pic
)
(box :class "info"
:space-evenly false
:hexpand true
:valign "center"
:orientation "v"
:spacing 5
(label :text "${music_title}" :class "music-title")
(label :text "${music_artist}" :class "music-artist")
)
)
(box :class "lastrow"
:orientation "h"
:space-evenly true
(box :class "controls-container"
:orientation "h"
:space-evenly true
(button :onclick "~/.config/eww/scripts/music/control.sh prev"
:class "previousbutton"
:halign "center"
"玲"
)
(button :onclick "~/.config/eww/scripts/music/control.sh play-pause"
:class "pausebutton ${music_status == 'Playing' ? 'playing' : ''}"
:halign "center"
"${music_status == 'Playing' ? '' : ''}"
)
(button :onclick "~/.config/eww/scripts/music/control.sh next"
:class "nextbutton"
:halign "center"
"怜"
)
)
)
)
)
(defwidget chart [label value icon icon-class]
(box :class "chart-container"
:orientation "v"
:space-evenly false
(box :class "header"
:space-evenly true
:orientation "v"
(label :text "${label}" :class "label" :halign "start")
)
(box :class "body"
:space-evenly true
:orientation "h"
(box :class "container"
:space-evenly true
:halign "center"
:hexpand true
:orientation "h"
(box :class "chart-container" :space-evenly false
(overlay
(circular-progress :value value
:thickness 50
:class "chart"
:start-at 75
(label :text "L")
)
(label :text "${icon}" :class "chart-icon ${icon-class}")
)
)
)
)
)
)
(defwidget charts []
(box :class "chartsbox"
:orientation "v"
:space-evenly false
:spacing 25
(box :class "firstrow"
:orientation "h"
:space-evenly true
:spacing 25
(chart :label "Cpu" :icon "" :icon-class "cpu" :value cpu)
(chart :label "Ram" :icon "" :icon-class "ram" :value ram)
)
(box :class "lastrow"
:orientation "h"
:space-evenly true
:spacing 25
(chart :label "Temp" :icon "" :icon-class "temp" :value temp)
(chart :label "Disk" :icon "" :icon-class "disk" :value disk)
)
)
)
(defwidget footer []
(box :class "footer"
:space-evenly true
:orientation "h"
:valign "end"
(box :class "protipbox"
:orientation "h"
:space-evenly false
:halign "center"
:spacing 15
(label :text "ﯦ " :class "icon")
(label :text "Press the menu icon again to close this popup." :class "placeholder")
)
)
)
(defwidget content []
(box :class "content-container"
:orientation "v"
:space-evenly false
(box :class "contentbox"
:orientation "h"
:space-evenly true
:spacing 25
:vexpand true
(box :class "firstcol"
:orientation "v"
:space-evenly false
:spacing 25
(usercard)
(quicksettings)
(sliders)
)
(box :class "lastcol"
:orientation "v"
:space-evenly false
:spacing 25
(music)
(charts)
)
)
(footer)
)
)
(defwidget dashboard []
(box :class "dashboardbox"
:orientation "v"
:space-evenly false
(header)
(content)
)
)
(defwindow dashboard
:monitor 0
:geometry (geometry :x "6px"
:y "-44px"
:width "10px" ; automatically adjusted by eww
:height "10px" ; automatically adjusted by eww
:anchor "bottom center")
:type "dock"
:wm-ignore false
(dashboard))

View file

@ -6,5 +6,4 @@
@import "date/date.scss"; @import "date/date.scss";
@import "actions/actions.scss"; @import "actions/actions.scss";
@import "powermenu/powermenu.scss"; @import "powermenu/powermenu.scss";
@import "dashboard/dashboard.scss";
@import "traybuttons/traybuttons.scss"; @import "traybuttons/traybuttons.scss";

View file

@ -2,6 +2,5 @@
(include "date/date.yuck") (include "date/date.yuck")
(include "actions/actions.yuck") (include "actions/actions.yuck")
(include "powermenu/powermenu.yuck") (include "powermenu/powermenu.yuck")
(include "dashboard/dashboard.yuck")
(include "closer/closer.yuck") (include "closer/closer.yuck")
(include "traybuttons/traybuttons.yuck") (include "traybuttons/traybuttons.yuck")

View file

@ -2,7 +2,8 @@
background-color: $bg; background-color: $bg;
color: $fg; color: $fg;
padding: 20px; padding: 20px;
font-family: Iosevka Nerd Font; font-family: MesloLGS NF;
/*font-family: Iosevka Nerd Font;*/
font-size: 70px; font-size: 70px;
border-radius: 30px; border-radius: 30px;
border: 5px solid $contrastbg; border: 5px solid $contrastbg;

View file

@ -12,7 +12,7 @@
(label :text "勒" :class "content") (label :text "勒" :class "content")
) )
(button :class "logout" (button :class "logout"
:onclick "hyprctl dispatch exit && sleep 2 && sudo chvt 2" :onclick "hyprctl dispatch exit"
(label :text "" :class "content") (label :text "" :class "content")
) )
) )

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# @requires: brightnessctl # @requires: brightnessctl
@ -46,5 +46,5 @@ if [[ $1 == "icon" ]]; then
fi fi
if [[ $1 == "set" ]]; then if [[ $1 == "set" ]]; then
light -S $2 brightnessctl set $2%
fi fi

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Store the output of the command in an array, keeping only lines with '*' # Store the output of the command in an array, keeping only lines with '*'
readarray -t array <<< "$(eww windows | grep '^\*')" readarray -t array <<< "$(eww windows | grep '^\*')"

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
WINDOW="$1" WINDOW="$1"
( (

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# thanks to kizu # thanks to kizu

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
symbol() { symbol() {
[ $(cat /sys/class/net/w*/operstate) = down ] && echo&& exit [ $(cat /sys/class/net/w*/operstate) = down ] && echo&& exit

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
state () { state () {
if [[ $(hyprctl layers | grep swaync-control-center) == "" ]]; then if [[ $(hyprctl layers | grep swaync-control-center) == "" ]]; then

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
WINDOW="$1" WINDOW="$1"

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# @requires: pactl # @requires: pactl

View file

@ -7,7 +7,7 @@
.tablet-toggle { .tablet-toggle {
font-size: 26px; font-size: 26px;
padding: 2px 10px 2px 16px; padding: 2px 13px 2px 16px;
} }
.toggle-off { .toggle-off {
@ -16,7 +16,6 @@
color: #CBA6F7; color: #CBA6F7;
border-radius: 80px; border-radius: 80px;
border: 3px solid $contrastbg; border: 3px solid $contrastbg;
/* Add any other styles for the "off" state */
} }
.toggle-off:hover { .toggle-off:hover {
@ -30,5 +29,4 @@
color: #CBA6F7; color: #CBA6F7;
border-radius: 80px; border-radius: 80px;
border: 3px solid #CBA6F7; border: 3px solid #CBA6F7;
/* Add any other styles for the "on" state */
} }

View file

@ -17,8 +17,8 @@
:monitor 0 :monitor 0
:stacking "overlay" :stacking "overlay"
:exclusive "ignore" :exclusive "ignore"
:geometry (geometry :x "78px" :geometry (geometry :x "66px"
:y "8px" :y "9px"
:width "0px" :width "0px"
:height "0px" :height "0px"
:anchor "top left" :anchor "top left"
@ -45,7 +45,7 @@
:monitor 0 :monitor 0
:stacking "overlay" :stacking "overlay"
:exclusive "ignore" :exclusive "ignore"
:geometry (geometry :x "60px" :geometry (geometry :x "50px"
:y "10px" :y "10px"
:width "0px" :width "0px"
:height "0px" :height "0px"

View file

@ -1,6 +1,6 @@
[Settings] [Settings]
gtk-theme-name=Lavanda-Dark gtk-theme-name=Lavanda-Dark
gtk-icon-theme-name=Flatery-Dark gtk-icon-theme-name=Adwaita
gtk-font-name=Cantarell 11 gtk-font-name=Cantarell 11
gtk-cursor-theme-name=Adwaita gtk-cursor-theme-name=Adwaita
gtk-cursor-theme-size=24 gtk-cursor-theme-size=24
@ -12,6 +12,6 @@ gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=0 gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1 gtk-xft-antialias=1
gtk-xft-hinting=1 gtk-xft-hinting=1
gtk-xft-hintstyle=hintslight gtk-xft-hintstyle=hintmedium
gtk-xft-rgba=rgb gtk-xft-rgba=rgb
gtk-application-prefer-dark-theme=0 gtk-application-prefer-dark-theme=0

View file

@ -1,2 +1,4 @@
[main] [main]
modules=powerbar-module.so;playerctl-module.so;userinfo-module.so modules=/nix/var/nix/profiles/system/sw/lib/gtklock/powerbar-module.so;/nix/var/nix/profiles/system/sw/lib/gtklock/playerctl-module.so
#;/nix/var/nix/profiles/system/sw/lib/gtklock/userinfo-module.so

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
grim /tmp/image.png grim /tmp/image.png
convert /tmp/image.png -channel RGBA -blur 0x8 /tmp/image.png convert /tmp/image.png -channel RGBA -blur 0x8 /tmp/image.png

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
$HOME/.config/hypr/scripts/tablet/laptop-mode.sh & $HOME/.config/hypr/scripts/tablet/laptop-mode.sh &
$HOME/.config/gtklock/scripts/blur.sh $HOME/.config/gtklock/scripts/blur.sh
gtklock gtklock

View file

@ -1,222 +0,0 @@
# Plugins
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=eDP-1,1920x1200@60,0x0,1
$menu = "$HOME/.config/rofi/launcher.sh"
$scripts = "$HOME/.config/hypr/scripts"
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
exec-once = bash -c "sleep 3; nm-applet"
exec-once = bash -c "sleep 4; blueman-applet"
exec-once = bash -c "sleep 5; nextcloud --background"
exec-once = bash -c "sleep 6; /opt/tutanota-desktop/tutanota-desktop -a"
exec-once = bash -c "sleep 7; galaxybudsclient /StartMinimized"
#exec-once = $HOME/.local/share/hyprload/hyprload.sh
exec-once = eww daemon
exec-once = eww open tablet-toggle
exec-once = eww open notif-panel
#exec-once = sudo input-emulator start touch --x-max 1920 --y-max 1200 --slots 4
#exec = $HOME/.config/lisgd/config
exec-once = libinput-gestures-setup start
exec-once = dbus-update-activation-environment --all
exec-once = gnome-keyring-daemon --start --components=secrets
exec-once = $menu
exec-once = hyprpaper
exec-once = $scripts/lose-focus.sh
exec-once = waybar
exec-once = swaync
exec-once = /usr/lib/polkit-kde-authentication-agent-1
exec-once = wl-paste --watch cliphist store
# OSD window
exec-once = swayosd
# Change HandleLidSwitch to lock in logind.conf
exec-once = swayidle -w lock $HOME/.config/gtklock/scripts/lock.sh
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
# Some default env vars.
env = XCURSOR_SIZE,24
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
kb_layout = ca
kb_variant = multix
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
touchpad {
natural_scroll = no
}
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}
general {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
gaps_in = 5
gaps_out = 5
border_size = 2
col.active_border = rgb(411C6C)
#col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)
layout = dwindle
}
decoration {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
rounding = 20
blur = yes
blur_size = 3
blur_passes = 1
blur_new_optimizations = on
drop_shadow = yes
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(1a1a1aee)
}
animations {
enabled = yes
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
}
dwindle {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes # you probably want this
}
master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
new_is_master = true
}
#gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
#workspace_swipe = yes
#workspace_swipe_fingers = 3
#workspace_swipe_cancel_ratio = 0.15
#workspace_swipe_forever = yes
#}
# Example windowrule v1
# windowrule = float, ^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
windowrule = float,^(org.kde.polkit-kde-authentication-agent-1)$
windowrule = float,^(org.gnome.Calculator)$
windowrule = float,^(GalaxyBudsClient)$
windowrule = size 1231 950,title:^(Open Folder)$
windowrule = float,title:^(Open Folder)$
windowrule = size 1231 950,title:^(Open File)$
windowrule = float,title:^(Open File)$
windowrule = pin,^(nm-tray)$
#windowrule = move cursor 0 -35,^(nm-tray)$
windowrule = float,^(blueman-manager)$
windowrule = move cursor 0 0,^(blueman-manager)$
windowrule = size 400 581,^(blueman-manager)$
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
bind = $mainMod, V, exec, cliphist list | ~/.config/rofi/dmenu.sh | cliphist decode | wl-copy
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Q, exec, alacritty
bind = $mainMod, C, killactive,
bind = $mainMod, L, exec, $HOME/.config/gtklock/scripts/lock.sh
bind = $mainMod SHIFT, E, exec, eww open closer && $HOME/.config/eww/scripts/open.sh powermenu
bind = $mainMod SHIFT, SPACE, togglefloating,
bind = $mainMod, D, exec, $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
# Switch workspaces with mainMod + [0-9]
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
# Move active window to a workspace with mainMod + SHIFT + [0-9]
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
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Take a screenshot
bind =, Print, exec, bash -c 'grim -g "$(slurp)" - | swappy -f -'
# Volume control
binde =, XF86AudioRaiseVolume, exec, swayosd --output-volume raise
binde =, XF86AudioLowerVolume, exec, swayosd --output-volume lower
bind =, XF86AudioMute, exec, swayosd --output-volume mute-toggle
bind =, XF86AudioMicMute, exec, pactl set-source-mute @DEFAULT_SOURCE@ toggle
#bind =, XF86AudioMicMute, exec, swayosd --input-volume mute-toggle
bindr = CAPS, Caps_Lock, exec, swayosd --caps-lock
# Brightness control
binde=, XF86MonBrightnessUp, exec, swayosd --brightness raise
binde=, XF86MonBrightnessDown, exec, swayosd --brightness lower

1
hypr/hyprland.conf Symbolic link
View file

@ -0,0 +1 @@
/nix/store/0rh5brib0wdiw91maz1903xkyxfx8lgv-home-manager-files/.config/hypr/hyprland.conf

233
hypr/main.conf Normal file
View file

@ -0,0 +1,233 @@
# Plugins
plugin {
touch_gestures {
# default sensitivity is probably too low on tablet screens,
# I recommend turning it up to 4.0
sensitivity = 20.0
}
}
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=eDP-1,1920x1200@60,0x0,1
$menu = "$HOME/.config/rofi/launcher.sh"
$scripts = "$HOME/.config/hypr/scripts"
exec-once = $HOME/.config/lisgd/config &
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
exec-once = bash -c "sleep 3; nm-applet"
exec-once = bash -c "sleep 4; blueman-applet"
exec-once = bash -c "sleep 5; nextcloud --background"
exec-once = bash -c "sleep 6; tutanota-desktop -a"
exec-once = bash -c "sleep 7; GalaxyBudsClient /StartMinimized"
exec-once = eww daemon
exec-once = eww open tablet-toggle
exec-once = eww open notif-panel
exec-once = gnome-keyring-daemon --start --components=secrets
exec-once = squeekboard
exec-once = $menu
exec-once = hyprpaper
exec-once = $scripts/lose-focus.sh
# after boot, there are 2 bars for some reason, so I kill them and rerun the command
exec-once = bash -c "killall -r -0 waybar && killall -r waybar; waybar"
exec-once = swaync
exec-once = wl-paste --watch cliphist store
# OSD window
exec-once = swayosd
# Change HandleLidSwitch to lock in logind.conf
exec-once = swayidle -w lock $HOME/.config/gtklock/scripts/lock.sh
# Some default env vars.
env = XCURSOR_SIZE,24
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
kb_layout = ca
kb_variant = multix
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
touchpad {
natural_scroll = no
}
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}
general {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
gaps_in = 5
gaps_out = 5
border_size = 2
col.active_border = rgb(411C6C)
#col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)
layout = dwindle
}
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
vfr = true
}
decoration {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
rounding = 20
blur = yes
blur_size = 3
blur_passes = 1
blur_new_optimizations = on
drop_shadow = false
#shadow_range = 4
#shadow_render_power = 3
#col.shadow = rgba(1a1a1aee)
}
animations {
enabled = yes
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
}
dwindle {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes # you probably want this
}
master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
new_is_master = true
}
gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = yes
workspace_swipe_fingers = 3
workspace_swipe_cancel_ratio = 0.15
#workspace_swipe_forever = yes
}
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
windowrule = float,^(org.kde.polkit-kde-authentication-agent-1)$
windowrule = size 741 288,^(org.kde.polkit-kde-authentication-agent-1)$
windowrule = center,^(org.kde.polkit-kde-authentication-agent-1)$
windowrule = size 741 288,^(org.kde.ksshaskpass)$
windowrule = move cursor -370 -144,^(org.kde.ksshaskpass)$
windowrule = float,^(org.gnome.Calculator)$
windowrule = float,^(GalaxyBudsClient)$
windowrule = size 1231 950,title:^(Open Folder)$
windowrule = float,title:^(Open Folder)$
windowrule = size 1231 950,title:^(Open File)$
windowrule = float,title:^(Open File)$
windowrule = pin,^(nm-tray)$
#windowrule = move cursor 0 -35,^(nm-tray)$
windowrule = float,^(.blueman-manager-wrapped)$
windowrule = move cursor 0 0,^(.blueman-manager-wrapped)$
windowrule = size 400 581,^(.blueman-manager-wrapped)$
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
bind = SUPER, F, fullscreen
bind = $mainMod, V, exec, cliphist list | ~/.config/rofi/dmenu.sh | cliphist decode | wl-copy
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Q, exec, alacritty
bind = $mainMod, C, killactive,
bind = $mainMod, L, exec, $HOME/.config/gtklock/scripts/lock.sh
bind = $mainMod SHIFT, E, exec, eww open closer && $HOME/.config/eww/scripts/open.sh powermenu
bindn =, Escape, exec, /home/matt/.config/eww/scripts/close-opened.sh
bind = $mainMod SHIFT, SPACE, togglefloating,
bind = $mainMod, D, exec, $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
# Switch workspaces with mainMod + [0-9]
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
# Move active window to a workspace with mainMod + SHIFT + [0-9]
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
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Take a screenshot
bind =, Print, exec, bash -c 'grim -g "$(slurp)" - | swappy -f -'
# Volume control
binde =, XF86AudioRaiseVolume, exec, swayosd --output-volume raise
binde =, XF86AudioLowerVolume, exec, swayosd --output-volume lower
bind =, XF86AudioMute, exec, swayosd --output-volume mute-toggle
bind =, XF86AudioMicMute, exec, swayosd --input-volume mute-toggle
bindr = CAPS, Caps_Lock, exec, swayosd --caps-lock
# Brightness control
binde =, XF86MonBrightnessUp, exec, swayosd --brightness raise
binde =, XF86MonBrightnessDown, exec, swayosd --brightness lower

51
hypr/scripts/autorotate.sh Executable file
View file

@ -0,0 +1,51 @@
#!/usr/bin/env bash
# This script was forked from https://gitlab.com/snippets/1793649 by Fishonadish
SCREEN="eDP-1"
WAYLANDINPUT=("wacom-hid-52eb-finger"
"wacom-hid-52eb-pen")
function rotate_ms {
if [[ $(hyprctl activewindow | grep Waydroid) == "" ]]; then
case $1 in
"normal")
rotate 0
;;
"right-up")
rotate 3
;;
"bottom-up")
rotate 2
;;
"left-up")
rotate 1
;;
esac
elif [[ $(hyprctl monitors | grep "transform: 0") == "" ]]; then
rotate 0
fi
}
function rotate {
TARGET_ORIENTATION=$1
echo "Rotating to" $TARGET_ORIENTATION
hyprctl keyword monitor $SCREEN,transform,$TARGET_ORIENTATION
for i in "${WAYLANDINPUT[@]}"
do
hyprctl keyword device:"$i":transform $TARGET_ORIENTATION
done
/home/matt/.config/lisgd/config &
}
while IFS='$\n' read -r line; do
rotation="$(echo $line | sed -En "s/^.*orientation changed: (.*)/\1/p")"
[[ ! -z $rotation ]] && rotate_ms $rotation
done < <(stdbuf -oL monitor-sensor)

View file

@ -1,33 +0,0 @@
#!/bin/bash
SIDE="$1"
TOUCH="$2"
workspaces=($(hyprctl workspaces -j | jq '.[] | .id'))
current_workspace=$(hyprctl monitors -j | jq '.[0].activeWorkspace.id')
echo $current_workspace
if [[ ${workspaces[-1]} == ${workspaces[0]} ]]; then
if [[ $current_workspace == "1" ]]; then
hyprctl dispatch workspace 2
elif [[ $SIDE == "prev" ]]; then
hyprctl dispatch workspace $[${workspaces[0]} - 1]
elif [[ $SIDE == "next" ]]; then
hyprctl dispatch workspace $[${workspaces[0]} + 1]
fi
elif [[ $SIDE == "prev" ]]; then
if [[ $current_workspace == "1" ]]; then
hyprctl dispatch workspace ${workspaces[-1]}
else
hyprctl dispatch workspace $[$current_workspace - 1]
fi
elif [[ $SIDE == "next" ]]; then
hyprctl dispatch workspace $[$current_workspace + 1]
fi
if [[ $TOUCH == "touch" ]]; then
sleep 0.2
sudo input-emulator touch tap 1280 720
fi

View file

@ -1,12 +1,12 @@
#!/bin/bash #!/usr/bin/env bash
while true while true
do do
while killall -0 blueman-manager > /dev/null 2>&1 while killall -0 .blueman-manage > /dev/null 2>&1
do do
if [[ $(bluetoothctl show | grep Powered | grep yes) ]]; then if [[ $(bluetoothctl show | grep Powered | grep yes) ]]; then
if [[ $(hyprctl activewindow | grep blueman-manager) == "" && $(hyprctl clients | grep blueman-manager) != "" ]]; then if [[ $(hyprctl activewindow | grep blueman-manager) == "" && $(hyprctl clients | grep blueman-manager) != "" ]]; then
killall blueman-manager killall .blueman-manage
break break
fi fi
sleep 0.1 sleep 0.1

View file

@ -1,22 +0,0 @@
#!/bin/bash
execute() {
echo "Rotating"
/home/matt/.config/lisgd/config &
lisgd_pid=$! # Save the PID of the lisgd process
}
cleanup() {
echo "Cleaning up..."
kill $lisgd_pid # Terminate the lisgd process
wait $lisgd_pid # Wait for the process to exit
}
# Register the cleanup function to be called on script exit
trap cleanup EXIT
# Loop to listen to the command
while IFS='$\n' read -r line; do
rotation="$(echo $line | sed -En "s/^.*orientation changed: (.*)/\1/p")"
[[ ! -z $rotation ]] && execute
done < <(stdbuf -oL monitor-sensor)

View file

@ -1,12 +1,9 @@
#!/bin/bash #!/usr/bin/env bash
eww update toggle-state=false eww update toggle-state=false
/usr/bin/setsysmode laptop
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false
brightnessctl -d tpacpi::kbd_backlight s 2 brightnessctl -d tpacpi::kbd_backlight s 2
killall iio-hyprland killall -r autorotate.sh
#swaymsg output eDP-1 transform 0 killall -r evtest
$HOME/.config/lisgd/config
killall autorotate.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [[ $(busctl get-property --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible) == "b true" ]] if [[ $(busctl get-property --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible) == "b true" ]]
then then

View file

@ -1,13 +1,15 @@
#!/bin/bash #!/usr/bin/env bash
eww update toggle-state=true eww update toggle-state=true
setsysmode tablet
echo $XDG_DATA_DIRS >> ~/log.log
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true
brightnessctl -d tpacpi::kbd_backlight s 0 brightnessctl -d tpacpi::kbd_backlight s 0
iio-hyprland & $HOME/.config/hypr/scripts/autorotate.sh &
$HOME/.config/hypr/scripts/tablet/autorotate.sh & evtest --grab "/dev/input/by-path/platform-i8042-serio-0-event-kbd" &
killall autorotate.sh evtest --grab "/dev/input/by-path/platform-i8042-serio-1-event-mouse" &
$HOME/.config/hypr/scripts/tablet/autorotate.sh & evtest --grab "/dev/input/by-path/platform-AMDI0010:02-event-mouse" &
evtest --grab "/dev/input/by-path/platform-thinkpad_acpi-event" &
evtest --grab "/dev/video-bus" &

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [[ $(gsettings get org.gnome.desktop.a11y.applications screen-keyboard-enabled) == true ]]; then if [[ $(gsettings get org.gnome.desktop.a11y.applications screen-keyboard-enabled) == true ]]; then
$HOME/.config/sway/scripts/tablet/laptop-mode.sh $HOME/.config/sway/scripts/tablet/laptop-mode.sh

View file

@ -1,202 +0,0 @@
# Configuration file for libinput-gestures.
# Mark Blakeney, Sep 2015
#
# The default configuration file exists at /etc/libinput-gestures.conf
# but a user can create a personal custom configuration file at
# ~/.config/libinput-gestures.conf.
#
# Lines starting with '#' and blank lines are ignored. Currently
# "gesture" and "device" configuration keywords are supported as
# described below. The keyword can optionally be appended with a ":" (to
# maintain compatibility with original format configuration files).
#
# Each gesture line has 3 [or 4] arguments separated by whitespace:
#
# action motion [finger_count] command
#
# where action and motion is either:
# swipe up
# swipe down
# swipe left
# swipe right
# swipe left_up
# swipe left_down
# swipe right_up
# swipe right_down
# pinch in
# pinch out
# pinch clockwise
# pinch anticlockwise
# hold on (hold gesture available since libinput 1.19)
#
# command is the remainder of the line and is any valid shell command +
# arguments. NOTE that the command is run directly and is not parsed by
# your shell. If you want shell parsing and substitutions etc then use a
# script as described in the CONFIGURATION section of the main README.
#
# finger_count is a single numeric digit and is optional (and is
# typically 3 or 4). If specified then the command is executed when
# exactly that number of fingers is used in the gesture. If not
# specified then the command is executed when that gesture is executed
# with any number of fingers. Gesture lines specified with finger_count
# have priority over the same gesture specified without any
# finger_count.
#
# Typically command will be _internal, or xdotool. See "man xdotool" for
# the many things you can action with that tool. Note that unfortunately
# xdotool does not work with native Wayland clients.
###############################################################################
# SWIPE GESTURES:
###############################################################################
# Note the default is an "internal" command that uses wmctrl to switch
# workspaces and, unlike xdotool, works on both Xorg and Wayland (via
# XWayland). It also can be configured for vertical and horizontal
# switching over tabular workspaces, as per the example below. You can
# also add "-w" to the internal command to allow wrapping workspaces.
# Ensure you install wmctrl if you use _internal.
# Move to next workspace (works for GNOME/KDE/etc on Wayland and Xorg)
#gesture swipe up _internal ws_up
gesture swipe left 3 /home/matt/.config/hypr/scripts/gestures.sh next
gesture swipe right 3 /home/matt/.config/hypr/scripts/gestures.sh prev
# NOTE ABOUT FINGER COUNT:
# The above command will configure this command for all fingers (i.e. 3
# for 4) but to configure it for 3 fingers only, change it to:
# gesture swipe up 3 _internal ws_up
# Then you can configure something else for 4 fingers or leave 4 fingers
# unconfigured. You can configure an explicit finger count like this for
# all example commands in this configuration file.
#
# gesture swipe up xdotool key super+Page_Down
# Move to prev workspace (works for GNOME/KDE/etc on Wayland and Xorg)
#gesture swipe down _internal ws_down
# gesture swipe down xdotool key super+Page_Up
# Browser go forward (works only for Xorg, and Xwayland clients)
#gesture swipe left xdotool key alt+Right
# Browser go back (works only for Xorg, and Xwayland clients)
#gesture swipe right xdotool key alt+Left
# Open new browser tag ("hold on" available since libinput 1.19)
# gesture hold on 4 xdotool key control+t
# NOTE: If you don't use "natural" scrolling direction for your touchpad
# then you may want to swap the above default left/right and up/down
# configurations.
# Optional extended swipe gestures, e.g. for browser tab navigation:
#
# Jump to next open browser tab
# gesture swipe right_up xdotool key control+Tab
#
# Jump to previous open browser tab
# gesture swipe left_up xdotool key control+shift+Tab
#
# Close current browser tab
# gesture swipe left_down xdotool key control+w
#
# Reopen and jump to last closed browser tab
# gesture swipe right_down xdotool key control+shift+t
# Example of 8 static workspaces, e.g. using KDE virtual-desktops,
# arranged in 2 rows of 4 columns across using swipe up/down/left/right
# to navigate in fixed planes. You can also add the "-w/--wrap" option
# to allow wrapping in any direction. You must configure your virtual
# desktops with the same column dimension.
# gesture swipe up _internal --cols 4 ws_up
# gesture swipe down _internal --cols 4 ws_down
# gesture swipe left _internal --cols 4 ws_left
# gesture swipe right _internal --cols 4 ws_right
#
# Example of 16 static workspaces, e.g. using KDE virtual-desktops,
# arranged in 4 rows of 4 columns across using swipe up/down/left/right
# to navigate in fixed planes, and also using swipe
# left_up/left_down/right_up/right_down to navigate diagonally. You can
# also add the "-w/--wrap" option to allow wrapping in any direction
# and/or diagonally. You must configure your virtual desktops with the
# same column dimension.
# gesture swipe up _internal --cols 4 ws_up
# gesture swipe down _internal --cols 4 ws_down
# gesture swipe left _internal --cols 4 ws_left
# gesture swipe right _internal --cols 4 ws_right
# gesture swipe left_up _internal --cols 4 ws_left_up
# gesture swipe left_down _internal --cols 4 ws_left_down
# gesture swipe right_up _internal --cols 4 ws_right_up
# gesture swipe right_down _internal --cols 4 ws_right_down
# Example virtual desktop switching for Ubuntu Unity/Compiz. The
# _internal command does not work for Compiz but you can explicitly
# configure the swipe commands to work for a Compiz virtual 2
# dimensional desktop as follows:
# gesture swipe up xdotool key ctrl+alt+Up
# gesture swipe down xdotool key ctrl+alt+Down
# gesture swipe left xdotool key ctrl+alt+Left
# gesture swipe right xdotool key ctrl+alt+Right
# Example to change audio volume (this works on both Wayland and Xorg):
# Note each swipe only steps volume once.
# swipe up 4 amixer set Master "8%+"
# swipe down 4 amixer set Master "8%-"
###############################################################################
# PINCH GESTURES:
###############################################################################
# GNOME SHELL open/close overview (works for GNOME on Xorg only)
#gesture pinch in xdotool key super+s
#gesture pinch out xdotool key super+s
# KDE Plasma open/close overview
# gesture pinch in xdotool key ctrl+F9
# gesture pinch out xdotool key ctrl+F9
# GNOME SHELL open/close overview (works for GNOME on Wayland and Xorg)
# Note since GNOME 3.24 on Wayland this is implemented natively so no
# real point configuring for Wayland.
# gesture pinch in dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();'
# gesture pinch out dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();'
# Optional extended pinch gestures:
# gesture pinch clockwise <whatever command>
# gesture pinch anticlockwise <whatever command>
###############################################################################
# This application normally determines your touchpad device
# automatically. Some users may have multiple touchpads but by default
# we use only the first one found. However, you can choose to specify
# the explicit device name to use. Run "libinput list-devices" to work
# out the name of your device (from the "Device:" field). Then add a
# device line specifying that name, e.g:
#
# device DLL0665:01 06CB:76AD Touchpad
#
# If the device name starts with a '/' then it is instead considered as
# the explicit device path although since device paths can change
# through reboots this is best to be a symlink. E.g. instead of specifying
# /dev/input/event12, you should use the corresponding full path link
# under /dev/input/by-path/ or /dev/input/by-id/.
#
# You can choose to use ALL touchpad devices by setting the device name
# to "all". E.g. Do this if you have multiple touchpads which you want
# to use in parallel. This reduces performance slightly so only set this
# if you have to.
#
# device all
###############################################################################
# You can set a minimum travel distance threshold before swipe gestures
# are actioned using the swipe_threshold configuration command.
# Specify this value in dots. The default is 0.
# E.g. set it to 100 dots with "swipe_threshold 100".
# swipe_threshold 0
###############################################################################
# You can set a timeout on gestures from start to end. The default is
# the value commented below. It can be any value in float secs >= 0.
# 0 = no timeout. E.g. set it to 2 secs with "timeout 2".
# timeout 1.5

View file

@ -1,3 +0,0 @@
I use my [fork](https://git.nelim.org/matt1432/lisgd-sway) of [lisgd](https://git.sr.ht/~mil/lisgd) to freeze touchscreen inputs while using 3 or more fingers so gestures can be done without zooming your firefox tabs or messing up your work (only works on sway).
I had to also make a [fork](https://git.nelim.org/matt1432/input-emulator-sway) of [input-emulator](https://github.com/tio/input-emulator) to make the touch_tap do 3 simultaneous taps, because disabling the touchscreen while doing gestures would not register when the fingers stop touching. therefore, simulating another tap of 3 fingers makes sway recognize the release.

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
## https://www.reddit.com/r/swaywm/comments/ocec7k/comment/i93s0ma/ ## https://www.reddit.com/r/swaywm/comments/ocec7k/comment/i93s0ma/
## https://git.sr.ht/~mil/lisgd/tree/0.3.7/item/config.def.h ## https://git.sr.ht/~mil/lisgd/tree/0.3.7/item/config.def.h
@ -6,14 +6,11 @@
function gestures { function gestures {
lisgd -d /dev/input/by-path/platform-AMDI0010\:00-event -o 0 -t 125 -r 25 -m 3200 \ lisgd -d /dev/input/by-path/platform-AMDI0010\:00-event -o 0 -t 125 -r 25 -m 3200 \
-g "1,UD,B,*,R,bash -c 'busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false'" \ -g "1,UD,B,*,R,bash -c 'busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false'" \
-g "1,DU,B,*,R,bash -c 'busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true'" \ -g "1,DU,B,*,R,bash -c 'busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true'"
-g "3,RL,N,*,R,$HOME/.config/hypr/scripts/gestures.sh next" \
-g "3,LR,N,*,R,$HOME/.config/hypr/scripts/gestures.sh prev"
} }
if pgrep lisgd ; then if pgrep lisgd ; then
killall lisgd killall -r lisgd
gestures gestures
else else
gestures gestures

880
neofetch/config.conf Normal file
View file

@ -0,0 +1,880 @@
# See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
info title
info underline
info "OS" distro
#info "Host" model
info "Kernel" kernel
#info "Uptime" uptime
info "Packages" packages
#info "Shell" shell
#info "Resolution" resolution
info "DE" de
#info "WM" wm
#info "WM Theme" wm_theme
#info "Theme" theme
#info "Icons" icons
#info "Terminal" term
#info "Terminal Font" term_font
info "CPU" cpu
info "GPU" gpu
info "Memory" memory
# info "GPU Driver" gpu_driver # Linux/macOS only
# info "Disk" disk
# info "Battery" battery
# info "Font" font
# info "Song" song
# [[ "$player" ]] && prin "Music Player" "$player"
# info "Local IP" local_ip
# info "Public IP" public_ip
# info "Users" users
# info "Locale" locale # This only works on glibc systems.
info cols
}
# Title
# Hide/Show Fully qualified domain name.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --title_fqdn
title_fqdn="off"
# Kernel
# Shorten the output of the kernel function.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --kernel_shorthand
# Supports: Everything except *BSDs (except PacBSD and PC-BSD)
#
# Example:
# on: '4.8.9-1-ARCH'
# off: 'Linux 4.8.9-1-ARCH'
kernel_shorthand="on"
# Distro
# Shorten the output of the distro function
#
# Default: 'off'
# Values: 'on', 'tiny', 'off'
# Flag: --distro_shorthand
# Supports: Everything except Windows and Haiku
distro_shorthand="off"
# Show/Hide OS Architecture.
# Show 'x86_64', 'x86' and etc in 'Distro:' output.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --os_arch
#
# Example:
# on: 'Arch Linux x86_64'
# off: 'Arch Linux'
os_arch="on"
# Uptime
# Shorten the output of the uptime function
#
# Default: 'on'
# Values: 'on', 'tiny', 'off'
# Flag: --uptime_shorthand
#
# Example:
# on: '2 days, 10 hours, 3 mins'
# tiny: '2d 10h 3m'
# off: '2 days, 10 hours, 3 minutes'
uptime_shorthand="on"
# Memory
# Show memory percentage in output.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --memory_percent
#
# Example:
# on: '1801MiB / 7881MiB (22%)'
# off: '1801MiB / 7881MiB'
memory_percent="off"
# Change memory output unit.
#
# Default: 'mib'
# Values: 'kib', 'mib', 'gib'
# Flag: --memory_unit
#
# Example:
# kib '1020928KiB / 7117824KiB'
# mib '1042MiB / 6951MiB'
# gib: ' 0.98GiB / 6.79GiB'
memory_unit="mib"
# Packages
# Show/Hide Package Manager names.
#
# Default: 'tiny'
# Values: 'on', 'tiny' 'off'
# Flag: --package_managers
#
# Example:
# on: '998 (pacman), 8 (flatpak), 4 (snap)'
# tiny: '908 (pacman, flatpak, snap)'
# off: '908'
package_managers="on"
# Shell
# Show the path to $SHELL
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --shell_path
#
# Example:
# on: '/bin/bash'
# off: 'bash'
shell_path="off"
# Show $SHELL version
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --shell_version
#
# Example:
# on: 'bash 4.4.5'
# off: 'bash'
shell_version="on"
# CPU
# CPU speed type
#
# Default: 'bios_limit'
# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'.
# Flag: --speed_type
# Supports: Linux with 'cpufreq'
# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value.
speed_type="bios_limit"
# CPU speed shorthand
#
# Default: 'off'
# Values: 'on', 'off'.
# Flag: --speed_shorthand
# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz
#
# Example:
# on: 'i7-6500U (4) @ 3.1GHz'
# off: 'i7-6500U (4) @ 3.100GHz'
speed_shorthand="off"
# Enable/Disable CPU brand in output.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --cpu_brand
#
# Example:
# on: 'Intel i7-6500U'
# off: 'i7-6500U (4)'
cpu_brand="on"
# CPU Speed
# Hide/Show CPU speed.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --cpu_speed
#
# Example:
# on: 'Intel i7-6500U (4) @ 3.1GHz'
# off: 'Intel i7-6500U (4)'
cpu_speed="on"
# CPU Cores
# Display CPU cores in output
#
# Default: 'logical'
# Values: 'logical', 'physical', 'off'
# Flag: --cpu_cores
# Support: 'physical' doesn't work on BSD.
#
# Example:
# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores)
# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores)
# off: 'Intel i7-6500U @ 3.1GHz'
cpu_cores="logical"
# CPU Temperature
# Hide/Show CPU temperature.
# Note the temperature is added to the regular CPU function.
#
# Default: 'off'
# Values: 'C', 'F', 'off'
# Flag: --cpu_temp
# Supports: Linux, BSD
# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable
# coretemp kernel module. This only supports newer Intel processors.
#
# Example:
# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]'
# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]'
# off: 'Intel i7-6500U (4) @ 3.1GHz'
cpu_temp="off"
# GPU
# Enable/Disable GPU Brand
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gpu_brand
#
# Example:
# on: 'AMD HD 7950'
# off: 'HD 7950'
gpu_brand="on"
# Which GPU to display
#
# Default: 'all'
# Values: 'all', 'dedicated', 'integrated'
# Flag: --gpu_type
# Supports: Linux
#
# Example:
# all:
# GPU1: AMD HD 7950
# GPU2: Intel Integrated Graphics
#
# dedicated:
# GPU1: AMD HD 7950
#
# integrated:
# GPU1: Intel Integrated Graphics
gpu_type="all"
# Resolution
# Display refresh rate next to each monitor
# Default: 'off'
# Values: 'on', 'off'
# Flag: --refresh_rate
# Supports: Doesn't work on Windows.
#
# Example:
# on: '1920x1080 @ 60Hz'
# off: '1920x1080'
refresh_rate="off"
# Gtk Theme / Icons / Font
# Shorten output of GTK Theme / Icons / Font
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --gtk_shorthand
#
# Example:
# on: 'Numix, Adwaita'
# off: 'Numix [GTK2], Adwaita [GTK3]'
gtk_shorthand="off"
# Enable/Disable gtk2 Theme / Icons / Font
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gtk2
#
# Example:
# on: 'Numix [GTK2], Adwaita [GTK3]'
# off: 'Adwaita [GTK3]'
gtk2="on"
# Enable/Disable gtk3 Theme / Icons / Font
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gtk3
#
# Example:
# on: 'Numix [GTK2], Adwaita [GTK3]'
# off: 'Numix [GTK2]'
gtk3="on"
# IP Address
# Website to ping for the public IP
#
# Default: 'http://ident.me'
# Values: 'url'
# Flag: --ip_host
public_ip_host="http://ident.me"
# Public IP timeout.
#
# Default: '2'
# Values: 'int'
# Flag: --ip_timeout
public_ip_timeout=2
# Local IP interface
#
# Default: 'auto' (interface of default route)
# Values: 'auto', 'en0', 'en1'
# Flag: --ip_interface
local_ip_interface=('auto')
# Desktop Environment
# Show Desktop Environment version
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --de_version
de_version="on"
# Disk
# Which disks to display.
# The values can be any /dev/sdXX, mount point or directory.
# NOTE: By default we only show the disk info for '/'.
#
# Default: '/'
# Values: '/', '/dev/sdXX', '/path/to/drive'.
# Flag: --disk_show
#
# Example:
# disk_show=('/' '/dev/sdb1'):
# 'Disk (/): 74G / 118G (66%)'
# 'Disk (/mnt/Videos): 823G / 893G (93%)'
#
# disk_show=('/'):
# 'Disk (/): 74G / 118G (66%)'
#
disk_show=('/')
# Disk subtitle.
# What to append to the Disk subtitle.
#
# Default: 'mount'
# Values: 'mount', 'name', 'dir', 'none'
# Flag: --disk_subtitle
#
# Example:
# name: 'Disk (/dev/sda1): 74G / 118G (66%)'
# 'Disk (/dev/sdb2): 74G / 118G (66%)'
#
# mount: 'Disk (/): 74G / 118G (66%)'
# 'Disk (/mnt/Local Disk): 74G / 118G (66%)'
# 'Disk (/mnt/Videos): 74G / 118G (66%)'
#
# dir: 'Disk (/): 74G / 118G (66%)'
# 'Disk (Local Disk): 74G / 118G (66%)'
# 'Disk (Videos): 74G / 118G (66%)'
#
# none: 'Disk: 74G / 118G (66%)'
# 'Disk: 74G / 118G (66%)'
# 'Disk: 74G / 118G (66%)'
disk_subtitle="mount"
# Disk percent.
# Show/Hide disk percent.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --disk_percent
#
# Example:
# on: 'Disk (/): 74G / 118G (66%)'
# off: 'Disk (/): 74G / 118G'
disk_percent="on"
# Song
# Manually specify a music player.
#
# Default: 'auto'
# Values: 'auto', 'player-name'
# Flag: --music_player
#
# Available values for 'player-name':
#
# amarok
# audacious
# banshee
# bluemindo
# clementine
# cmus
# deadbeef
# deepin-music
# dragon
# elisa
# exaile
# gnome-music
# gmusicbrowser
# gogglesmm
# guayadeque
# io.elementary.music
# iTunes
# Music
# juk
# lollypop
# MellowPlayer
# mocp
# mopidy
# mpd
# muine
# netease-cloud-music
# olivia
# playerctl
# pogo
# pragha
# qmmp
# quodlibet
# rhythmbox
# sayonara
# smplayer
# spotify
# strawberry
# tauonmb
# tomahawk
# vlc
# xmms2d
# xnoise
# yarock
music_player="auto"
# Format to display song information.
#
# Default: '%artist% - %album% - %title%'
# Values: '%artist%', '%album%', '%title%'
# Flag: --song_format
#
# Example:
# default: 'Song: Jet - Get Born - Sgt Major'
song_format="%artist% - %album% - %title%"
# Print the Artist, Album and Title on separate lines
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --song_shorthand
#
# Example:
# on: 'Artist: The Fratellis'
# 'Album: Costello Music'
# 'Song: Chelsea Dagger'
#
# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger'
song_shorthand="off"
# 'mpc' arguments (specify a host, password etc).
#
# Default: ''
# Example: mpc_args=(-h HOST -P PASSWORD)
mpc_args=()
# Text Colors
# Text Colors
#
# Default: 'distro'
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
# Flag: --colors
#
# Each number represents a different part of the text in
# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info'
#
# Example:
# colors=(distro) - Text is colored based on Distro colors.
# colors=(4 6 1 8 8 6) - Text is colored in the order above.
colors=(distro)
# Text Options
# Toggle bold text
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --bold
bold="on"
# Enable/Disable Underline
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --underline
underline_enabled="on"
# Underline character
#
# Default: '-'
# Values: 'string'
# Flag: --underline_char
underline_char="-"
# Info Separator
# Replace the default separator with the specified string.
#
# Default: ':'
# Flag: --separator
#
# Example:
# separator="->": 'Shell-> bash'
# separator=" =": 'WM = dwm'
separator=":"
# Color Blocks
# Color block range
# The range of colors to print.
#
# Default: '0', '15'
# Values: 'num'
# Flag: --block_range
#
# Example:
#
# Display colors 0-7 in the blocks. (8 colors)
# neofetch --block_range 0 7
#
# Display colors 0-15 in the blocks. (16 colors)
# neofetch --block_range 0 15
block_range=(0 15)
# Toggle color blocks
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --color_blocks
color_blocks="on"
# Color block width in spaces
#
# Default: '3'
# Values: 'num'
# Flag: --block_width
block_width=3
# Color block height in lines
#
# Default: '1'
# Values: 'num'
# Flag: --block_height
block_height=1
# Color Alignment
#
# Default: 'auto'
# Values: 'auto', 'num'
# Flag: --col_offset
#
# Number specifies how far from the left side of the terminal (in spaces) to
# begin printing the columns, in case you want to e.g. center them under your
# text.
# Example:
# col_offset="auto" - Default behavior of neofetch
# col_offset=7 - Leave 7 spaces then print the colors
col_offset="auto"
# Progress Bars
# Bar characters
#
# Default: '-', '='
# Values: 'string', 'string'
# Flag: --bar_char
#
# Example:
# neofetch --bar_char 'elapsed' 'total'
# neofetch --bar_char '-' '='
bar_char_elapsed="-"
bar_char_total="="
# Toggle Bar border
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --bar_border
bar_border="on"
# Progress bar length in spaces
# Number of chars long to make the progress bars.
#
# Default: '15'
# Values: 'num'
# Flag: --bar_length
bar_length=15
# Progress bar colors
# When set to distro, uses your distro's logo colors.
#
# Default: 'distro', 'distro'
# Values: 'distro', 'num'
# Flag: --bar_colors
#
# Example:
# neofetch --bar_colors 3 4
# neofetch --bar_colors distro 5
bar_color_elapsed="distro"
bar_color_total="distro"
# Info display
# Display a bar with the info.
#
# Default: 'off'
# Values: 'bar', 'infobar', 'barinfo', 'off'
# Flags: --memory_display
# --battery_display
# --disk_display
#
# Example:
# bar: '[---=======]'
# infobar: 'info [---=======]'
# barinfo: '[---=======] info'
# off: 'info'
memory_display="off"
battery_display="off"
disk_display="off"
# Backend Settings
# Image backend.
#
# Default: 'ascii'
# Values: 'ascii', 'caca', 'catimg', 'chafa', 'jp2a', 'iterm2', 'off',
# 'pot', 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty', 'ueberzug',
# 'viu'
# Flag: --backend
image_backend="ascii"
# Image Source
#
# Which image or ascii file to display.
#
# Default: 'auto'
# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/'
# 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")'
# Flag: --source
#
# NOTE: 'auto' will pick the best image source for whatever image backend is used.
# In ascii mode, distro ascii art will be used and in an image mode, your
# wallpaper will be used.
image_source="auto"
# Ascii Options
# Ascii distro
# Which distro's ascii art to display.
#
# Default: 'auto'
# Values: 'auto', 'distro_name'
# Flag: --ascii_distro
# NOTE: AIX, Hash, Alpine, AlterLinux, Amazon, Anarchy, Android, instantOS,
# Antergos, antiX, "AOSC OS", "AOSC OS/Retro", Apricity, ArchCraft,
# ArcoLinux, ArchBox, ARCHlabs, ArchStrike, XFerience, ArchMerge, Arch,
# Artix, Arya, Bedrock, Bitrig, BlackArch, BLAG, BlankOn, BlueLight,
# Bodhi, bonsai, BSD, BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS,
# Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover, Condres,
# Container_Linux, Crystal Linux, CRUX, Cucumber, dahlia, Debian, Deepin,
# DesaOS, Devuan, DracOS, DarkOs, Itc, DragonFly, Drauger, Elementary,
# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD,
# FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo,
# gNewSense, GNOME, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra, HydroOS
# Hyperbola, iglunix, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion, Korora,
# KSLinux, Kubuntu, LEDE, LaxerOS, LibreELEC, LFS, Linux_Lite, LMDE,
# Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva, Manjaro, TeArch, Maui,
# Mer, Minix, LinuxMint, Live_Raizo, MX_Linux, Namib, Neptune, NetBSD,
# Netrunner, Nitrux, NixOS, Nurunner, NuTyX, OBRevenge, OpenBSD,
# openEuler, OpenIndiana, openmamba, OpenMandriva, OpenStage, OpenWrt,
# osmc, Oracle, OS Elbrus, PacBSD, Parabola, Pardus, Parrot, Parsix,
# TrueOS, PCLinuxOS, Pengwin, Peppermint, Pisi, popos, Porteus, PostMarketOS,
# Proxmox, PuffOS, Puppy, PureOS, Qubes, Qubyt, Quibian, Radix, Raspbian,
# Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan, Regata, Regolith,
# Rocky, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific, Septor,
# SereneLinux, SharkLinux, Siduction, SkiffOS, Slackware, SliTaz, SmartOS,
# Solus, Source_Mage, Sparky, Star, SteamOS, SunOS, openSUSE_Leap, t2,
# openSUSE_Tumbleweed, openSUSE, SwagArch, Tails, Trisquel,
# Ubuntu-Cinnamon, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE,
# Ubuntu-Studio, Ubuntu, Univention, Venom, Void, VNux, LangitKetujuh, semc,
# Obarun, windows10, Windows7, Xubuntu, Zorin, and IRIX have ascii logos.
# NOTE: Arch, Ubuntu, Redhat, Fedora and Dragonfly have 'old' logo variants.
# Use '{distro name}_old' to use the old logos.
# NOTE: Ubuntu has flavor variants.
# Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME,
# Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors.
# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu,
# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android,
# Artix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola,
# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian,
# postmarketOS, and Void have a smaller logo variant.
# Use '{distro name}_small' to use the small variants.
ascii_distro="auto"
# Ascii Colors
#
# Default: 'distro'
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
# Flag: --ascii_colors
#
# Example:
# ascii_colors=(distro) - Ascii is colored based on Distro colors.
# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors.
ascii_colors=(distro)
# Bold ascii logo
# Whether or not to bold the ascii logo.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --ascii_bold
ascii_bold="on"
# Image Options
# Image loop
# Setting this to on will make neofetch redraw the image constantly until
# Ctrl+C is pressed. This fixes display issues in some terminal emulators.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --loop
image_loop="off"
# Thumbnail directory
#
# Default: '~/.cache/thumbnails/neofetch'
# Values: 'dir'
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
# Crop mode
#
# Default: 'normal'
# Values: 'normal', 'fit', 'fill'
# Flag: --crop_mode
#
# See this wiki page to learn about the fit and fill options.
# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F
crop_mode="normal"
# Crop offset
# Note: Only affects 'normal' crop mode.
#
# Default: 'center'
# Values: 'northwest', 'north', 'northeast', 'west', 'center'
# 'east', 'southwest', 'south', 'southeast'
# Flag: --crop_offset
crop_offset="center"
# Image size
# The image is half the terminal width by default.
#
# Default: 'auto'
# Values: 'auto', '00px', '00%', 'none'
# Flags: --image_size
# --size
image_size="auto"
# Catimg block size.
# Control the resolution of catimg.
#
# Default: '2'
# Values: '1', '2'
# Flags: --catimg_size
catimg_size="2"
# Gap between image and text
#
# Default: '3'
# Values: 'num', '-num'
# Flag: --gap
gap=3
# Image offsets
# Only works with the w3m backend.
#
# Default: '0'
# Values: 'px'
# Flags: --xoffset
# --yoffset
yoffset=0
xoffset=0
# Image background color
# Only works with the w3m backend.
#
# Default: ''
# Values: 'color', 'blue'
# Flag: --bg_color
background_color=
# Misc Options
# Stdout mode
# Turn off all colors and disables image backend (ASCII/Image).
# Useful for piping into another command.
# Default: 'off'
# Values: 'on', 'off'
stdout="off"

View file

@ -8,7 +8,7 @@
"friendly-snippets": { "branch": "main", "commit": "7006e69b60a559837ff6cdb7fe610af4f6ca823c" }, "friendly-snippets": { "branch": "main", "commit": "7006e69b60a559837ff6cdb7fe610af4f6ca823c" },
"gitsigns.nvim": { "branch": "main", "commit": "f868d82a36f7f7f5e110eb0a9659993984f59875" }, "gitsigns.nvim": { "branch": "main", "commit": "f868d82a36f7f7f5e110eb0a9659993984f59875" },
"indent-blankline.nvim": { "branch": "master", "commit": "7075d7861f7a6bbf0de0298c83f8a13195e6ec01" }, "indent-blankline.nvim": { "branch": "master", "commit": "7075d7861f7a6bbf0de0298c83f8a13195e6ec01" },
"lazy.nvim": { "branch": "main", "commit": "ebdd0499551765e6a7aba220cc8ae4e0cdb6be69" }, "lazy.nvim": { "branch": "main", "commit": "6b2311a46a3808e366bb251270f4cc04afb421ed" },
"lualine.nvim": { "branch": "master", "commit": "05d78e9fd0cdfb4545974a5aa14b1be95a86e9c9" }, "lualine.nvim": { "branch": "master", "commit": "05d78e9fd0cdfb4545974a5aa14b1be95a86e9c9" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "f0ce33f4794a2364eb08d09d09380e8b04ec5e6a" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "f0ce33f4794a2364eb08d09d09380e8b04ec5e6a" },
"mason.nvim": { "branch": "main", "commit": "7d7efc738e08fc5bee822857db45cb6103f0b0c1" }, "mason.nvim": { "branch": "main", "commit": "7d7efc738e08fc5bee822857db45cb6103f0b0c1" },

View file

@ -1,6 +0,0 @@
{
"export-settings-ini": true,
"export-gtkrc-20": true,
"export-index-theme": true,
"export-xsettingsd": true
}

View file

@ -1,13 +1,13 @@
[Appearance] [Appearance]
color_scheme_path=/usr/share/qt5ct/colors/airy.conf color_scheme_path=/nix/store/9f0l6r0891z45x6ixkfgnqwrrdyap65c-qt5ct-1.5/share/qt5ct/colors/airy.conf
custom_palette=false custom_palette=false
icon_theme=Flatery-Dark icon_theme=breeze-dark
standard_dialogs=default standard_dialogs=default
style=Fusion style=Fusion
[Fonts] [Fonts]
fixed="Sans Serif,9,-1,5,50,0,0,0,0,0" fixed=@Variant(\0\0\0@\0\0\0\x14\0S\0\x61\0n\0s\0 \0S\0\x65\0r\0i\0\x66@\"\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
general="Sans Serif,9,-1,5,50,0,0,0,0,0" general=@Variant(\0\0\0@\0\0\0\x14\0S\0\x61\0n\0s\0 \0S\0\x65\0r\0i\0\x66@\"\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
[Interface] [Interface]
activate_item_on_single_click=1 activate_item_on_single_click=1
@ -25,7 +25,7 @@ underline_shortcut=1
wheel_scroll_lines=3 wheel_scroll_lines=3
[SettingsWindow] [SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\x3\xae\0\0\x4\x63\0\0\0\0\0\0\0\0\0\0\x2\xe1\0\0\x3[\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\x3\xae\0\0\x4\x63) geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\x3\xb1\0\0\x4n\0\0\0\0\0\0\0\0\0\0\x2\xe1\0\0\x3[\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\x3\xb1\0\0\x4n)
[Troubleshooting] [Troubleshooting]
force_raster_widgets=1 force_raster_widgets=1

View file

@ -19,7 +19,7 @@ configuration {
@import "~/.config/rofi/colors/dracula.rasi" @import "~/.config/rofi/colors/dracula.rasi"
* { * {
font: "Product Sans 12"; font: "MesloLGS NF 12";
} }
/*****----- Main Window -----*****/ /*****----- Main Window -----*****/

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Run # Run
rofi -dmenu \ rofi -dmenu \

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
## Run ## Run
rofi \ rofi \

1
swaync/README.md Normal file
View file

@ -0,0 +1 @@
credits : https://github.com/ErikReider/Linux/tree/master/dotfiles/swayConfig/swaync

View file

@ -2,35 +2,49 @@
* vim: ft=less * vim: ft=less
*/ */
@define-color cc-bg rgba(0, 0, 0, 0.7); @define-color cc-bg rgba(42, 42, 42, 0.8);
@define-color noti-border-color rgba(255, 255, 255, 0.15); @define-color noti-border-color rgba(255, 255, 255, 0.15);
@define-color noti-bg rgb(48, 48, 48); @define-color noti-bg rgba(55, 55, 55, 0.8);
@define-color noti-bg-darker rgb(38, 38, 38); @define-color noti-bg-hover rgba(65, 65, 65, 0.8);
@define-color noti-bg-hover rgb(56, 56, 56);
@define-color noti-bg-focus rgba(68, 68, 68, 0.6); @define-color noti-bg-focus rgba(68, 68, 68, 0.6);
@define-color noti-close-bg rgba(255, 255, 255, 0.1); @define-color noti-close-bg rgba(255, 255, 255, 0.1);
@define-color noti-close-bg-hover rgba(255, 255, 255, 0.15); @define-color noti-close-bg-hover rgba(255, 255, 255, 0.15);
@define-color text-color rgb(255, 255, 255);
@define-color text-color-disabled rgb(150, 150, 150);
@define-color bg-selected rgb(0, 128, 255); @define-color bg-selected rgb(0, 128, 255);
.notification-row { .notification-row {
transition: all 200ms ease;
outline: none; outline: none;
margin-bottom: 4px;
border-radius: 12px;
} }
.notification-row:focus, .control-center .notification-row:focus,
.notification-row:hover { .control-center .notification-row:hover {
background: @noti-bg-focus; opacity: 1;
background: transparent;
}
.notification-row:focus .notification,
.notification-row:hover .notification {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.5);
box-shadow: 0px 0px 0px 3px @bg-selected;
}
.control-center .notification {
box-shadow: none;
}
.control-center .notification-row {
opacity: 0.5;
} }
.notification { .notification {
transition: all 200ms ease;
border-radius: 12px; border-radius: 12px;
margin: 6px 12px; margin: 6px 6px;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.7), box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.5);
0 2px 6px 2px rgba(0, 0, 0, 0.3);
padding: 0; padding: 0;
} }
@ -62,12 +76,12 @@
.close-button { .close-button {
background: @noti-close-bg; background: @noti-close-bg;
color: @text-color; color: white;
text-shadow: none; text-shadow: none;
padding: 0; padding: 0;
border-radius: 100%; border-radius: 100%;
margin-top: 10px; margin-top: 10px;
margin-right: 16px; margin-right: 10px;
box-shadow: none; box-shadow: none;
border: none; border: none;
min-width: 24px; min-width: 24px;
@ -88,8 +102,8 @@
box-shadow: none; box-shadow: none;
background: @noti-bg; background: @noti-bg;
border: 1px solid @noti-border-color; border: 1px solid @noti-border-color;
color: @text-color; color: white;
transition: all 0.15s ease-in-out; transition: all 200ms ease;
} }
.notification-default-action:hover, .notification-default-action:hover,
@ -124,32 +138,6 @@
border-right: 1px solid @noti-border-color; border-right: 1px solid @noti-border-color;
} }
.inline-reply {
margin-top: 8px;
}
.inline-reply-entry {
background: @noti-bg-darker;
color: @text-color;
caret-color: @text-color;
border: 1px solid @noti-border-color;
border-radius: 12px;
}
.inline-reply-button {
margin-left: 4px;
background: @noti-bg;
border: 1px solid @noti-border-color;
border-radius: 12px;
color: @text-color;
}
.inline-reply-button:disabled {
background: initial;
color: @text-color-disabled;
border: 1px solid transparent;
}
.inline-reply-button:hover {
background: @noti-bg-hover;
}
.image { .image {
} }
@ -163,7 +151,7 @@
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
background: transparent; background: transparent;
color: @text-color; color: white;
text-shadow: none; text-shadow: none;
} }
@ -171,7 +159,7 @@
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
background: transparent; background: transparent;
color: @text-color; color: white;
text-shadow: none; text-shadow: none;
margin-right: 18px; margin-right: 18px;
} }
@ -180,13 +168,17 @@
font-size: 15px; font-size: 15px;
font-weight: normal; font-weight: normal;
background: transparent; background: transparent;
color: @text-color; color: white;
text-shadow: none; text-shadow: none;
} }
.control-center { .control-center {
background: @cc-bg; background: @cc-bg;
border-radius: 30px; border-radius: 12px;
background-clip: border-box;
padding: 4px;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.7),
0 2px 6px 2px rgba(0, 0, 0, 0.3);
} }
.control-center-list { .control-center-list {
@ -203,7 +195,7 @@
/* Window behind control center and on all other monitors */ /* Window behind control center and on all other monitors */
.blank-window { .blank-window {
background: alpha(black, 0.25); background: transparent;
} }
/*** Widgets ***/ /*** Widgets ***/
@ -215,7 +207,7 @@
} }
.widget-title > button { .widget-title > button {
font-size: initial; font-size: initial;
color: @text-color; color: white;
text-shadow: none; text-shadow: none;
background: @noti-bg; background: @noti-bg;
border: 1px solid @noti-border-color; border: 1px solid @noti-border-color;
@ -261,6 +253,8 @@
.widget-mpris-player { .widget-mpris-player {
padding: 8px; padding: 8px;
margin: 8px; margin: 8px;
background-color: @noti-bg;
border-radius: 12px;
} }
.widget-mpris-title { .widget-mpris-title {
font-weight: bold; font-weight: bold;
@ -323,18 +317,6 @@
border-radius: 12px; border-radius: 12px;
} }
.widget-volume>box>button {
background: transparent;
border: none;
}
.per-app-volume {
background-color: @noti-bg-alt;
padding: 4px 8px 8px 8px;
margin: 0px 8px 8px 8px;
border-radius: 12px
}
/* Backlight widget */ /* Backlight widget */
.widget-backlight { .widget-backlight {
background-color: @noti-bg; background-color: @noti-bg;
@ -350,7 +332,7 @@
} }
.widget-inhibitors > button { .widget-inhibitors > button {
font-size: initial; font-size: initial;
color: @text-color; color: white;
text-shadow: none; text-shadow: none;
background: @noti-bg; background: @noti-bg;
border: 1px solid @noti-border-color; border: 1px solid @noti-border-color;

View file

@ -3,7 +3,7 @@
"margin-top":5, "margin-top":5,
"margin-left":5, "margin-left":5,
"margin-right":5, "margin-right":5,
"layer":"overlay", "layer":"top",
"spacing": 1, "spacing": 1,
"modules-left": ["custom/osk", "custom/tablet", "wlr/workspaces", "tray", "custom/mowayah"], "modules-left": ["custom/osk", "custom/tablet", "wlr/workspaces", "tray", "custom/mowayah"],
"modules-center": ["hyprland/window"], "modules-center": ["hyprland/window"],
@ -58,8 +58,8 @@
"format-source": "{volume}% ", "format-source": "{volume}% ",
"format-source-muted": "", "format-source-muted": "",
"format-icons": { "format-icons": {
"headphone": "", "headphones": "<span font_family='Font Awesome 6 Free'></span>",
"hands-free": "", "hands-free": "",
"headset": "", "headset": "",
"phone": "", "phone": "",
"portable": "", "portable": "",

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [[ $(eww state | grep calendar_month) ]]; then if [[ $(eww state | grep calendar_month) ]]; then
$HOME/.config/eww/scripts/close.sh date && eww close closer $HOME/.config/eww/scripts/close.sh date && eww close closer

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
TOGGLE=$HOME/.config/waybar/scripts/.heart TOGGLE=$HOME/.config/waybar/scripts/.heart
if [ ! -e $TOGGLE ]; then if [ ! -e $TOGGLE ]; then

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [[ $(eww state | grep br_icon) ]]; then if [[ $(eww state | grep br_icon) ]]; then
$HOME/.config/eww/scripts/close.sh actions && eww close closer $HOME/.config/eww/scripts/close.sh actions && eww close closer

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
TOGGLE=$HOME/.config/waybar/scripts/.heart TOGGLE=$HOME/.config/waybar/scripts/.heart
if [ ! -e $TOGGLE ]; then if [ ! -e $TOGGLE ]; then

View file

@ -120,7 +120,7 @@
#custom-tablet { #custom-tablet {
font-size: 26px; font-size: 26px;
background-color: rgba(69, 71, 90, 0.3); background-color: rgba(69, 71, 90, 0.3);
padding: 0 8px 0 0; padding: 0px 11px 0px 0px;
border-color: #11111B; border-color: #11111B;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
border: 6px solid rgba(0, 0, 0, 0); border: 6px solid rgba(0, 0, 0, 0);
@ -132,7 +132,7 @@
#custom-quicksettings { #custom-quicksettings {
font-size: 26px; font-size: 26px;
background-color: rgba(0, 0, 0, 0); background-color: rgba(0, 0, 0, 0);
padding: 0 8px 0 0; padding: 0px 8px 0px 0px;
} }
#custom-notif { #custom-notif {