mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2024-11-25 00:38:20 -05:00
Test Dotfiles
This commit is contained in:
parent
5c04565b9c
commit
2c8b5304f9
@ -156,7 +156,7 @@ font:
|
||||
style: Bold Italic
|
||||
|
||||
# Point size
|
||||
size: 12.0
|
||||
size: 10.0
|
||||
|
||||
# Offset is the extra space around each character. `offset.y` can be thought
|
||||
# of as modifying the line spacing, and `offset.x` as modifying the letter
|
||||
@ -368,8 +368,8 @@ colors: *minimal-mistakes
|
||||
# - (macOS) /bin/bash --login
|
||||
# - (Linux/BSD) user login shell
|
||||
# - (Windows) powershell
|
||||
#shell:
|
||||
# program: /bin/bash
|
||||
shell:
|
||||
program: /bin/fish
|
||||
# args:
|
||||
# - --login
|
||||
|
||||
|
15
autostart/.config/autostart/jetbrains-toolbox.desktop
Executable file
15
autostart/.config/autostart/jetbrains-toolbox.desktop
Executable file
@ -0,0 +1,15 @@
|
||||
[Desktop Entry]
|
||||
Icon=/home/repo/.local/share/JetBrains/Toolbox/toolbox.svg
|
||||
Exec=/home/repo/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox --minimize
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Categories=Development
|
||||
Name=JetBrains Toolbox
|
||||
StartupWMClass=jetbrains-toolbox
|
||||
Terminal=false
|
||||
MimeType=x-scheme-handler/jetbrains;
|
||||
X-GNOME-Autostart-enabled=true
|
||||
StartupNotify=false
|
||||
X-GNOME-Autostart-Delay=10
|
||||
X-MATE-Autostart-Delay=10
|
||||
X-KDE-autostart-after=panel
|
0
clifm/.config/clifm/profiles/default/log.clifm
Normal file
0
clifm/.config/clifm/profiles/default/log.clifm
Normal file
Binary file not shown.
@ -19,10 +19,10 @@ if test -d "$HOME/.cargo/bin"
|
||||
set PATH "$HOME/.cargo/bin:$PATH"
|
||||
end
|
||||
|
||||
# Adds `~/.local/bin/repobar` to $PATH
|
||||
# Adds `~/.local/bin/flexiflow_bar` to $PATH
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if test -d "$HOME/.local/bin/repobar"
|
||||
set PATH "$HOME/.local/bin/repobar:$PATH"
|
||||
if test -d "$HOME/.local/bin/flexiflow_bar"
|
||||
set PATH "$HOME/.local/bin/flexiflow_bar:$PATH"
|
||||
end
|
||||
|
||||
# Adds `~/.local/bin/rofi` to $PATH
|
||||
|
10
fish/.config/fish/plugins/__fish_command_not_found.fish
Normal file
10
fish/.config/fish/plugins/__fish_command_not_found.fish
Normal file
@ -0,0 +1,10 @@
|
||||
# If an old handler already exists, defer to that.
|
||||
function fish_command_not_found
|
||||
if test -f /usr/libexec/pk-command-not-found
|
||||
/usr/libexec/pk-command-not-found $argv[1]
|
||||
end
|
||||
end
|
||||
|
||||
function __fish_command_not_found_handler --on-event fish_command_not_found
|
||||
fish_command_not_found $argv
|
||||
end
|
@ -1,2 +1,2 @@
|
||||
LastUsed=1691930658
|
||||
LastUsed=1692117428
|
||||
Message='Fully Updated'
|
@ -24,7 +24,7 @@ is_charging() {
|
||||
|
||||
battery() {
|
||||
# load colors
|
||||
. $HOME/.config/repobar/bar_themes/minimal-mistakes
|
||||
. $HOME/.config/flexiflow_bar/bar_themes/minimal-mistakes
|
||||
|
||||
battery_status=""
|
||||
if $(is_charging); then
|
@ -44,7 +44,7 @@ DaySuffix() {
|
||||
|
||||
clock() {
|
||||
# load colors
|
||||
. $HOME/.config/repobar/bar_themes/minimal-mistakes
|
||||
. $HOME/.config/flexiflow_bar/bar_themes/minimal-mistakes
|
||||
|
||||
icon_date=" "
|
||||
icon_time=" "
|
@ -2,7 +2,7 @@
|
||||
|
||||
cpu() {
|
||||
# load colors
|
||||
. $HOME/.config/repobar/bar_themes/minimal-mistakes
|
||||
. $HOME/.config/flexiflow_bar/bar_themes/minimal-mistakes
|
||||
|
||||
icon=" "
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
keyboard() {
|
||||
# load colors
|
||||
. $HOME/.config/repobar/bar_themes/minimal-mistakes
|
||||
. $HOME/.config/flexiflow_bar/bar_themes/minimal-mistakes
|
||||
|
||||
icon=" "
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
network() {
|
||||
# load colors
|
||||
. $HOME/.config/repobar/bar_themes/minimal-mistakes
|
||||
. $HOME/.config/flexiflow_bar/bar_themes/minimal-mistakes
|
||||
|
||||
R1=$(cat /sys/class/net/wlan0/statistics/rx_bytes)
|
||||
T1=$(cat /sys/class/net/wlan0/statistics/tx_bytes)
|
@ -2,7 +2,7 @@
|
||||
|
||||
ram() {
|
||||
# load colors
|
||||
. $HOME/.config/repobar/bar_themes/minimal-mistakes
|
||||
. $HOME/.config/flexiflow_bar/bar_themes/minimal-mistakes
|
||||
|
||||
icon=" "
|
||||
|
@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
get_updates() {
|
||||
configFile=$HOME/.config/repowm/repobar/bar_updates.ini
|
||||
configFile=$HOME/.config/repowm/flexiflow_bar/bar_updates.ini
|
||||
|
||||
# load colors
|
||||
. $HOME/.config/repobar/bar_themes/minimal-mistakes
|
||||
. $HOME/.config/flexiflow_bar/bar_themes/minimal-mistakes
|
||||
|
||||
updates=$(yay -Pn)
|
||||
timestamp=$(date +%s)
|
@ -2,7 +2,7 @@
|
||||
|
||||
volume_alsa() {
|
||||
# load colors
|
||||
. $HOME/.config/repobar/bar_themes/minimal-mistakes
|
||||
. $HOME/.config/flexiflow_bar/bar_themes/minimal-mistakes
|
||||
|
||||
analog=$(pamixer --list-sinks | grep analog | awk '{ print $2 }' | sed 's/"//g')
|
||||
hdmi=$(pamixer --list-sinks | grep hdmi | awk '{ print $2 }' | sed 's/"//g')
|
32
flexiflow_bar/.local/bin/flexiflow_bar/bar_weather
Executable file
32
flexiflow_bar/.local/bin/flexiflow_bar/bar_weather
Executable file
@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
weather() {
|
||||
configFile=$HOME/.config/repowm/flexiflow_bar/bar_weather.ini
|
||||
|
||||
timestamp=$(date +%s)
|
||||
icon=""
|
||||
[[ -f $configFile ]] && . $configFile
|
||||
if [ -z "$LastUsed" ] || [ -z "$Message" ]; then
|
||||
weather=$(ansiweather | awk '{print $4 $5}')
|
||||
printf " %s %s \n" "$icon" "$weather"
|
||||
newtime=$(expr $timestamp + 900)
|
||||
echo -e "LastUsed=${newtime}\nMessage='${weather}'" >$configFile
|
||||
else
|
||||
if [ "$Message" == "weatherdata" ]; then
|
||||
weather=$(ansiweather | awk '{print $4 $5}')
|
||||
printf " %s %s \n" "$icon" "$weather"
|
||||
newtime=$(expr $timestamp + 900)
|
||||
echo -e "LastUsed=${newtime}\nMessage='${weather}'" >$configFile
|
||||
else
|
||||
if [ "$timestamp" -ge "$LastUsed" ]; then
|
||||
weather=$(ansiweather | awk '{print $4 $5}')
|
||||
printf " %s %s \n" "$icon" "$weather"
|
||||
newtime=$(expr $timestamp + 900)
|
||||
echo -e "LastUsed=${newtime}\nMessage='${weather}'" >$configFile
|
||||
else
|
||||
printf " %s %s \n" "$icon" "$Message"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
weather
|
@ -1,6 +1,6 @@
|
||||
file:///run/media/repo/500GB/.aur .aur
|
||||
file:///mnt/500GB/.aur .aur
|
||||
file:///home/repo/.cache .cache
|
||||
file:///home/repo/.config .config
|
||||
file:///home/repo/.local .local
|
||||
file:///run/media/repo/500GB/.gitlabs .gitlabs
|
||||
file:///run/media/repo/500GB/IOS IOS
|
||||
file:///mnt/500GB/.gitlabs .gitlabs
|
||||
file:///mnt/500GB/IOS IOS
|
||||
|
@ -659,9 +659,9 @@ for_window [class="(?i)steam_app_271590"] fullscreen enable
|
||||
|
||||
# {{{ Audio Settings
|
||||
|
||||
bindsym XF86AudioRaiseVolume $exe "amixer -D pulse sset Master '5%+'"
|
||||
bindsym XF86AudioLowerVolume $exe "amixer -D pulse sset Master '5%-'"
|
||||
bindsym XF86AudioMute $exe "amixer -D pulse set Master toggle"
|
||||
bindsym XF86AudioRaiseVolume $exe "amixer sset Master '5%+'"
|
||||
bindsym XF86AudioLowerVolume $exe "amixer sset Master '5%-'"
|
||||
bindsym XF86AudioMute $exe "amixer set Master toggle"
|
||||
#https://github.com/acrisci/playerctl/
|
||||
bindsym XF86AudioPlay $exe playerctl play-pause
|
||||
bindsym XF86AudioNext $exe playerctl next
|
||||
@ -676,8 +676,8 @@ bindsym XF86AudioStop $exe playerctl stop
|
||||
|
||||
# {{{ xbacklight
|
||||
|
||||
bindsym XF86MonBrightnessUp $exe xbacklight -inc 10 # increase screen brightness
|
||||
bindsym XF86MonBrightnessDown $exe xbacklight -dec 10 # decrease screen brightness
|
||||
bindsym XF86MonBrightnessUp $exe brightnessctl set 5%+ # increase screen brightness
|
||||
bindsym XF86MonBrightnessDown $exe brightnessctl set 5%- # decrease screen brightness
|
||||
|
||||
# }}} xbacklight
|
||||
|
||||
@ -726,11 +726,11 @@ $super_b+y \
|
||||
$super_b+u \
|
||||
border none
|
||||
|
||||
new_window pixel 10
|
||||
new_window pixel 5
|
||||
#new_window normal
|
||||
#new_window none
|
||||
|
||||
new_float pixel 10
|
||||
new_float pixel 5
|
||||
#new_float normal
|
||||
#new_float none
|
||||
|
||||
|
@ -1,26 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
updates() {
|
||||
configFile=$HOME/.config/repowm/repobar/bar_updates.ini
|
||||
configFile=$HOME/.config/repowm/flexiflow_bar/bar_updates.ini
|
||||
|
||||
timestamp=$(date +%s)
|
||||
icon=" "
|
||||
[[ -f $configFile ]] && . $configFile
|
||||
if [ -z "$LastUsed" ] || [ -z "$Message" ]; then
|
||||
updates=$(checkupdates | wc -l)
|
||||
printf "%s%s\n" "%{F#1E222A}%{B#EBD369}$icon %{F-}%{B-}" "%{F#282A36}%{B#C4C7C5}$updates Updates %{F-}%{B-}"
|
||||
newtime=`expr $timestamp + 900`
|
||||
echo -e "LastUsed=${newtime}\nMessage='${updates}'" > $configFile
|
||||
timestamp=$(date +%s)
|
||||
icon=" "
|
||||
[[ -f $configFile ]] && . $configFile
|
||||
if [ -z "$LastUsed" ] || [ -z "$Message" ]; then
|
||||
updates=$(checkupdates | wc -l)
|
||||
printf "%s%s\n" "%{F#1E222A}%{B#EBD369}$icon %{F-}%{B-}" "%{F#282A36}%{B#C4C7C5}$updates Updates %{F-}%{B-}"
|
||||
newtime=$(expr $timestamp + 900)
|
||||
echo -e "LastUsed=${newtime}\nMessage='${updates}'" >$configFile
|
||||
else
|
||||
if [ "$timestamp" -ge "$LastUsed" ]; then
|
||||
updates=$(checkupdates | wc -l)
|
||||
printf "%s%s\n" "%{F#1E222A}%{B#EBD369}$icon %{F-}%{B-}" "%{F#282A36}%{B#C4C7C5}$updates Updates %{F-}%{B-}"
|
||||
newtime=$(expr $timestamp + 900)
|
||||
echo -e "LastUsed=${newtime}\nMessage='${updates}'" >$configFile
|
||||
else
|
||||
if [ "$timestamp" -ge "$LastUsed" ]; then
|
||||
updates=$(checkupdates | wc -l)
|
||||
printf "%s%s\n" "%{F#1E222A}%{B#EBD369}$icon %{F-}%{B-}" "%{F#282A36}%{B#C4C7C5}$updates Updates %{F-}%{B-}"
|
||||
newtime=`expr $timestamp + 900`
|
||||
echo -e "LastUsed=${newtime}\nMessage='${updates}'" > $configFile
|
||||
else
|
||||
updates=" $Message"
|
||||
printf "%s%s\n" "%{F#1E222A}%{B#EBD369}$icon %{F-}%{B-}" "%{F#282A36}%{B#C4C7C5}$updates Updates %{F-}%{B-}"
|
||||
fi
|
||||
updates=" $Message"
|
||||
printf "%s%s\n" "%{F#1E222A}%{B#EBD369}$icon %{F-}%{B-}" "%{F#282A36}%{B#C4C7C5}$updates Updates %{F-}%{B-}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
updates
|
||||
|
@ -1,33 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
weather() {
|
||||
configFile=$HOME/.config/repowm/repobar/bar_weather.ini
|
||||
configFile=$HOME/.config/repowm/flexiflow_bar/bar_weather.ini
|
||||
|
||||
timestamp=$(date +%s)
|
||||
icon=""
|
||||
[[ -f $configFile ]] && . $configFile
|
||||
if [ -z "$LastUsed" ] || [ -z "$Message" ]; then
|
||||
timestamp=$(date +%s)
|
||||
icon=""
|
||||
[[ -f $configFile ]] && . $configFile
|
||||
if [ -z "$LastUsed" ] || [ -z "$Message" ]; then
|
||||
weather=$(ansiweather | awk '{print $4 $5}')
|
||||
printf " %s %s \n" "$icon" "$weather"
|
||||
newtime=$(expr $timestamp + 900)
|
||||
echo -e "LastUsed=${newtime}\nMessage='${weather}'" >$configFile
|
||||
else
|
||||
if [ "$Message" == "weatherdata" ]; then
|
||||
weather=$(ansiweather | awk '{print $4 $5}')
|
||||
printf " %s %s \n" "$icon" "$weather"
|
||||
newtime=$(expr $timestamp + 900)
|
||||
echo -e "LastUsed=${newtime}\nMessage='${weather}'" >$configFile
|
||||
else
|
||||
if [ "$timestamp" -ge "$LastUsed" ]; then
|
||||
weather=$(ansiweather | awk '{print $4 $5}')
|
||||
printf " %s %s \n" "$icon" "$weather"
|
||||
newtime=`expr $timestamp + 900`
|
||||
echo -e "LastUsed=${newtime}\nMessage='${weather}'" > $configFile
|
||||
else
|
||||
if [ "$Message" == "weatherdata" ]; then
|
||||
weather=$(ansiweather | awk '{print $4 $5}')
|
||||
printf " %s %s \n" "$icon" "$weather"
|
||||
newtime=`expr $timestamp + 900`
|
||||
echo -e "LastUsed=${newtime}\nMessage='${weather}'" > $configFile
|
||||
else
|
||||
if [ "$timestamp" -ge "$LastUsed" ]; then
|
||||
weather=$(ansiweather | awk '{print $4 $5}')
|
||||
printf " %s %s \n" "$icon" "$weather"
|
||||
newtime=`expr $timestamp + 900`
|
||||
echo -e "LastUsed=${newtime}\nMessage='${weather}'" > $configFile
|
||||
else
|
||||
printf " %s %s \n" "$icon" "$Message"
|
||||
fi
|
||||
fi
|
||||
newtime=$(expr $timestamp + 900)
|
||||
echo -e "LastUsed=${newtime}\nMessage='${weather}'" >$configFile
|
||||
else
|
||||
printf " %s %s \n" "$icon" "$Message"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
weather
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#Created:
|
||||
# Mon 22 November 2021, 03:15:54 PM [GMT+1]
|
||||
#Modified:
|
||||
# Sun 13 August 2023, 08:40:20 PM [GMT+1]
|
||||
# Mon 14 August 2023, 05:30:34 PM [GMT+1]
|
||||
#
|
||||
#Description:
|
||||
# <Todo>
|
||||
@ -160,17 +160,17 @@ else
|
||||
echo "touchpad-indicator could not be found"
|
||||
fi
|
||||
|
||||
if command -v cbatticon &>/dev/null; then
|
||||
if ! pgrep -x "cbatticon" >/dev/null; then
|
||||
if command -v battray &>/dev/null; then
|
||||
if ! pgrep -x "battray" >/dev/null; then
|
||||
(
|
||||
sleep 2s
|
||||
cbatticon
|
||||
battray
|
||||
) &
|
||||
else
|
||||
echo "cbatticon already Running"
|
||||
echo "battray already Running"
|
||||
fi
|
||||
else
|
||||
echo "cbatticon could not be found"
|
||||
echo "battray could not be found"
|
||||
fi
|
||||
|
||||
if command -v pasystray &>/dev/null; then
|
||||
@ -186,17 +186,17 @@ else
|
||||
echo "pasystray could not be found"
|
||||
fi
|
||||
|
||||
if command -v gufwicon &>/dev/null; then
|
||||
if ! pgrep -x "gufwicon" >/dev/null; then
|
||||
if command -v firewall-applet &>/dev/null; then
|
||||
if ! pgrep -x "firewall-applet" >/dev/null; then
|
||||
(
|
||||
sleep 5s
|
||||
gufwicon
|
||||
firewall-applet
|
||||
) &
|
||||
else
|
||||
echo "gufwicon already Running"
|
||||
echo "firewall-applet already Running"
|
||||
fi
|
||||
else
|
||||
echo "gufwicon could not be found"
|
||||
echo "firewall-applet could not be found"
|
||||
fi
|
||||
|
||||
if command -v numlockx &>/dev/null; then
|
||||
|
@ -165,6 +165,7 @@ rounded-corners-exclude = [
|
||||
"class_g = 'repowm'",
|
||||
"class_g = 'repowmsystray'",
|
||||
"class_g = 'scratchpad_terminal'",
|
||||
"class_g = 'Software Management - dnfdragora'",
|
||||
"QTILE_INTERNAL:32c = 1"
|
||||
];
|
||||
|
||||
|
@ -84,7 +84,7 @@ class Commands(object):
|
||||
passmenu = "passmenu"
|
||||
|
||||
autostart = ["autostart"]
|
||||
configure = ["youtube_subs -d"]
|
||||
configure = ["youtube_subs -d", "autorandr --load qtile"]
|
||||
|
||||
|
||||
##################
|
||||
@ -121,16 +121,16 @@ keys = [
|
||||
Key([MOD, SHIFT], "Return", lazy.spawn(Commands.files), desc="Launch files"),
|
||||
Key([MOD], "b", lazy.spawn(Commands.btop), desc="Launch btop"),
|
||||
# Audio Settings
|
||||
Key([], "XF86AudioMute", lazy.spawn("amixer -D pulse set Master toggle")),
|
||||
Key([], "XF86AudioMute", lazy.spawn("amixer set Master toggle")),
|
||||
Key(
|
||||
[],
|
||||
"XF86AudioLowerVolume",
|
||||
lazy.spawn("amixer -D pulse sset Master '5%-' unmute"),
|
||||
lazy.spawn("amixer set Master '5%-' unmute"),
|
||||
),
|
||||
Key(
|
||||
[],
|
||||
"XF86AudioRaiseVolume",
|
||||
lazy.spawn("amixer -D pulse sset Master '5%+' unmute"),
|
||||
lazy.spawn("amixer set Master '5%+' unmute"),
|
||||
),
|
||||
# https://github.com/acrisci/playerctl/
|
||||
Key([], "XF86AudioPlay", lazy.spawn("playerctl play-pause")),
|
||||
@ -138,8 +138,8 @@ keys = [
|
||||
Key([], "XF86AudioPrev", lazy.spawn("playerctl previous")),
|
||||
Key([], "XF86AudioStop", lazy.spawn("playerctl stop")),
|
||||
# xBacklight
|
||||
Key([], "XF86MonBrightnessUp", lazy.spawn("xbacklight +10")),
|
||||
Key([], "XF86MonBrightnessDown", lazy.spawn("xbacklight -10")),
|
||||
Key([], "XF86MonBrightnessUp", lazy.spawn("brightnessctl set 5%+")),
|
||||
Key([], "XF86MonBrightnessDown", lazy.spawn("brightnessctl set 5%-")),
|
||||
]
|
||||
|
||||
keys.extend(
|
||||
|
@ -6,104 +6,123 @@ class Groups(object):
|
||||
groups = [
|
||||
# first group that hold the terminals
|
||||
Group(
|
||||
label='一',
|
||||
label="一",
|
||||
init=True,
|
||||
persist=True,
|
||||
exclusive=False,
|
||||
matches=[Match(wm_class=re.compile('^Alacritty.*|^Kitty.*', re.IGNORECASE))],
|
||||
layout='monadthreecol',
|
||||
matches=[
|
||||
Match(wm_class=re.compile("^Alacritty.*|^Kitty.*", re.IGNORECASE))
|
||||
],
|
||||
layout="monadthreecol",
|
||||
position=1,
|
||||
screen_affinity=1,
|
||||
name='1',
|
||||
name="1",
|
||||
),
|
||||
Group(
|
||||
label='二',
|
||||
label="二",
|
||||
init=True,
|
||||
persist=True,
|
||||
exclusive=False,
|
||||
matches=[Match(wm_class=re.compile('^Code.*|^Jetbrains.*', re.IGNORECASE))],
|
||||
matches=[Match(wm_class=re.compile("^Code.*|^Jetbrains.*", re.IGNORECASE))],
|
||||
position=2,
|
||||
screen_affinity=1,
|
||||
name='2',
|
||||
name="2",
|
||||
),
|
||||
Group(
|
||||
label='三',
|
||||
label="三",
|
||||
init=True,
|
||||
persist=True,
|
||||
exclusive=False,
|
||||
matches=[Match(wm_class=re.compile('^Nemo.*', re.IGNORECASE))],
|
||||
matches=[Match(wm_class=re.compile("^Nemo.*", re.IGNORECASE))],
|
||||
position=3,
|
||||
screen_affinity=1,
|
||||
name='3',
|
||||
name="3",
|
||||
),
|
||||
Group(
|
||||
label='四',
|
||||
label="四",
|
||||
init=True,
|
||||
persist=True,
|
||||
exclusive=False,
|
||||
matches=[Match(wm_class=re.compile('^Aseprite.*|^Krita.*', re.IGNORECASE))],
|
||||
matches=[Match(wm_class=re.compile("^Aseprite.*|^Krita.*", re.IGNORECASE))],
|
||||
position=4,
|
||||
screen_affinity=1,
|
||||
name='4',
|
||||
name="4",
|
||||
),
|
||||
Group(
|
||||
label='五',
|
||||
label="五",
|
||||
init=True,
|
||||
persist=True,
|
||||
exclusive=False,
|
||||
matches=[Match(wm_class=re.compile('^CmusImage.*', re.IGNORECASE))],
|
||||
matches=[Match(wm_class=re.compile("^CmusImage.*", re.IGNORECASE))],
|
||||
position=5,
|
||||
screen_affinity=1,
|
||||
name='5',
|
||||
name="5",
|
||||
),
|
||||
Group(
|
||||
label='六',
|
||||
label="六",
|
||||
init=True,
|
||||
persist=True,
|
||||
exclusive=False,
|
||||
matches=[Match(wm_class=re.compile('^Firefox.*|^Brave.*', re.IGNORECASE), role=['browser'])],
|
||||
matches=[
|
||||
Match(
|
||||
wm_class=re.compile("^Firefox.*|^Brave.*", re.IGNORECASE),
|
||||
role=["browser"],
|
||||
)
|
||||
],
|
||||
position=6,
|
||||
screen_affinity=2,
|
||||
name='6',
|
||||
name="6",
|
||||
),
|
||||
Group(
|
||||
label='七',
|
||||
label="七",
|
||||
init=True,
|
||||
persist=True,
|
||||
exclusive=False,
|
||||
matches=[Match(wm_class=re.compile('^Mail.*|^Thunderbird.*', re.IGNORECASE))],
|
||||
matches=[
|
||||
Match(wm_class=re.compile("^Mail.*|^Thunderbird.*", re.IGNORECASE))
|
||||
],
|
||||
position=7,
|
||||
screen_affinity=2,
|
||||
name='7',
|
||||
name="7",
|
||||
),
|
||||
Group(
|
||||
label='八',
|
||||
label="八",
|
||||
init=True,
|
||||
persist=True,
|
||||
exclusive=False,
|
||||
matches=[Match(wm_class=re.compile('^Steam.*|^Minecraft.*|^0ad.*', re.IGNORECASE))],
|
||||
matches=[
|
||||
Match(
|
||||
wm_class=re.compile("^Steam.*|^Minecraft.*|^0ad.*", re.IGNORECASE)
|
||||
)
|
||||
],
|
||||
position=8,
|
||||
screen_affinity=2,
|
||||
name='8',
|
||||
name="8",
|
||||
),
|
||||
Group(
|
||||
label='九',
|
||||
label="九",
|
||||
init=True,
|
||||
persist=True,
|
||||
exclusive=False,
|
||||
matches=[Match(wm_class=re.compile('^Discord.*', re.IGNORECASE))],
|
||||
matches=[Match(wm_class=re.compile("^Discord.*", re.IGNORECASE))],
|
||||
position=9,
|
||||
screen_affinity=2,
|
||||
name='9',
|
||||
name="9",
|
||||
),
|
||||
Group(
|
||||
label='零',
|
||||
label="零",
|
||||
init=True,
|
||||
persist=True,
|
||||
exclusive=False,
|
||||
matches=[Match(wm_class=re.compile('^PkgBrowser.*|^Virt.*|^Btop.*', re.IGNORECASE))],
|
||||
matches=[
|
||||
Match(
|
||||
wm_class=re.compile(
|
||||
"^Software Management.*|^Virt.*|^Btop.*", re.IGNORECASE
|
||||
)
|
||||
)
|
||||
],
|
||||
position=10,
|
||||
screen_affinity=2,
|
||||
name='0',
|
||||
name="0",
|
||||
),
|
||||
]
|
||||
|
@ -7,7 +7,6 @@ from colors import colorScheme, foregroundColor, backgroundColor
|
||||
|
||||
|
||||
class Widgets(object):
|
||||
|
||||
sep = widget.Sep(
|
||||
linewidth=1,
|
||||
padding=10,
|
||||
@ -18,17 +17,20 @@ class Widgets(object):
|
||||
space = widget.Spacer()
|
||||
|
||||
launcher = widget.Image(
|
||||
fmt='{}',
|
||||
filename=expanduser('~/.config/qtile/art/Archlinux-icon.svg'),
|
||||
fmt="{}",
|
||||
filename=expanduser("~/.config/qtile/art/Archlinux-icon.svg"),
|
||||
margin=3,
|
||||
mouse_callbacks={'Button1': lazy.spawn('menu')},
|
||||
mouse_callbacks={
|
||||
"Button1": lazy.spawn("menu"),
|
||||
"Button3": lazy.spawn("rofi -show drun"),
|
||||
},
|
||||
)
|
||||
|
||||
power1 = widget.LaunchBar(
|
||||
text_only=True,
|
||||
foreground=colorScheme[1],
|
||||
progs=[
|
||||
('⏻ ', 'rofi -show powermenu -config ~/.config/rofi/powermenu.rasi'),
|
||||
("⏻ ", "rofi -show powermenu -config ~/.config/rofi/powermenu.rasi"),
|
||||
],
|
||||
)
|
||||
|
||||
@ -36,7 +38,7 @@ class Widgets(object):
|
||||
text_only=True,
|
||||
foreground=colorScheme[1],
|
||||
progs=[
|
||||
('⏻ ', 'rofi -show powermenu -config ~/.config/rofi/powermenu.rasi'),
|
||||
("⏻ ", "rofi -show powermenu -config ~/.config/rofi/powermenu.rasi"),
|
||||
],
|
||||
)
|
||||
|
||||
@ -105,65 +107,65 @@ class Widgets(object):
|
||||
)
|
||||
|
||||
volume = widget.Volume(
|
||||
fmt='Vol: {}',
|
||||
fmt="Vol: {}",
|
||||
foreground=colorScheme[2],
|
||||
padding=10,
|
||||
)
|
||||
|
||||
battery = widget.Battery(
|
||||
fmt='Bat: {}',
|
||||
fmt="Bat: {}",
|
||||
foreground=colorScheme[3],
|
||||
padding=10,
|
||||
format='{char} {percent:2.0%} {hour:d}:{min:02d} {watt:.2f} W',
|
||||
format="{char} {percent:2.0%} {hour:d}:{min:02d} {watt:.2f} W",
|
||||
)
|
||||
|
||||
backlight = widget.Backlight(
|
||||
fmt='Backlight: {}',
|
||||
fmt="Backlight: {}",
|
||||
foreground=colorScheme[4],
|
||||
padding=10,
|
||||
backlight_name="intel_backlight",
|
||||
)
|
||||
|
||||
net = widget.Net(
|
||||
fmt='{}',
|
||||
fmt="{}",
|
||||
foreground=colorScheme[5],
|
||||
padding=10,
|
||||
interface="wlp0s20f3",
|
||||
)
|
||||
|
||||
date = widget.Clock(
|
||||
fmt=' {}',
|
||||
fmt=" {}",
|
||||
foreground=colorScheme[6],
|
||||
format='%d %B %Y',
|
||||
format="%d %B %Y",
|
||||
padding=10,
|
||||
)
|
||||
|
||||
time = widget.Clock(
|
||||
fmt=' {}',
|
||||
fmt=" {}",
|
||||
foreground=colorScheme[6],
|
||||
format='%I:%M %p',
|
||||
format="%I:%M %p",
|
||||
padding=10,
|
||||
)
|
||||
|
||||
tray = widget.Systray(
|
||||
fmt='{}',
|
||||
fmt="{}",
|
||||
padding=5,
|
||||
)
|
||||
|
||||
currentLayout1 = widget.CurrentLayoutIcon(
|
||||
fmt='{}',
|
||||
fmt="{}",
|
||||
scale=0.7,
|
||||
padding=5,
|
||||
)
|
||||
|
||||
currentLayout2 = widget.CurrentLayoutIcon(
|
||||
fmt='{}',
|
||||
fmt="{}",
|
||||
scale=0.7,
|
||||
padding=5,
|
||||
)
|
||||
|
||||
chords = widget.Chord(
|
||||
fmt='{}',
|
||||
fmt="{}",
|
||||
chords_colors={
|
||||
"Resize Windows": (colorScheme[0], colorScheme[1]),
|
||||
"Launch Game": (colorScheme[0], colorScheme[2]),
|
||||
@ -173,30 +175,34 @@ class Widgets(object):
|
||||
)
|
||||
|
||||
weather = widget.OpenWeather(
|
||||
fmt='{}',
|
||||
fmt="{}",
|
||||
foreground=colorScheme[9],
|
||||
location='Darlington,UK',
|
||||
format='{location_city}: {main_temp}°{units_temperature} ',
|
||||
location="Darlington,UK",
|
||||
format="{location_city}: {main_temp}°{units_temperature} ",
|
||||
)
|
||||
|
||||
updates = widget.CheckUpdates(
|
||||
fmt='{}',
|
||||
fmt="{}",
|
||||
colour_have_updates=colorScheme[2],
|
||||
colour_no_updates=colorScheme[1],
|
||||
padding=10,
|
||||
distro='Arch_checkupdates',
|
||||
no_update_string='Fully Updated!',
|
||||
distro="Fedora",
|
||||
no_update_string="Fully Updated!",
|
||||
mouse_callbacks={
|
||||
'Button1': lazy.spawn('pkgbrowser'),
|
||||
"Button1": lazy.spawn("dnfdragora"),
|
||||
},
|
||||
)
|
||||
|
||||
picom = widget.GenPollText(
|
||||
fmt='{}',
|
||||
fmt="{}",
|
||||
foreground=colorScheme[11],
|
||||
func=lambda: subprocess.check_output(expanduser("~/.config/qtile/scripts/picom.sh")).decode("utf-8"),
|
||||
func=lambda: subprocess.check_output(
|
||||
expanduser("~/.config/qtile/scripts/picom.sh")
|
||||
).decode("utf-8"),
|
||||
mouse_callbacks={
|
||||
'Button1': lambda: subprocess.run(expanduser("~/.config/qtile/scripts/picom-toggle.sh")),
|
||||
"Button1": lambda: subprocess.run(
|
||||
expanduser("~/.config/qtile/scripts/picom-toggle.sh")
|
||||
),
|
||||
},
|
||||
update_interval=1,
|
||||
padding=10,
|
||||
@ -206,55 +212,67 @@ class Widgets(object):
|
||||
foreground=colorScheme[12],
|
||||
widgets=[
|
||||
widget.GenPollText(
|
||||
fmt='{}',
|
||||
fmt="{}",
|
||||
foreground=colorScheme[13],
|
||||
func=lambda: subprocess.check_output(expanduser("~/.config/qtile/scripts/github/notifications")).decode("utf-8"),
|
||||
func=lambda: subprocess.check_output(
|
||||
expanduser("~/.config/qtile/scripts/github/notifications")
|
||||
).decode("utf-8"),
|
||||
update_interval=10,
|
||||
padding=10,
|
||||
),
|
||||
widget.GenPollText(
|
||||
fmt='{}',
|
||||
fmt="{}",
|
||||
foreground=colorScheme[13],
|
||||
func=lambda: subprocess.check_output(expanduser("~/.config/qtile/scripts/github/gists")).decode("utf-8"),
|
||||
func=lambda: subprocess.check_output(
|
||||
expanduser("~/.config/qtile/scripts/github/gists")
|
||||
).decode("utf-8"),
|
||||
update_interval=10,
|
||||
padding=10,
|
||||
),
|
||||
widget.GenPollText(
|
||||
fmt='{}',
|
||||
fmt="{}",
|
||||
foreground=colorScheme[13],
|
||||
func=lambda: subprocess.check_output(expanduser("~/.config/qtile/scripts/github/repositories")).decode("utf-8"),
|
||||
func=lambda: subprocess.check_output(
|
||||
expanduser("~/.config/qtile/scripts/github/repositories")
|
||||
).decode("utf-8"),
|
||||
update_interval=10,
|
||||
padding=10,
|
||||
),
|
||||
],
|
||||
text_closed='[Github <]',
|
||||
text_open='[Github >]',
|
||||
text_closed="[Github <]",
|
||||
text_open="[Github >]",
|
||||
)
|
||||
|
||||
github2 = widget.WidgetBox(
|
||||
widgets=[
|
||||
widget.GenPollText(
|
||||
fmt='{}',
|
||||
fmt="{}",
|
||||
foreground=colorScheme[13],
|
||||
func=lambda: subprocess.check_output(expanduser("~/.config/qtile/scripts/github/notifications")).decode("utf-8"),
|
||||
func=lambda: subprocess.check_output(
|
||||
expanduser("~/.config/qtile/scripts/github/notifications")
|
||||
).decode("utf-8"),
|
||||
update_interval=10,
|
||||
padding=10,
|
||||
),
|
||||
widget.GenPollText(
|
||||
fmt='{}',
|
||||
fmt="{}",
|
||||
foreground=colorScheme[13],
|
||||
func=lambda: subprocess.check_output(expanduser("~/.config/qtile/scripts/github/gists")).decode("utf-8"),
|
||||
func=lambda: subprocess.check_output(
|
||||
expanduser("~/.config/qtile/scripts/github/gists")
|
||||
).decode("utf-8"),
|
||||
update_interval=10,
|
||||
padding=10,
|
||||
),
|
||||
widget.GenPollText(
|
||||
fmt='{}',
|
||||
fmt="{}",
|
||||
foreground=colorScheme[13],
|
||||
func=lambda: subprocess.check_output(expanduser("~/.config/qtile/scripts/github/repositories")).decode("utf-8"),
|
||||
func=lambda: subprocess.check_output(
|
||||
expanduser("~/.config/qtile/scripts/github/repositories")
|
||||
).decode("utf-8"),
|
||||
update_interval=10,
|
||||
padding=10,
|
||||
),
|
||||
],
|
||||
text_closed='[Github <]',
|
||||
text_open='[Github >]',
|
||||
)
|
||||
text_closed="[Github <]",
|
||||
text_open="[Github >]",
|
||||
)
|
||||
|
@ -1,33 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
weather() {
|
||||
configFile=$HOME/.config/repowm/repobar/bar_weather.ini
|
||||
|
||||
timestamp=$(date +%s)
|
||||
icon=""
|
||||
[[ -f $configFile ]] && . $configFile
|
||||
if [ -z "$LastUsed" ] || [ -z "$Message" ]; then
|
||||
weather=$(ansiweather | awk '{print $4 $5}')
|
||||
printf " %s %s \n" "$icon" "$weather"
|
||||
newtime=`expr $timestamp + 900`
|
||||
echo -e "LastUsed=${newtime}\nMessage='${weather}'" > $configFile
|
||||
else
|
||||
if [ "$Message" == "weatherdata" ]; then
|
||||
weather=$(ansiweather | awk '{print $4 $5}')
|
||||
printf " %s %s \n" "$icon" "$weather"
|
||||
newtime=`expr $timestamp + 900`
|
||||
echo -e "LastUsed=${newtime}\nMessage='${weather}'" > $configFile
|
||||
else
|
||||
if [ "$timestamp" -ge "$LastUsed" ]; then
|
||||
weather=$(ansiweather | awk '{print $4 $5}')
|
||||
printf " %s %s \n" "$icon" "$weather"
|
||||
newtime=`expr $timestamp + 900`
|
||||
echo -e "LastUsed=${newtime}\nMessage='${weather}'" > $configFile
|
||||
else
|
||||
printf " %s %s \n" "$icon" "$Message"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
weather
|
||||
|
@ -1,10 +0,0 @@
|
||||
{
|
||||
"clipmenucmd": "clipmenu -i -w 500 -h 50 -c",
|
||||
"settingscmd": "repomenue_settings",
|
||||
"passmenucmd": "repomenue_pass -c -ps 0 -l 20 -w -600 -i -h -1",
|
||||
"powermenucmd": "repomenue_powermenu",
|
||||
"repomenucmd": "repomenu_run",
|
||||
"smartmenucmd": "repomenue_smartrun",
|
||||
"startmenucmd": "repomenu_desktop",
|
||||
"systemmonitorcmd": "repoopen btop"
|
||||
}
|
@ -0,0 +1 @@
|
||||
/usr/lib/systemd/user/gnome-keyring-daemon.service
|
@ -0,0 +1 @@
|
||||
/usr/lib/systemd/user/gnome-keyring-daemon.socket
|
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
userresources=$HOME/.Xresources
|
||||
usermodmap=$HOME/.Xmodmap
|
||||
|
@ -1,25 +0,0 @@
|
||||
# Sample .profile for SUSE Linux
|
||||
# rewritten by Christian Steinruecken <cstein@suse.de>
|
||||
#
|
||||
# This file is read each time a login shell is started.
|
||||
# All other interactive shells will only read .bashrc; this is particularly
|
||||
# important for language settings, see below.
|
||||
|
||||
test -z "$PROFILEREAD" && . /etc/profile || true
|
||||
|
||||
# Some applications read the EDITOR variable to determine your favourite text
|
||||
# editor. So uncomment the line below and enter the editor of your choice :-)
|
||||
#export EDITOR=/usr/bin/vim
|
||||
#export EDITOR=/usr/bin/mcedit
|
||||
|
||||
# For some news readers it makes sense to specify the NEWSSERVER variable here
|
||||
#export NEWSSERVER=your.news.server
|
||||
|
||||
# Some people don't like fortune. If you uncomment the following lines,
|
||||
# you will have a fortune each time you log in ;-)
|
||||
|
||||
#if [ -x /usr/bin/fortune ] ; then
|
||||
# echo
|
||||
# /usr/bin/fortune
|
||||
# echo
|
||||
#fi
|
Loading…
Reference in New Issue
Block a user