summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--baguette21
-rw-r--r--fluorite/config_fluorite.h169
-rw-r--r--fontconfig/fonts.conf4
-rw-r--r--htop/htoprc6
-rw-r--r--redshift/redshift.conf2
-rwxr-xr-xscripts/bar2
-rwxr-xr-xscripts/glitchlock2
-rw-r--r--scripts/icstocal.c22
-rwxr-xr-xsx/sxrc10
-rwxr-xr-xsx/sxrc.b9
-rw-r--r--sxhkd/sxhkdrc2
11 files changed, 236 insertions, 13 deletions
diff --git a/baguette b/baguette
new file mode 100644
index 0000000..93052e3
--- /dev/null
+++ b/baguette
@@ -0,0 +1,21 @@
+ ..
+ -=**#%*
+ :+=+*#%@@-
+ :=-+##%@@%
+ ===*#%%@@:
+ -=++#%%@@=
+ :+-=#%#@@*
+ =*=+=##%@#
+ =*=+=*#%@#
+ .*-***##%%
+ ==-**#%%%.
+ .+-=##%%%:
+ :-==*@%@%:
+ :*==++%%@%-
+ .#===+*%%%=
+ *+=+*#%@@=
+ -+=*%%%@@+
+ :+==%@@%@*
+ =%=*%%%%*
+ -#=*%##*
+ -*##*+
diff --git a/fluorite/config_fluorite.h b/fluorite/config_fluorite.h
new file mode 100644
index 0000000..a2ed4e1
--- /dev/null
+++ b/fluorite/config_fluorite.h
@@ -0,0 +1,169 @@
+#include <X11/X.h>
+#include <X11/keysym.h>
+#include <X11/XF86keysym.h>
+#include <stdlib.h>
+
+#define BORDER_WIDTH 3 /* Border width around windows */
+#define BORDER_FOCUSED 0x7287fd /* Selected window's border color */
+#define BORDER_UNFOCUSED 0x1e1e2e /* Selectable window's border color */
+#define BORDER_INACTIVE 0x11111b /* Unselectable window's border color */
+#define GAPS 5 /* gaps around the window */
+#define STACK_OFFSET 5 /* how the stacked window are separated */
+#define TOPBAR_GAPS 30 /* gaps for the top bar */
+#define BOTTOMBAR_GAPS 0 /* gaps for the bottom bar */
+#define DEFAULT_MASTER_OFFSET 0 /* master window size by default */
+#define METAKEY Mod4Mask /* key that will be used for bindings */
+#define FOLLOW_WINDOWS True /* do you want to change workspace when sending a window to another workspace */
+#define MAX_WINDOWS 10 /* number of windows per workspaces */
+#define AUTO_FLOATING True /* When False, floating windows, will open in tiled layout */
+
+// Helpers for configuration (don't change values)
+#define FOCUS_TOP 10
+#define FOCUS_BOTTOM 11
+#define SLAVES_UP 12
+#define SLAVES_DOWN 13
+#define BIGGER_MASTER 14
+#define SMALLER_MASTER 15
+#define BASE_MASTER 16
+#define STACKING_TOGGLE 17
+#define FULLSCREEN_TOGGLE 18
+#define SWAP_FOCUS 19
+#define FLOATING_TOGGLE 20
+#define FLOATING_HIDE_SHOW 21
+
+// For now only single character names are working
+// You might be able to change polybar config to handle nerdfont and other custom names
+static const char *workspace_names[10] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0" };
+
+typedef struct
+{
+ unsigned int mod;
+ KeySym key;
+ void (*func)();
+} Bindings;
+
+/* These definitions are used for the execute command. You need to pass GUI for an app that will open a new window.
+ * Pass NOGUI if it's just a background script or app
+ * Be carefull with this, it can create bugs and and crashes ! */
+
+#define GUI 30
+#define NOGUI 31
+
+// Functions that can be called from Keybinds
+void fluorite_execute(char *argument, int mode);
+void fluorite_close_window();
+void fluorite_change_layout(int mode);
+void fluorite_user_close();
+void fluorite_change_workspace(int new_workspace, int mode);
+
+// User functions (use it or create yours with these examples)
+static void fluorite_terminal() { char prog[255] = "st"; fluorite_execute(prog, GUI); }
+static void fluorite_filemanager() { char prog[255] = "thunar"; fluorite_execute(prog, GUI); }
+// static void fluorite_dmenu() { char prog[255] = "rofi -show drun"; fluorite_execute(prog, GUI); }
+static void fluorite_webbrowser() { char prog[255] = "librewolf"; fluorite_execute(prog, GUI); }
+static void fluorite_exit() { fluorite_user_close(); }
+static void fluorite_next_focus() { fluorite_change_layout(FOCUS_TOP); }
+static void fluorite_prev_focus() { fluorite_change_layout(FOCUS_BOTTOM); }
+static void fluorite_stack_rotate_up() { fluorite_change_layout(SLAVES_UP); }
+static void fluorite_stack_rotate_down() { fluorite_change_layout(SLAVES_DOWN); }
+static void fluorite_bigger_master() { fluorite_change_layout(BIGGER_MASTER); }
+static void fluorite_smaller_master() { fluorite_change_layout(SMALLER_MASTER); }
+static void fluorite_base_master() { fluorite_change_layout(BASE_MASTER); }
+static void fluorite_stacking_toggle() { fluorite_change_layout(STACKING_TOGGLE); }
+static void fluorite_fullscreen_toggle() { fluorite_change_layout(FULLSCREEN_TOGGLE); }
+static void fluorite_swap_focus() { fluorite_change_layout(SWAP_FOCUS); }
+static void fluorite_floating_toggle() { fluorite_change_layout(FLOATING_TOGGLE); }
+static void fluorite_floating_hide_show() { fluorite_change_layout(FLOATING_HIDE_SHOW); }
+static void fluorite_brightness_up() { char prog[255] = "brightnessctl set 50+"; fluorite_execute(prog, NOGUI); }
+static void fluorite_brightness_down() { char prog[255] = "brightnessctl set 50-"; fluorite_execute(prog, NOGUI); }
+static void fluorite_volume_up() { char prog[255] = "pamixer -i 5"; fluorite_execute(prog, NOGUI); }
+static void fluorite_volume_down() { char prog[255] = "pamixer -d 5"; fluorite_execute(prog, NOGUI); }
+static void fluorite_volume_mute() { char prog[255] = "pamixer -t"; fluorite_execute(prog, NOGUI); }
+static void fluorite_locking() { char prog[255] = "glitchlock"; fluorite_execute(prog, NOGUI); }
+
+// Workspaces switch function
+static void fluorite_goto_workspace_one() { fluorite_change_workspace(0, 0); }
+static void fluorite_goto_workspace_two() { fluorite_change_workspace(1, 0); }
+static void fluorite_goto_workspace_three() { fluorite_change_workspace(2, 0); }
+static void fluorite_goto_workspace_four() { fluorite_change_workspace(3, 0); }
+static void fluorite_goto_workspace_five() { fluorite_change_workspace(4, 0); }
+static void fluorite_goto_workspace_six() { fluorite_change_workspace(5, 0); }
+static void fluorite_goto_workspace_seven() { fluorite_change_workspace(6, 0); }
+static void fluorite_goto_workspace_eight() { fluorite_change_workspace(7, 0); }
+static void fluorite_goto_workspace_nine() { fluorite_change_workspace(8, 0); }
+static void fluorite_goto_workspace_ten() { fluorite_change_workspace(9, 0); }
+
+// App workspaces switch function
+static void fluorite_appto_workspace_one() { fluorite_change_workspace(0, 1); }
+static void fluorite_appto_workspace_two() { fluorite_change_workspace(1, 1); }
+static void fluorite_appto_workspace_three() { fluorite_change_workspace(2, 1); }
+static void fluorite_appto_workspace_four() { fluorite_change_workspace(3, 1); }
+static void fluorite_appto_workspace_five() { fluorite_change_workspace(4, 1); }
+static void fluorite_appto_workspace_six() { fluorite_change_workspace(5, 1); }
+static void fluorite_appto_workspace_seven() { fluorite_change_workspace(6, 1); }
+static void fluorite_appto_workspace_eight() { fluorite_change_workspace(7, 1); }
+static void fluorite_appto_workspace_nine() { fluorite_change_workspace(8, 1); }
+static void fluorite_appto_workspace_ten() { fluorite_change_workspace(9, 1); }
+
+static const Bindings bind[] = {
+ {METAKEY, XK_Return, fluorite_terminal},
+ {METAKEY, XK_a, fluorite_filemanager},
+ /*{METAKEY, XK_d, fluorite_dmenu},*/
+ {METAKEY, XK_h, fluorite_smaller_master},
+ {METAKEY, XK_j, fluorite_next_focus},
+ {METAKEY, XK_k, fluorite_prev_focus},
+ {METAKEY, XK_l, fluorite_bigger_master},
+ {METAKEY, XK_equal, fluorite_base_master},
+ {METAKEY, XK_w, fluorite_webbrowser},
+ {METAKEY, XK_s, fluorite_stacking_toggle},
+ {METAKEY, XK_f, fluorite_fullscreen_toggle},
+ {METAKEY, XK_n, fluorite_swap_focus},
+ {METAKEY, XK_space, fluorite_floating_toggle},
+
+ // Workspaces switching
+ {METAKEY, XK_ampersand, fluorite_goto_workspace_one},
+ {METAKEY, XK_eacute, fluorite_goto_workspace_two},
+ {METAKEY, XK_quotedbl, fluorite_goto_workspace_three},
+ {METAKEY, XK_apostrophe, fluorite_goto_workspace_four},
+ {METAKEY, XK_parenleft, fluorite_goto_workspace_five},
+ {METAKEY, XK_minus, fluorite_goto_workspace_six},
+ {METAKEY, XK_egrave, fluorite_goto_workspace_seven},
+ {METAKEY, XK_underscore, fluorite_goto_workspace_eight},
+ {METAKEY, XK_ccedilla, fluorite_goto_workspace_nine},
+ {METAKEY, XK_agrave, fluorite_goto_workspace_ten},
+
+ // App Workspaces switching
+ {METAKEY|ShiftMask, XK_ampersand, fluorite_appto_workspace_one},
+ {METAKEY|ShiftMask, XK_eacute, fluorite_appto_workspace_two},
+ {METAKEY|ShiftMask, XK_quotedbl, fluorite_appto_workspace_three},
+ {METAKEY|ShiftMask, XK_apostrophe, fluorite_appto_workspace_four},
+ {METAKEY|ShiftMask, XK_parenleft, fluorite_appto_workspace_five},
+ {METAKEY|ShiftMask, XK_minus, fluorite_appto_workspace_six},
+ {METAKEY|ShiftMask, XK_egrave, fluorite_appto_workspace_seven},
+ {METAKEY|ShiftMask, XK_underscore, fluorite_appto_workspace_eight},
+ {METAKEY|ShiftMask, XK_ccedilla, fluorite_appto_workspace_nine},
+ {METAKEY|ShiftMask, XK_agrave, fluorite_appto_workspace_ten},
+
+ {METAKEY|ShiftMask, XK_e, fluorite_exit},
+ {METAKEY|ShiftMask, XK_q, fluorite_close_window},
+ {METAKEY|ShiftMask, XK_j, fluorite_stack_rotate_up},
+ {METAKEY|ShiftMask, XK_k, fluorite_stack_rotate_down},
+ {METAKEY|ShiftMask, XK_x, fluorite_locking},
+ {METAKEY|ShiftMask, XK_space, fluorite_floating_hide_show},
+
+ {0, XF86XK_MonBrightnessUp, fluorite_brightness_up},
+ {0, XF86XK_MonBrightnessDown, fluorite_brightness_down},
+ {0, XF86XK_AudioLowerVolume, fluorite_volume_down},
+ {0, XF86XK_AudioRaiseVolume, fluorite_volume_up},
+ {0, XF86XK_AudioMute, fluorite_volume_mute},
+};
+typedef struct
+{
+ char wm_class[255];
+} Rules;
+
+// Use xprop on a floating window to get the WM_CLASS name used by a window.
+static const Rules default_floating[] = {
+ {"spectacle"},
+ {"ghidra-Ghidra"},
+};
diff --git a/fontconfig/fonts.conf b/fontconfig/fonts.conf
index 1f32825..3248f2b 100644
--- a/fontconfig/fonts.conf
+++ b/fontconfig/fonts.conf
@@ -32,9 +32,9 @@
<alias>
<family>dwm</family>
<prefer>
- <family>Tintin</family>
+ <family>tintin</family>
</prefer>
-</alias>
+ </alias>
</fontconfig>
diff --git a/htop/htoprc b/htop/htoprc
index be9b5bf..351aefb 100644
--- a/htop/htoprc
+++ b/htop/htoprc
@@ -1,6 +1,6 @@
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
-htop_version=3.2.2
+htop_version=3.3.0
config_reader_min_version=3
fields=0 48 17 18 38 39 40 2 46 47 49 1
hide_kernel_threads=1
@@ -48,16 +48,16 @@ all_branches_collapsed=0
screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command
.sort_key=PERCENT_CPU
.tree_sort_key=PERCENT_CPU
-.tree_view=1
.tree_view_always_by_pid=0
+.tree_view=1
.sort_direction=-1
.tree_sort_direction=-1
.all_branches_collapsed=0
screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE PERCENT_SWAP_DELAY PERCENT_IO_DELAY Command
.sort_key=IO_PRIORITY
.tree_sort_key=PID
-.tree_view=0
.tree_view_always_by_pid=0
+.tree_view=0
.sort_direction=1
.tree_sort_direction=1
.all_branches_collapsed=0
diff --git a/redshift/redshift.conf b/redshift/redshift.conf
index dbfd6da..295c219 100644
--- a/redshift/redshift.conf
+++ b/redshift/redshift.conf
@@ -28,7 +28,7 @@ fade=1
; brightness=0.9
; It is also possible to use different settings for day and night
; since version 1.8.
-brightness-day=0.9
+brightness-day=1
brightness-night=0.75
; Set the screen gamma (for all colors, or each color channel
; individually)
diff --git a/scripts/bar b/scripts/bar
index 84671cd..86dff67 100755
--- a/scripts/bar
+++ b/scripts/bar
@@ -49,8 +49,8 @@ cock(){
s=$(date "+%S")
COCK="$h:$m:$s"
ICON2='󰥔'
- ICON='  '
fi
+ ICON='  '
COCK="%{U#87ceeb B#87ceeb O3 +u +o B#076678 A:swatch:} $ICON2 %{A}$COCK - $(LC_ALL="fr_FR.UTF-8" date "+%A %d %B") $ICON %{B#87ceeb O3 -u -o B-}"
echo -n $COCK
}
diff --git a/scripts/glitchlock b/scripts/glitchlock
index 9bb8d6c..b9b5157 100755
--- a/scripts/glitchlock
+++ b/scripts/glitchlock
@@ -52,4 +52,4 @@ file=/tmp/lock.png
convert "$file" "${LOCK[@]}" "$file"
-LC_ALL="fr_FR.UTF-8" i3lock -f --indicator -k --time-color="458588ff" --date-color="458588ff" --verif-text="Vérification..." --wrong-text="Bonjour non." --noinput-text="Vide" -i "$file" --date-str="%A %e %B" > /dev/null 2>&1
+LC_ALL="fr_FR.UTF-8" i3lock -f --indicator -k --time-color="458588ff" --date-color="458588ff" --verif-text="Vérification..." --wrong-text="" --wrong-font="Cousine Nerd Font" --noinput-text="Vide" -i "$file" --date-str="%A %e %B" > /dev/null 2>&1
diff --git a/scripts/icstocal.c b/scripts/icstocal.c
new file mode 100644
index 0000000..73feefb
--- /dev/null
+++ b/scripts/icstocal.c
@@ -0,0 +1,22 @@
+// A supposedly better version of icstocal, originally written by Ratakor
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <err.h>
+#include <string.h>
+
+#define TIMEZONE 2 // as UTC+2
+#define IN "en" // 'en' means 'in' in french
+
+int main(int argc, char** argv)
+{
+ if (argc < 3)
+ {
+ printf("Usage: icstocal calendar.ics $XDG_DATA_HOME/quand/calendar");
+ errx(EXIT_FAILURE, "Bad usage");
+ }
+
+
+
+ return EXIT_SUCCESS;
+}
diff --git a/sx/sxrc b/sx/sxrc
index 94ed5dc..1bdff7a 100755
--- a/sx/sxrc
+++ b/sx/sxrc
@@ -1,9 +1,9 @@
setxkbmap fr
killall scron
-scron -f ~/.config/crontab
-$HOME/.config/scripts/randwp
-sxhkd&
+scron -f $HOME/.config/crontab
picom&
-dwmblocks&
redshift&
-exec dwm
+(bar | barhandler)&
+sxhkd&
+randwp
+exec Fluorite
diff --git a/sx/sxrc.b b/sx/sxrc.b
new file mode 100755
index 0000000..94ed5dc
--- /dev/null
+++ b/sx/sxrc.b
@@ -0,0 +1,9 @@
+setxkbmap fr
+killall scron
+scron -f ~/.config/crontab
+$HOME/.config/scripts/randwp
+sxhkd&
+picom&
+dwmblocks&
+redshift&
+exec dwm
diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc
index 0f4e327..85552e1 100644
--- a/sxhkd/sxhkdrc
+++ b/sxhkd/sxhkdrc
@@ -20,6 +20,8 @@ super + m
music
super + shift + m
musiccmd
+super + c
+ [ $(cat /tmp/swatch) = "0" ] && echo 1 > /tmp/swatch || echo 0 > /tmp/swatch
XF86Tools
selectopt
XF86Audio{Prev,Next,Play}